Sha256: b6fc1100d24508a9b77f703b31dc00bf27db322c67f585dab520e20f3b8032c1

Contents?: true

Size: 1.68 KB

Versions: 3

Compression:

Stored size: 1.68 KB

Contents

require: rubocop-rspec

AllCops:
  TargetRubyVersion: 2.4.0
  Exclude:
    - 'vendor/**/*'
    - 'tmp/**/*'
    - 'spec/spec_helper.rb'

# The defaults for these seem to be based on a rails env, this is not rails.
Metrics/ModuleLength:
  CountComments: false
  Max: 250

Metrics/ClassLength:
  Max: 250

Metrics/MethodLength:
  Max: 20

Metrics/AbcSize:
  Max: 25

Metrics/CyclomaticComplexity:
  Max: 8

Metrics/PerceivedComplexity:
  Max: 10

# it's 2016, people have wide monitors.
Metrics/LineLength:
  Enabled: false

Metrics/BlockLength:
  Exclude:
    - 'spec/**/*'
    - '*.gemspec'
    - 'Rakefile'
    - 'Guardfile'

Metrics/ParameterLists:
  Exclude:
    - 'lib/cts/mpx/services/data.rb'
    - 'lib/cts/mpx/driver/assemblers.rb'
    - 'lib/cts/mpx/services/ingest.rb'
    - 'lib/cts/mpx/services/web.rb'

# we exclude these two files since they are generated, the rest of our projects
# should use // style regexps.
Style/RegexpLiteral:
  EnforcedStyle: slashes
  AllowInnerSlashes: true
  Exclude:
    - 'Guardfile'
    - '*.gemspec'

# Prefer single-quoted strings when you don't need string interpolation or special symbols
Style/StringLiterals:
  Enabled: false

Style/WordArray:
  EnforcedStyle: brackets

Style/FrozenStringLiteralComment:
  Enabled: false

Style/MixinUsage:
  Exclude:
  - 'bin/*'

# Specs don't need inline documentation.
Style/Documentation:
  Enabled: true
  Exclude:
    - 'spec/**/*'

RSpec/NamedSubject:
  Enabled: false

RSpec/DescribeSymbol:
  Enabled: false

Lint/Debugger:
  Enabled: false

# Purty hashes.
Layout/AlignHash:
  EnforcedHashRocketStyle: table
  EnforcedColonStyle: table

Style/ClassAndModuleChildren:
  Enabled: false

Style/MixinUsage:
  Exclude:
    - "spec/*"

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
cts-mpx-1.2.0 .rubocop.yml
cts-mpx-aci-2.0.1 .rubocop.yml
cts-mpx-1.1.2 .rubocop.yml