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:
|
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
|
|
|
|
|
|
2016-09-27 18:48:06 +02:00
|
|
|
# `formula do` uses nested method definitions
|
|
|
|
|
Lint/NestedMethodDefinition:
|
|
|
|
|
Exclude:
|
2016-09-28 22:34:09 +02: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:
|
2020-08-04 14:03:11 +01:00
|
|
|
Max: 250
|
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:
|
2020-08-04 14:03:11 +01: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:
|
|
|
|
|
- '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:
|
2020-08-05 20:26:13 +10:00
|
|
|
Max: 600
|
2020-08-18 10:58:32 -04:00
|
|
|
Exclude:
|
|
|
|
|
- '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.
|
2019-11-28 15:10:50 +00:00
|
|
|
AllowedMethods: is_32_bit?, is_64_bit?
|
2017-10-07 00:31:28 +02:00
|
|
|
|
2019-04-19 15:21:16 +09:00
|
|
|
Style/FrozenStringLiteralComment:
|
2020-07-27 12:57:29 +01:00
|
|
|
Exclude:
|
2020-08-31 02:02:05 +02:00
|
|
|
- '**/Casks/**/*.rb'
|
2020-08-18 10:58:32 -04:00
|
|
|
|
|
|
|
|
Style/HashAsLastArrayItem:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'test/utils/spdx_spec.rb'
|