rubocop: Remove redundant Enabled: true config

- This is done by `EnabledByDefault: true` in the `AllCops` section.
This commit is contained in:
Issy Long 2023-04-26 00:32:23 +01:00
parent 6527fc2785
commit d695c8a311
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -34,32 +34,18 @@ Bundler/GemVersion:
Cask/Desc: Cask/Desc:
Description: "Ensure that the desc stanza conforms to various content and style checks." Description: "Ensure that the desc stanza conforms to various content and style checks."
Enabled: true
Cask/HomepageUrlTrailingSlash: Cask/HomepageUrlTrailingSlash:
Description: "Ensure that the homepage url has a slash after the domain name." Description: "Ensure that the homepage url has a slash after the domain name."
Enabled: true
Cask/NoDslVersion: Cask/NoDslVersion:
Description: "Do not use the deprecated DSL version syntax in your cask header." Description: "Do not use the deprecated DSL version syntax in your cask header."
Enabled: true
Cask/StanzaGrouping: Cask/StanzaGrouping:
Description: "Ensure that cask stanzas are grouped correctly. More info at https://docs.brew.sh/Cask-Cookbook#stanza-order" Description: "Ensure that cask stanzas are grouped correctly. More info at https://docs.brew.sh/Cask-Cookbook#stanza-order"
Enabled: true
Cask/StanzaOrder: Cask/StanzaOrder:
Description: "Ensure that cask stanzas are sorted correctly. More info at https://docs.brew.sh/Cask-Cookbook#stanza-order" Description: "Ensure that cask stanzas are sorted correctly. More info at https://docs.brew.sh/Cask-Cookbook#stanza-order"
Enabled: true
FormulaAudit:
Enabled: true
FormulaAuditStrict:
Enabled: true
Homebrew:
Enabled: true
# only used internally # only used internally
Homebrew/MoveToExtendOS: Homebrew/MoveToExtendOS:
@ -232,10 +218,6 @@ Naming/MethodParameterName:
Naming/VariableNumber: Naming/VariableNumber:
Enabled: false Enabled: false
# Does not hinder readability, so might as well enable it.
Performance/CaseWhenSplat:
Enabled: true
# Makes code less readable for minor performance increases. # Makes code less readable for minor performance increases.
Performance/Caller: Performance/Caller:
Enabled: false Enabled: false
@ -259,41 +241,8 @@ Rails:
Exclude: Exclude:
- "Homebrew/rubocops/**/*" - "Homebrew/rubocops/**/*"
# These relate to ActiveSupport and not other parts of Rails.
Rails/ActiveSupportAliases:
Enabled: true
Rails/Blank:
Enabled: true
Rails/CompactBlank:
Enabled: true
Rails/Delegate: Rails/Delegate:
Enabled: false # TODO Enabled: false # TODO
Rails/DelegateAllowBlank:
Enabled: true
Rails/DurationArithmetic:
Enabled: true
Rails/ExpandedDateRange:
Enabled: true
Rails/Inquiry:
Enabled: true
Rails/NegateInclude:
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
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:
@ -357,20 +306,14 @@ Sorbet/IgnoreSigil:
Sorbet/StrongSigil: Sorbet/StrongSigil:
Enabled: false Enabled: false
# T::Sig is monkey-patched into Module
Sorbet/RedundantExtendTSig:
Enabled: true
Sorbet/StrictSigil: Sorbet/StrictSigil:
inherit_mode: inherit_mode:
override: override:
- Include - Include
Enabled: true
Include: Include:
- "**/*.rbi" - "**/*.rbi"
Sorbet/TrueSigil: Sorbet/TrueSigil:
Enabled: true
Exclude: Exclude:
- "Taps/**/*" - "Taps/**/*"
- "/**/{Formula,Casks}/**/*.rb" - "/**/{Formula,Casks}/**/*.rb"
@ -381,10 +324,6 @@ Sorbet/TrueSigil:
Style/AndOr: Style/AndOr:
EnforcedStyle: always EnforcedStyle: always
# Avoid leaking resources.
Style/AutoResourceCleanup:
Enabled: true
# This makes these a little more obvious. # This makes these a little more obvious.
Style/BarePercentLiterals: Style/BarePercentLiterals:
EnforcedStyle: percent_q EnforcedStyle: percent_q
@ -393,10 +332,6 @@ Style/BlockDelimiters:
BracesRequiredMethods: BracesRequiredMethods:
- "sig" - "sig"
# Use consistent style for better readability.
Style/CollectionMethods:
Enabled: true
# TODO: This group of cops comes from `EnabledByDefault: true`. We should maybe enable the ones with < 100 offenses. # TODO: This group of cops comes from `EnabledByDefault: true`. We should maybe enable the ones with < 100 offenses.
Style/ArrayCoercion: Style/ArrayCoercion:
Enabled: false Enabled: false
@ -447,7 +382,6 @@ Style/YodaExpression:
# 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:
Enabled: true
Include: Include:
- "Taps/*/*/*.rb" - "Taps/*/*/*.rb"
- "/**/{Formula,Casks}/**/*.rb" - "/**/{Formula,Casks}/**/*.rb"
@ -527,10 +461,6 @@ Style/OpenStructUse:
Style/RescueStandardError: Style/RescueStandardError:
EnforcedStyle: implicit EnforcedStyle: implicit
# Returning `nil` is unnecessary.
Style/ReturnNil:
Enabled: true
# We have no use for using `warn` because we # We have no use for using `warn` because we
# are calling Ruby with warnings disabled. # are calling Ruby with warnings disabled.
Style/StderrPuts: Style/StderrPuts:
@ -551,10 +481,6 @@ Style/StringLiterals:
Style/StringLiteralsInInterpolation: Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes EnforcedStyle: double_quotes
# Use consistent method names.
Style/StringMethods:
Enabled: true
# An array of symbols is more readable than a symbol array # An array of symbols is more readable than a symbol array
# and also allows for easier grepping. # and also allows for easier grepping.
Style/SymbolArray: Style/SymbolArray:
@ -574,7 +500,6 @@ Style/TrailingCommaInHashLiteral:
# `unless ... ||` and `unless ... &&` are hard to mentally parse # `unless ... ||` and `unless ... &&` are hard to mentally parse
Style/UnlessLogicalOperators: Style/UnlessLogicalOperators:
Enabled: true
EnforcedStyle: forbid_logical_operators EnforcedStyle: forbid_logical_operators
# a bit confusing to non-Rubyists but useful for longer arrays # a bit confusing to non-Rubyists but useful for longer arrays