Skip to content

Commit

Permalink
Enable AllowComments config option for Style/EmptyElse
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Jan 23, 2025
1 parent 1bc4f97 commit f590ad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@ Style/DoubleNegation:
Style/EmptyBlockParameter:
Enabled: false

Style/EmptyElse:
AllowComments: true

Style/EmptyHeredoc:
Enabled: true

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,7 @@ Style/EmptyElse:
- empty
- nil
- both
AllowComments: false
AllowComments: true
Style/EmptyHeredoc:
Description: Checks for using empty heredoc to reduce redundancy.
Enabled: true
Expand Down

0 comments on commit f590ad4

Please sign in to comment.