Skip to content

Commit

Permalink
Configure Layout/EmptyLineBetweenDefs cop.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed May 23, 2021
1 parent 0fb911b commit 496b4c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ AllCops:
TargetRubyVersion: 2.4
NewCops: enable

# Allow this in this file because adding the extra lines is pointless.
Layout/EmptyLineBetweenDefs:
Exclude:
- 'lib/zip/errors.rb'

Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Expand Down
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
Exclude:
- 'lib/zip/errors.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
Expand Down

0 comments on commit 496b4c1

Please sign in to comment.