Sha256: dc6e63289b48a7b1c63b22ab2f43682a4d820ef4a9678f54a9e61a686f875de7

Contents?: true

Size: 1.41 KB

Versions: 1

Compression:

Stored size: 1.41 KB

Contents

require:
  - rubocop-rspec
  - rubocop-performance

AllCops:
  TargetRubyVersion: 2.4
  Exclude:
    # These are auto-generated from a load of features that use aruba
    - 'tmp/**/*'
    # Generated by appraisal
    - 'gemfiles/*.gemfile'

# These two areas will frequently break this limit, so we ignore the limit
Metrics/BlockLength:
  Exclude:
    - './spec/**/*_spec.rb'
    - 'cucumber-rails.gemspec'

# This allows us to read the chmod action in a more reproducible way
Style/NumericLiteralPrefix:
  EnforcedOctalStyle: zero_only

# Enable new cops
Layout/EmptyLinesAroundAttributeAccessor:
  Enabled: true
Layout/SpaceAroundMethodCallOperator:
  Enabled: true
Lint/DeprecatedOpenSSLConstant:
  Enabled: true
Lint/MixedRegexpCaptureTypes:
  Enabled: true
Lint/RaiseException:
  Enabled: true
Lint/StructNewOverride:
  Enabled: true
Style/ExponentialNotation:
  Enabled: true
Style/HashEachMethods:
  Enabled: true
Style/HashTransformKeys:
  Enabled: true
Style/HashTransformValues:
  Enabled: true
Style/RedundantRegexpCharacterClass:
  Enabled: true
Style/RedundantRegexpEscape:
  Enabled: true
Style/SlicingWithRange:
  Enabled: true

## Cucumber Repo styles (Across implementations) ##

Layout/LineLength:
  Max: 200
  IgnoredPatterns:
    - '^Given'
    - '^When'
    - '^Then'

Style/Documentation:
  Enabled: false

Style/RegexpLiteral:
  EnforcedStyle: slashes
  AllowInnerSlashes: true

RSpec/MessageSpies:
  EnforcedStyle: receive

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cucumber-rails-2.1.0 .rubocop.yml