Configure Layout/HashAlignment cop.
This commit is contained in:
parent
cfe4972e71
commit
61c83b2a1a
|
@ -1,5 +1,9 @@
|
|||
inherit_from: .rubocop_todo.yml
|
||||
|
||||
Layout/HashAlignment:
|
||||
EnforcedHashRocketStyle: table
|
||||
EnforcedColonStyle: table
|
||||
|
||||
# In some cases we just need to catch an exception, rather than
|
||||
# actually handle it. Allow the tests to make use of this shortcut.
|
||||
Lint/SuppressedException:
|
||||
|
|
|
@ -14,18 +14,6 @@ Layout/EmptyLinesAroundClassBody:
|
|||
Exclude:
|
||||
- 'test/extra_field_ut_test.rb'
|
||||
|
||||
# Offense count: 26
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
||||
# SupportedHashRocketStyles: key, separator, table
|
||||
# SupportedColonStyles: key, separator, table
|
||||
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
||||
Layout/HashAlignment:
|
||||
Exclude:
|
||||
- 'lib/zip/constants.rb'
|
||||
- 'lib/zip/file.rb'
|
||||
- 'rubyzip.gemspec'
|
||||
|
||||
# Offense count: 120
|
||||
Metrics/AbcSize:
|
||||
Max: 60
|
||||
|
|
|
@ -435,7 +435,9 @@ class ZipFsFileNonmutatingTest < MiniTest::Test
|
|||
{
|
||||
'globTest/foo.txt' => ['globTest/foo.txt'],
|
||||
'*/foo.txt' => ['globTest/foo.txt'],
|
||||
'**/foo.txt' => ['globTest/foo.txt', 'globTest/foo/bar/baz/foo.txt'],
|
||||
'**/foo.txt' => [
|
||||
'globTest/foo.txt', 'globTest/foo/bar/baz/foo.txt'
|
||||
],
|
||||
'*/foo/**/*.txt' => ['globTest/foo/bar/baz/foo.txt']
|
||||
}.each do |spec, expected_results|
|
||||
results = zf.glob(spec)
|
||||
|
|
Loading…
Reference in New Issue