2019-09-14 22:38:27 +08:00
|
|
|
inherit_from: .rubocop_todo.yml
|
2020-02-09 19:12:16 +08:00
|
|
|
|
2020-02-09 21:25:04 +08:00
|
|
|
Layout/HashAlignment:
|
|
|
|
|
EnforcedHashRocketStyle: table
|
|
|
|
|
EnforcedColonStyle: table
|
|
|
|
|
|
2020-02-09 19:27:11 +08:00
|
|
|
# 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:
|
|
|
|
|
AllowComments: true
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'test/**/*.rb'
|
|
|
|
|
|
2020-02-09 19:12:16 +08:00
|
|
|
# Allow this "useless" test, as we are testing <=> here.
|
|
|
|
|
Lint/UselessComparison:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'test/entry_test.rb'
|
2020-02-09 23:08:24 +08:00
|
|
|
|
2020-02-10 00:07:46 +08:00
|
|
|
# Allow inner slashes when using // for regex literals. Allow the
|
|
|
|
|
# Guardfile to use a syntax that is more consistent with its own style.
|
|
|
|
|
Style/RegexpLiteral:
|
|
|
|
|
AllowInnerSlashes: true
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'Guardfile'
|
|
|
|
|
|
2020-02-10 00:00:05 +08:00
|
|
|
Style/SymbolArray:
|
|
|
|
|
EnforcedStyle: brackets
|
|
|
|
|
|
2020-02-09 23:08:24 +08:00
|
|
|
# Turn this cop off for these files as it fires for objects without
|
|
|
|
|
# an empty? method.
|
|
|
|
|
Style/ZeroLengthPredicate:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'lib/zip/file.rb'
|
|
|
|
|
- 'lib/zip/input_stream.rb'
|