Skip to content

Commit

Permalink
Configure Style/MultilineBlockChain cop.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Feb 9, 2020
1 parent 8a4063a commit 03b1465
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Lint/UselessComparison:
Exclude:
- 'test/entry_test.rb'

# Allow this multi-line block chain as it actually reads better
# than the alternatives.
Style/MultilineBlockChain:
Exclude:
- 'lib/zip/crypto/traditional_encryption.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:
Expand Down
5 changes: 0 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,6 @@ Style/ModuleFunction:
Exclude:
- 'lib/zip.rb'

# Offense count: 1
Style/MultilineBlockChain:
Exclude:
- 'lib/zip/crypto/traditional_encryption.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/MultilineWhenThen:
Expand Down

0 comments on commit 03b1465

Please sign in to comment.