2020-08-14 01:58:14 +02:00
|
|
|
inherit_from:
|
|
|
|
|
- ../.rubocop_rspec.yml
|
|
|
|
|
- .rubocop_todo.yml
|
2016-09-27 18:48:06 +02:00
|
|
|
|
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-03-30 17:35:13 +01:00
|
|
|
Max: 275
|
2017-10-09 18:27:02 +02:00
|
|
|
Metrics/BlockLength:
|
2020-08-04 14:03:11 +01:00
|
|
|
Max: 100
|
2020-03-16 01:37:49 +05:30
|
|
|
Exclude:
|
2021-01-26 10:00:38 +00:00
|
|
|
- "test/**/*"
|
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-02-12 07:27:24 +05:30
|
|
|
Max: 600
|
2020-08-18 10:58:32 -04:00
|
|
|
Exclude:
|
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"
|