inherit_from: .rubocop_todo.yml

AllCops:
  TargetRubyVersion: 2.2
  Exclude:
    - 'frontend/**/*'
    - 'vendor/**/*'
    - 'test/**/*'
Style/IfUnlessModifier:
  Enabled: false
Style/DoubleNegation:
  Enabled: false
Style/StringLiterals:
  Enabled: false
Style/SpaceAroundEqualsInParameterDefault:
  EnforcedStyle: no_space
Style/TrailingCommaInLiteral:
  EnforcedStyleForMultiline: comma
Style/RaiseArgs:
  Enabled: true
  EnforcedStyle: compact
Style/AndOr:
  Enabled: true
  EnforcedStyle: conditionals
Style/FormatString:
  Enabled: true
  EnforcedStyle: percent
Metrics/LineLength:
  Enabled: false # TODO: Remove this after all linelength offenses are worked out
  Max: 80
  AllowURI: true
  URISchemes:
    - http
    - https
Style/DotPosition:
  Enabled: true
  EnforcedStyle: leading
  SupportedStyles:
    - leading
    - trailing
Performance/TimesMap:
  Enabled: false

inherit_from: .rubocop_todo.yml

AllCops:
  TargetRubyVersion: 2.2
  Exclude:
    - 'frontend/**/*'
    - 'vendor/**/*'
    - 'test/**/*'
    - 'node_modules/**/*'
Style/IfUnlessModifier:
  Enabled: false
Style/DoubleNegation:
  Enabled: false
Style/StringLiterals:
  Enabled: false
Style/SpaceAroundEqualsInParameterDefault:
  EnforcedStyle: no_space
Style/TrailingCommaInLiteral:
  EnforcedStyleForMultiline: comma
Style/RaiseArgs:
  Enabled: true
  EnforcedStyle: compact
Style/AndOr:
  Enabled: true
  EnforcedStyle: conditionals
Style/FormatString:
  Enabled: true
  EnforcedStyle: percent
Metrics/LineLength:
  Enabled: false # TODO: Remove this after all linelength offenses are worked out
  Max: 80
  AllowURI: true
  URISchemes:
    - http
    - https
Style/DotPosition:
  Enabled: true
  EnforcedStyle: leading
  SupportedStyles:
    - leading
    - trailing
Performance/TimesMap:
  Enabled: false

Exclude node_modules/* from Rubocop scan
Exclude node_modules/* from Rubocop scan

`node_modules` includes `lineman` which contains some Rakefiles that
Rubocop does not like. Since these are vendor provided we will not lint
them ourselves.

(This issue is not present during CI because the Rubocop scan is run
BEFORE the node modules are installed.)
