2016-09-27 18:48:06 +02:00
|
|
|
inherit_from:
|
2016-10-01 12:13:09 +01:00
|
|
|
- ../.rubocop.yml
|
2016-09-27 18:48:06 +02:00
|
|
|
- .rubocop_todo.yml
|
|
|
|
|
|
|
|
|
|
AllCops:
|
|
|
|
|
Include:
|
|
|
|
|
- '**/.simplecov'
|
|
|
|
|
Exclude:
|
2016-10-11 01:00:23 +02:00
|
|
|
- '**/Casks/**/*'
|
2016-09-28 22:34:09 +02:00
|
|
|
- '**/vendor/**/*'
|
2016-09-27 18:48:06 +02:00
|
|
|
|
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
|
|
|
|
2016-10-22 13:32:46 +01:00
|
|
|
# so many of these in formulae but none in here
|
|
|
|
|
Lint/AmbiguousRegexpLiteral:
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
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
|
|
|
|
2016-10-22 13:32:46 +01:00
|
|
|
# so many of these in formulae but none in here
|
|
|
|
|
Lint/ParenthesesAsGroupedExpression:
|
2016-10-22 15:53:18 +01:00
|
|
|
Enabled: true
|
2016-10-22 13:32:46 +01:00
|
|
|
|
2017-05-21 00:15:56 +02:00
|
|
|
Metrics/ParameterLists:
|
|
|
|
|
CountKeywordArgs: false
|
|
|
|
|
|
2017-05-28 16:59:53 +01:00
|
|
|
Style/BlockDelimiters:
|
|
|
|
|
Exclude:
|
|
|
|
|
- '**/*_spec.rb'
|
|
|
|
|
|
2016-10-22 13:32:46 +01:00
|
|
|
# so many of these in formulae but none in here
|
|
|
|
|
Style/GuardClause:
|
|
|
|
|
Enabled: true
|
2016-09-27 18:48:06 +02:00
|
|
|
|
2016-10-22 13:32:46 +01:00
|
|
|
# hash-rockets preferred for formulae, a: 1 preferred elsewhere
|
2016-09-27 18:48:06 +02:00
|
|
|
Style/HashSyntax:
|
|
|
|
|
EnforcedStyle: ruby19_no_mixed_keys
|
|
|
|
|
|
|
|
|
|
# we won't change backward compatible method names
|
|
|
|
|
Style/MethodName:
|
|
|
|
|
Exclude:
|
2016-09-28 22:34:09 +02:00
|
|
|
- 'compat/**/*'
|
2016-09-27 18:48:06 +02:00
|
|
|
|
|
|
|
|
# we won't change backward compatible predicate names
|
|
|
|
|
Style/PredicateName:
|
|
|
|
|
Exclude:
|
2016-09-28 22:34:09 +02:00
|
|
|
- 'compat/**/*'
|
2016-09-27 18:48:06 +02:00
|
|
|
NameWhitelist: is_32_bit?, is_64_bit?
|