Merge pull request #16403 from dduugg/trim-rubocop-rails

This commit is contained in:
Mike McQuaid 2023-12-27 07:59:29 +00:00 committed by GitHub
commit 500a6b1a08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: