Skip to content
Snippets Groups Projects
.rubocop.yml 1.06 KiB
Newer Older
  - ../.rubocop.yml
  - .rubocop_todo.yml

AllCops:
  Include:
    - '**/.simplecov'
  Exclude:
    - '**/Casks/**/*'
Mike McQuaid's avatar
Mike McQuaid committed
Layout/MultilineMethodCallIndentation:
  Exclude:
    - '**/*_spec.rb'
Mike McQuaid's avatar
Mike McQuaid committed
# so many of these in formulae but none in here
Lint/AmbiguousRegexpLiteral:
  Enabled: true

# `formula do` uses nested method definitions
Lint/NestedMethodDefinition:
  Exclude:
Mike McQuaid's avatar
Mike McQuaid committed
# so many of these in formulae but none in here
Lint/ParenthesesAsGroupedExpression:
Mike McQuaid's avatar
Mike McQuaid committed
  Enabled: true
Markus Reiter's avatar
Markus Reiter committed
Metrics/ParameterLists:
  CountKeywordArgs: false

Mike McQuaid's avatar
Mike McQuaid committed
Style/BlockDelimiters:
  Exclude:
    - '**/*_spec.rb'

Mike McQuaid's avatar
Mike McQuaid committed
# so many of these in formulae but none in here
Style/GuardClause:
  Enabled: true
Mike McQuaid's avatar
Mike McQuaid committed
# hash-rockets preferred for formulae, a: 1 preferred elsewhere
Style/HashSyntax:
  EnforcedStyle: ruby19_no_mixed_keys

# we won't change backward compatible method names
Style/MethodName:
  Exclude:

# we won't change backward compatible predicate names
Style/PredicateName:
  Exclude:
  NameWhitelist: is_32_bit?, is_64_bit?