rubocop.yml: disable more metrics.
Disable these in taps, too.
This commit is contained in:
parent
853b33bcda
commit
552902413a
@ -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
|
||||||
|
|||||||
@ -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?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user