rubocop.yml: disable more metrics.

Disable these in taps, too.
This commit is contained in:
Mike McQuaid 2023-02-21 16:31:43 +00:00
parent 853b33bcda
commit 552902413a
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
2 changed files with 3 additions and 44 deletions

View File

@ -76,11 +76,6 @@ Layout/SpaceBeforeBrackets:
- "/**/{Formula,Casks}/*.rb" - "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb" - "**/{Formula,Casks}/*.rb"
# Keyword arguments don't have the same readability
# problems as normal parameters.
Metrics/ParameterLists:
CountKeywordArgs: false
# Allow dashes in filenames. # Allow dashes in filenames.
Naming/FileName: Naming/FileName:
Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/ Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/
@ -303,42 +298,9 @@ Lint/ParenthesesAsGroupedExpression:
- "/**/Formula/*.rb" - "/**/Formula/*.rb"
- "**/Formula/*.rb" - "**/Formula/*.rb"
# Most metrics don't make sense to apply for casks/formulae/taps. # These metrics didn't end up helping.
Metrics/AbcSize: Metrics:
Exclude: Enabled: false
- "Taps/**/*"
- "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb"
Metrics/BlockLength:
Exclude:
- "Taps/**/*"
- "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb"
Metrics/ClassLength:
Exclude:
- "Taps/**/*"
- "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb"
Metrics/CyclomaticComplexity:
Exclude:
- "Taps/**/*"
- "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb"
Metrics/MethodLength:
Exclude:
- "Taps/**/*"
- "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb"
Metrics/ModuleLength:
Exclude:
- "Taps/**/*"
- "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb"
Metrics/PerceivedComplexity:
Exclude:
- "Taps/**/*"
- "/**/{Formula,Casks}/*.rb"
- "**/{Formula,Casks}/*.rb"
# allow those that are standard # allow those that are standard
# TODO: try to remove some of these # TODO: try to remove some of these

View File

@ -12,9 +12,6 @@ Layout/MultilineMethodCallIndentation:
Exclude: Exclude:
- "**/*_spec.rb" - "**/*_spec.rb"
Metrics:
Enabled: false
Naming/PredicateName: Naming/PredicateName:
AllowedMethods: AllowedMethods:
- is_32_bit? - is_32_bit?