Skip to content

Commit b376c86

Browse files
authored
Merge pull request #679 from Shopify/andyw8/enable-allow-comments-for-empty-else
Enable `AllowComments` config option for `Style/EmptyElse`
2 parents 1bc4f97 + f590ad4 commit b376c86

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,9 @@ Style/DoubleNegation:
500500
Style/EmptyBlockParameter:
501501
Enabled: false
502502

503+
Style/EmptyElse:
504+
AllowComments: true
505+
503506
Style/EmptyHeredoc:
504507
Enabled: true
505508

test/fixtures/full_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,7 @@ Style/EmptyElse:
27822782
- empty
27832783
- nil
27842784
- both
2785-
AllowComments: false
2785+
AllowComments: true
27862786
Style/EmptyHeredoc:
27872787
Description: Checks for using empty heredoc to reduce redundancy.
27882788
Enabled: true

0 commit comments

Comments
 (0)