Skip to content

Commit 9839dcd

Browse files
authored
Replace DisabledByDefault: true with disabling each cop (#26)
When `DisabledByDefault` is `true`, all cops in the default configuration. This means that all extension cops are disabled by default. The extensions are outside the scope of omakase, and you may not realize that it has been disabled.
1 parent 85c8acf commit 9839dcd

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

rubocop.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,33 @@ inherit_mode:
88

99
AllCops:
1010
SuggestExtensions: false
11-
DisabledByDefault: true
1211
Exclude:
1312
- "data/**/*"
1413

14+
# All cops except your using extensions are disabled by default.
15+
Bundler:
16+
Enabled: false
17+
Gemspec:
18+
Enabled: false
19+
Layout:
20+
Enabled: false
21+
Lint:
22+
Enabled: false
23+
Metrics:
24+
Enabled: false
25+
Naming:
26+
Enabled: false
27+
Performance:
28+
Enabled: false
29+
Exclude:
30+
- "test/**/*"
31+
Rails:
32+
Enabled: false
33+
Security:
34+
Enabled: false
35+
Style:
36+
Enabled: false
37+
1538
# Align `when` with `end`.
1639
Layout/CaseIndentation:
1740
Enabled: true
@@ -152,10 +175,6 @@ Lint/RequireParentheses:
152175
Lint/UriEscapeUnescape:
153176
Enabled: true
154177

155-
Performance:
156-
Exclude:
157-
- "test/**/*"
158-
159178
Performance/FlatMap:
160179
Enabled: true
161180

0 commit comments

Comments
 (0)