Skip to content

Commit

Permalink
Layout/EmptyLineBetweenDefs: override style
Browse files Browse the repository at this point in the history
Override Standard to AllowAdjacentOneLineDefs, which goes nicely with
the SingleLineMethods, eg in our policies.
  • Loading branch information
solebared committed May 3, 2021
1 parent e7f7615 commit c1dcfcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Metrics:
# Disabled in Standard by default
Enabled: true

Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true

Layout/ExtraSpacing:
AllowForAlignment: true

Expand Down
14 changes: 0 additions & 14 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,6 @@ Layout/EmptyLineAfterMagicComment:
- 'spec/interactions/generate_landing_page_json_spec.rb'
- 'spec/models/organization_spec.rb'

# Offense count: 19
# Cop supports --auto-correct.
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
Exclude:
- 'app/controllers/announcements_controller.rb'
- 'app/controllers/community_resources_controller.rb'
- 'app/controllers/glossary_controller.rb'
- 'app/policies/announcement_policy.rb'
- 'app/policies/application_policy.rb'
- 'app/policies/community_resource_policy.rb'
- 'app/policies/contribution_policy.rb'
- 'app/policies/glossary_policy.rb'

# Offense count: 8
# Cop supports --auto-correct.
Layout/EmptyLines:
Expand Down

0 comments on commit c1dcfcc

Please sign in to comment.