2020-08-14 01:58:14 +02:00
|
|
|
inherit_from:
|
|
|
|
|
- ../.rubocop_rspec.yml
|
|
|
|
|
- .rubocop_todo.yml
|
2016-09-27 18:48:06 +02:00
|
|
|
|
2022-12-09 12:01:44 -08:00
|
|
|
Homebrew/MoveToExtendOS:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Exclude:
|
|
|
|
|
- "{extend,test,requirements}/**/*"
|
|
|
|
|
- "os.rb"
|
|
|
|
|
|
2018-09-02 20:14:54 +01:00
|
|
|
# make rspec formatting more flexible
|
2017-05-28 16:59:53 +01:00
|
|
|
Layout/MultilineMethodCallIndentation:
|
2016-10-23 14:44:14 +02:00
|
|
|
Exclude:
|
2021-01-26 10:00:38 +00:00
|
|
|
- "**/*_spec.rb"
|
2016-10-23 14:44:14 +02:00
|
|
|
|
2016-09-27 18:48:06 +02:00
|
|
|
# `formula do` uses nested method definitions
|
|
|
|
|
Lint/NestedMethodDefinition:
|
|
|
|
|
Exclude:
|
2021-01-26 10:00:38 +00:00
|
|
|
- "test/**/*"
|
2016-09-27 18:48:06 +02:00
|
|
|
|
2020-08-31 02:02:05 +02:00
|
|
|
# TODO: Try to bring down all metrics maximums.
|
2017-10-27 09:34:38 +01:00
|
|
|
Metrics/AbcSize:
|
2021-04-07 17:03:44 +01:00
|
|
|
Max: 280
|
2017-10-09 18:27:02 +02:00
|
|
|
Metrics/BlockLength:
|
2022-08-01 15:27:17 -07:00
|
|
|
Max: 106
|
2020-03-16 01:37:49 +05:30
|
|
|
Exclude:
|
2021-04-29 14:48:45 +01:00
|
|
|
# TODO: extract more of the bottling logic
|
|
|
|
|
- "dev-cmd/bottle.rb"
|
2021-01-26 10:00:38 +00:00
|
|
|
- "test/**/*"
|
2022-08-02 08:39:02 -07:00
|
|
|
- "cmd/install.rb"
|
2017-10-07 00:31:28 +02:00
|
|
|
Metrics/BlockNesting:
|
|
|
|
|
Max: 5
|
2017-10-09 18:27:02 +02:00
|
|
|
Metrics/ClassLength:
|
2020-08-04 14:03:11 +01:00
|
|
|
Max: 800
|
|
|
|
|
Exclude:
|
2021-01-26 10:00:38 +00:00
|
|
|
- "formula.rb"
|
|
|
|
|
- "formula_installer.rb"
|
2017-10-27 09:34:38 +01:00
|
|
|
Metrics/CyclomaticComplexity:
|
2020-08-04 14:03:11 +01:00
|
|
|
Max: 80
|
2020-08-31 02:02:05 +02:00
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
|
Max: 90
|
2017-10-09 18:27:02 +02:00
|
|
|
Metrics/MethodLength:
|
2020-08-04 14:03:11 +01:00
|
|
|
Max: 260
|
2017-10-27 09:34:38 +01:00
|
|
|
Metrics/ModuleLength:
|
2021-04-29 14:48:45 +01:00
|
|
|
Max: 500
|
2020-08-18 10:58:32 -04:00
|
|
|
Exclude:
|
2021-04-29 14:48:45 +01:00
|
|
|
# TODO: extract more of the bottling logic
|
|
|
|
|
- "dev-cmd/bottle.rb"
|
2021-09-09 20:41:19 +01:00
|
|
|
# TODO: try break this down
|
|
|
|
|
- "utils/github.rb"
|
2021-01-26 10:00:38 +00:00
|
|
|
- "test/**/*"
|
2017-10-27 09:34:38 +01:00
|
|
|
|
2017-10-07 00:31:28 +02:00
|
|
|
Naming/PredicateName:
|
2020-08-31 02:02:05 +02:00
|
|
|
# Can't rename these.
|
2021-01-13 09:22:06 +01:00
|
|
|
AllowedMethods:
|
|
|
|
|
- is_a?
|
|
|
|
|
- is_32_bit?
|
|
|
|
|
- is_64_bit?
|
2017-10-07 00:31:28 +02:00
|
|
|
|
2020-08-18 10:58:32 -04:00
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
|
Exclude:
|
2021-01-26 10:00:38 +00:00
|
|
|
- "test/utils/spdx_spec.rb"
|
2021-01-17 22:45:55 -08:00
|
|
|
|
|
|
|
|
Style/BlockDelimiters:
|
|
|
|
|
BracesRequiredMethods:
|
2021-01-26 10:00:38 +00:00
|
|
|
- "sig"
|
2021-08-26 23:29:47 -04:00
|
|
|
|
|
|
|
|
Bundler/GemFilename:
|
|
|
|
|
Exclude:
|
|
|
|
|
- "utils/gems.rb"
|