From 7fbbf27f8d54385eadf86aeb3179b94dfe631c9a Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Sat, 18 Feb 2023 15:14:04 -0800 Subject: [PATCH] Remove redundant rubocop configs --- Library/.rubocop.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 744f52c2ee..781519f917 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -76,10 +76,6 @@ Layout/SpaceBeforeBrackets: - "/**/{Formula,Casks}/*.rb" - "**/{Formula,Casks}/*.rb" -# Use `<<~` for heredocs. -Layout/HeredocIndentation: - Enabled: true - # Keyword arguments don't have the same readability # problems as normal parameters. Metrics/ParameterLists: @@ -117,7 +113,6 @@ Naming/VariableNumber: # Require &&/|| instead of and/or Style/AndOr: - Enabled: true EnforcedStyle: always # Avoid leaking resources. @@ -145,14 +140,6 @@ Style/FetchEnvVar: Style/FormatStringToken: EnforcedStyle: annotated -# autocorrectable and more readable -Style/HashEachMethods: - Enabled: true -Style/HashTransformKeys: - Enabled: true -Style/HashTransformValues: - Enabled: true - # Allow for license expressions Style/HashAsLastArrayItem: Exclude: @@ -160,10 +147,6 @@ Style/HashAsLastArrayItem: - "/**/Formula/*.rb" - "**/Formula/*.rb" -# Enabled now LineLength is lowish. -Style/IfUnlessModifier: - Enabled: true - # Only use this for numbers >= `1_000_000`. Style/NumericLiterals: MinDigits: 7 @@ -297,10 +280,6 @@ Layout/EndAlignment: Layout/SpaceAroundOperators: Enabled: false -# layout is not configurable (https://github.com/rubocop-hq/rubocop/issues/6254). -Layout/RescueEnsureAlignment: - Enabled: false - # significantly less indentation involved; more consistent Layout/FirstArrayElementIndentation: EnforcedStyle: consistent @@ -452,11 +431,6 @@ Sorbet/StrictSigil: Sorbet/ConstantsFromStrings: Enabled: false -# Avoid false positives on modifiers used on symbols of methods -# See https://github.com/rubocop-hq/rubocop/issues/5953 -Style/AccessModifierDeclarations: - Enabled: false - # Conflicts with type signatures on `attr_*`s. Style/AccessorGrouping: Enabled: false @@ -507,10 +481,6 @@ Style/GuardClause: - "/**/{Formula,Casks}/*.rb" - "**/{Formula,Casks}/*.rb" -# avoid hash rockets where possible -Style/HashSyntax: - EnforcedStyle: ruby19 - # OpenStruct is a nice helper. Style/OpenStructUse: Enabled: false