Skip to content

Commit c479ced

Browse files
author
shima-zu
committed
Replace DisabledByDefault with disabling each cop
When `DisabledByDefault` is `true`, all cops in the default configuration. This means that all extension cops are disabled by default. The extensions is outside the scope of omakase, and you may not realize that it has been disabled.
1 parent 85c8acf commit c479ced

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+
Style:
16+
Enabled: false
17+
Layout:
18+
Enabled: false
19+
Lint:
20+
Enabled: false
21+
Metrics:
22+
Enabled: false
23+
Naming:
24+
Enabled: false
25+
Security:
26+
Enabled: false
27+
Bundler:
28+
Enabled: false
29+
Gemspec:
30+
Enabled: false
31+
Performance:
32+
Enabled: false
33+
Exclude:
34+
- "test/**/*"
35+
Rails:
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)