inherit_from: .rubocop_todo.yml

# Exclude any vendored gems
AllCops:
  Exclude:
    - 'vendor/**/*'
  NewCops: enable
  TargetRubyVersion: 2.4

# Be lenient with line length
Layout/LineLength:
  Max: 92

# Multi-line method calls should be simply indented. Aligning them makes it
# even harder to keep a sane line length.
Layout/MultilineMethodCallIndentation:
  EnforcedStyle: indented

# Multi-line assignment should be simply indented. Aligning them makes it even
# harder to keep a sane line length.
Layout/MultilineOperationIndentation:
  EnforcedStyle: indented

# Allow test classes to have any length
Metrics/ClassLength:
  Exclude:
    - 'test/**/*'

# Allow test methods to have any length
Metrics/MethodLength:
  Exclude:
    - 'test/**/*'

# In guard clauses, if ! is often more immediately clear
Style/NegatedIf:
  Enabled: false

# Do not commit to use of interpolation
Style/StringLiterals:
  EnforcedStyle: double_quotes

# Prefer symbols to look like symbols
Style/SymbolArray:
  EnforcedStyle: brackets

inherit_from: .rubocop_todo.yml

# Exclude any vendored gems
AllCops:
  Exclude:
    - 'vendor/**/*'
  NewCops: enable
  TargetRubyVersion: 2.4

# Be lenient with line length
Layout/LineLength:
  Max: 92

# Multi-line method calls should be simply indented. Aligning them makes it
# even harder to keep a sane line length.
Layout/MultilineMethodCallIndentation:
  EnforcedStyle: indented

# Multi-line assignment should be simply indented. Aligning them makes it even
# harder to keep a sane line length.
Layout/MultilineOperationIndentation:
  EnforcedStyle: indented

# Allow test classes to have any length
Metrics/ClassLength:
  Exclude:
    - 'test/**/*'

# Allow test methods to have any length
Metrics/MethodLength:
  Exclude:
    - 'test/**/*'

# Allow else clauses with explicit nil value
Style/EmptyElse:
  EnforcedStyle: empty

# In guard clauses, if ! is often more immediately clear
Style/NegatedIf:
  Enabled: false

# Do not commit to use of interpolation
Style/StringLiterals:
  EnforcedStyle: double_quotes

# Prefer symbols to look like symbols
Style/SymbolArray:
  EnforcedStyle: brackets

Allow else clauses with explicit nil value
Allow else clauses with explicit nil value
