.rubocop.yml: selectively enable Rails cops
This commit is contained in:
parent
29329fe739
commit
246d0868b6
@ -202,26 +202,40 @@ Performance/Caller:
|
|||||||
Performance/MethodObjectAsBlock:
|
Performance/MethodObjectAsBlock:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cannot use ActiveSupport in RuboCops.
|
|
||||||
Rails:
|
Rails:
|
||||||
|
# Selectively enable what we want.
|
||||||
|
Enabled: false
|
||||||
|
# Cannot use ActiveSupport in RuboCops.
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Homebrew/rubocops/**/*"
|
- "Homebrew/rubocops/**/*"
|
||||||
|
|
||||||
# Skip these as they only apply to actual Rails and not our ActiveSupport usage.
|
# These relate to ActiveSupport and not other parts of Rails.
|
||||||
Rails/ArelStar:
|
Rails/ActiveSupportAliases:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
Rails/Date:
|
Rails/Blank:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
Rails/Delegate:
|
Rails/Delegate:
|
||||||
Enabled: false
|
Enabled: false # TODO
|
||||||
Rails/RakeEnvironment:
|
Rails/DelegateAllowBlank:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
Rails/SkipsModelValidations:
|
Rails/ExpandedDateRange:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
Rails/Pluck:
|
Rails/Inquiry:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
Rails/TimeZone:
|
Rails/NegateInclude:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
Rails/PluralizationGrammar:
|
||||||
|
Enabled: true
|
||||||
|
Rails/Presence:
|
||||||
|
Enabled: true
|
||||||
|
Rails/Present:
|
||||||
|
Enabled: true
|
||||||
|
Rails/RelativeDateConstant:
|
||||||
|
Enabled: true
|
||||||
|
Rails/SafeNavigation:
|
||||||
|
Enabled: true
|
||||||
|
Rails/SafeNavigationWithBlank:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
# Don't allow cops to be disabled in casks and formulae.
|
# Don't allow cops to be disabled in casks and formulae.
|
||||||
Style/DisableCopsWithinSourceCodeDirective:
|
Style/DisableCopsWithinSourceCodeDirective:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user