Remove irrelevant Rails cops

This commit is contained in:
Douglas Eichelberger 2023-12-26 13:09:40 -08:00
parent b72421e258
commit db869921e3

View File

@ -208,26 +208,12 @@ Rails:
- "Homebrew/rubocops/**/*" - "Homebrew/rubocops/**/*"
# These relate to ActiveSupport and not other parts of Rails. # These relate to ActiveSupport and not other parts of Rails.
Rails/ActiveSupportAliases:
Enabled: true
Rails/Blank: Rails/Blank:
Enabled: true Enabled: true
Rails/CompactBlank: Rails/CompactBlank:
Enabled: true Enabled: true
Rails/Delegate:
Enabled: false # TODO
Rails/DelegateAllowBlank:
Enabled: true
Rails/DurationArithmetic:
Enabled: true
Rails/ExpandedDateRange:
Enabled: true
Rails/Inquiry:
Enabled: true
Rails/NegateInclude: Rails/NegateInclude:
Enabled: true Enabled: true
Rails/PluralizationGrammar:
Enabled: true
Rails/Presence: Rails/Presence:
Enabled: true Enabled: true
Rails/Present: Rails/Present:
@ -235,16 +221,8 @@ Rails/Present:
Exclude: Exclude:
# `present?` is defined as `!blank?` wihin this file # `present?` is defined as `!blank?` wihin this file
- "Homebrew/extend/blank.rb" - "Homebrew/extend/blank.rb"
Rails/RelativeDateConstant:
Enabled: true
Rails/SafeNavigation:
Enabled: true
Rails/SafeNavigationWithBlank: Rails/SafeNavigationWithBlank:
Enabled: true Enabled: true
Rails/StripHeredoc:
Enabled: true
Rails/ToFormattedS:
Enabled: true
# Intentionally disabled as it doesn't fit with our code style. # Intentionally disabled as it doesn't fit with our code style.
RSpec/AnyInstance: RSpec/AnyInstance: