Skip to content

Commit 1bc4f97

Browse files
authored
Merge pull request #677 from Shopify/andyw8/enable-duplicate-case-condition
Enable `Lint/DuplicateCaseCondition`
2 parents a672dca + 5f89557 commit 1bc4f97

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

rubocop.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ Lint/DisjunctiveAssignmentInConstructor:
129129
Lint/DuplicateBranch:
130130
Enabled: false
131131

132-
Lint/DuplicateCaseCondition:
133-
Enabled: false
134-
135132
Lint/DuplicateElsifCondition:
136133
Enabled: false
137134

test/fixtures/full_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ Lint/DuplicateBranch:
12621262
IgnoreConstantBranches: false
12631263
Lint/DuplicateCaseCondition:
12641264
Description: Do not repeat values in case conditionals.
1265-
Enabled: false
1265+
Enabled: true
12661266
VersionAdded: '0.45'
12671267
Lint/DuplicateElsifCondition:
12681268
Description: Do not repeat conditions used in if `elsif`.

0 commit comments

Comments
 (0)