Sha256: fcae546890fd5a6e6f4abfa59fffb634095955ecf0fe329400439b834a19d45d

Contents?: true

Size: 1.47 KB

Versions: 4

Compression:

Stored size: 1.47 KB

Contents

require: rubocop-rspec

Rails:
  Enabled: true

Documentation:
  Enabled: true

AllCops:
  DisplayCopNames: true
  TargetRubyVersion: 2.5
  Exclude:
    - bin/**/*
    - vendor/**/*
    - build/**/*
    - gemfiles/vendor/**/*

Metrics/BlockLength:
  Exclude:
    - Rakefile
    - '*.gemspec'
    - spec/**/*.rb
    - '**/*.rake'
    - doc/**/*.rb
    # Concerns and middlewares contain by nature long blocks
    - lib/pricehubble/entity/concern/**/*.rb
    - lib/pricehubble/client/request/**/*.rb
    - lib/pricehubble/client/response/**/*.rb

# Document all the things.
Style/DocumentationMethod:
  Enabled: true
  RequireForNonPublicMethods: true

# It's a deliberate idiom in RSpec.
# See: https://github.com/bbatsov/rubocop/issues/4222
Lint/AmbiguousBlockAssociation:
  Exclude:
    - "spec/**/*"

# Because +expect_any_instance_of().to have_received()+ is not
# supported with the +with(hash_including)+ matchers
RSpec/MessageSpies:
  EnforcedStyle: receive

# Because nesting makes sense here to group the feature tests
# more effective. This increases maintainability.
RSpec/NestedGroups:
  Max: 4

# Disable regular Rails spec paths.
RSpec/FilePath:
  Enabled: false

# Because we just implemented the ActiveRecord API.
Rails/SkipsModelValidations:
  Enabled: false

# Because of the clean wording on the examples.
Lint/ShadowingOuterLocalVariable:
  Exclude:
    - "doc/**/*"

# We stay at 80 characters per line.
# See: https://rubystyle.guide/#max-line-length
Metrics/LineLength:
  Max: 80

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pricehubble-0.4.2 .rubocop.yml
pricehubble-0.4.1 .rubocop.yml
pricehubble-0.4.0 .rubocop.yml
pricehubble-0.3.0 .rubocop.yml