rubyzip/.rubocop.yml

35 lines
893 B
YAML
Raw Normal View History

inherit_from: .rubocop_todo.yml
2020-02-09 21:25:04 +08:00
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:
AllowComments: true
Exclude:
- 'test/**/*.rb'
# Allow this "useless" test, as we are testing <=> here.
Lint/UselessComparison:
Exclude:
- 'test/entry_test.rb'
# 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
# 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'