Skip to content

Commit

Permalink
Replace DisabledByDefault: true with disabling each cop (#26)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
shima-zu authored Dec 3, 2024
1 parent 85c8acf commit 9839dcd
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,33 @@ inherit_mode:

AllCops:
SuggestExtensions: false
DisabledByDefault: true
Exclude:
- "data/**/*"

# All cops except your using extensions are disabled by default.
Bundler:
Enabled: false
Gemspec:
Enabled: false
Layout:
Enabled: false
Lint:
Enabled: false
Metrics:
Enabled: false
Naming:
Enabled: false
Performance:
Enabled: false
Exclude:
- "test/**/*"
Rails:
Enabled: false
Security:
Enabled: false
Style:
Enabled: false

# Align `when` with `end`.
Layout/CaseIndentation:
Enabled: true
Expand Down Expand Up @@ -152,10 +175,6 @@ Lint/RequireParentheses:
Lint/UriEscapeUnescape:
Enabled: true

Performance:
Exclude:
- "test/**/*"

Performance/FlatMap:
Enabled: true

Expand Down

0 comments on commit 9839dcd

Please sign in to comment.