brew/Library/Homebrew/.rubocop.yml

55 lines
1.0 KiB
YAML
Raw Normal View History

inherit_from:
- ../.rubocop_rspec.yml
- .rubocop_todo.yml
# make rspec formatting more flexible
Layout/MultilineMethodCallIndentation:
2016-10-23 14:44:14 +02:00
Exclude:
2017-02-12 17:26:34 +01:00
- '**/*_spec.rb'
2016-10-23 14:44:14 +02:00
2020-03-13 21:14:24 +00:00
# TODO: add parentheses for these and remove
Lint/AssignmentInCondition:
Enabled: false
# `formula do` uses nested method definitions
Lint/NestedMethodDefinition:
Exclude:
- 'test/**/*'
# TODO: Try to bring down all metrics maximums.
Metrics/AbcSize:
Max: 250
Metrics/BlockLength:
Max: 100
2020-03-16 01:37:49 +05:30
Exclude:
- 'test/**/*'
Metrics/BlockNesting:
Max: 5
Metrics/ClassLength:
Max: 800
Exclude:
- 'formula.rb'
- 'formula_installer.rb'
Metrics/CyclomaticComplexity:
Max: 80
Metrics/PerceivedComplexity:
Max: 90
Metrics/MethodLength:
Max: 260
Metrics/ModuleLength:
Max: 600
2020-08-18 10:58:32 -04:00
Exclude:
- 'test/**/*'
Naming/PredicateName:
# Can't rename these.
2019-11-28 15:10:50 +00:00
AllowedMethods: is_32_bit?, is_64_bit?
Style/FrozenStringLiteralComment:
Exclude:
- '**/Casks/**/*.rb'
2020-08-18 10:58:32 -04:00
Style/HashAsLastArrayItem:
Exclude:
- 'test/utils/spdx_spec.rb'