inherit_from: .hound.suse.yml

AllCops:
  TargetRubyVersion: 2.1
  Rails:
    Enabled: true
  DisplayStyleGuide: true
  DisplayCopNames: true

Style/RedundantReturn:
  Exclude:
    - "chef/data_bags/crowbar/migrate/**/*"

Style/FileName:
  Exclude:
    - "lib/crowbar-*"

Style/AlignHash:
  EnforcedHashRocketStyle: key
  EnforcedColonStyle: key

Style/Documentation:
  Enabled: false

Lint/UnusedMethodArgument:
  Enabled: false

Lint/UnusedBlockArgument:
  Enabled: false

Metrics/MethodLength:
  Max: 50

Metrics/ClassLength:
  Max: 500

Metrics/ModuleLength:
  Max: 500

inherit_from: .hound.suse.yml

AllCops:
  TargetRubyVersion: 2.1
  Rails:
    Enabled: true
  DisplayStyleGuide: true
  DisplayCopNames: true

Style/RedundantReturn:
  Exclude:
    - "chef/data_bags/crowbar/migrate/**/*"

Style/FileName:
  Exclude:
    - "lib/crowbar-*"

Style/AlignHash:
  EnforcedHashRocketStyle: key
  EnforcedColonStyle: key

Style/Documentation:
  Enabled: false

Lint/UnusedMethodArgument:
  Enabled: false

Lint/UnusedBlockArgument:
  Enabled: false

Metrics/MethodLength:
  Max: 50

Metrics/ClassLength:
  Max: 500

Metrics/ModuleLength:
  Max: 500

Metrics/BlockLength:
  Max: 40
  Exclude:
    - "**/spec/**/*.rb"

Set max BlockLength to 40 and ignore spec files
rubocop: Set max BlockLength to 40 and ignore spec files

The default block lenght is too short for crowbar and leads to many
false positives. Also by nature spec files have longer blocks so let's
ignore them.
