Sha256: a477c43b7230eb133cbe5f3e8c9f71005e695e7ac455b9c68a5221e02936af56

Contents?: true

Size: 1.73 KB

Versions: 5

Compression:

Stored size: 1.73 KB

Contents

require:
  - rubocop-rspec
  - rubocop-rails

Rails:
  Enabled: true

Style/Documentation:
  Enabled: true

AllCops:
  NewCops: enable
  SuggestExtensions: false
  DisplayCopNames: true
  TargetRubyVersion: 2.7
  TargetRailsVersion: 5.2
  Exclude:
    - bin/**/*
    - vendor/**/*
    - build/**/*
    - gemfiles/**/*

Metrics/BlockLength:
  Exclude:
    - Rakefile
    - '*.gemspec'
    - spec/**/*.rb
    - '**/*.rake'
    - doc/**/*.rb

# MFA is not yet enabled for our gems yet.
Gemspec/RequireMFA:
  Enabled: false

# 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

# We stay with the original Ruby Style Guide recommendation.
Layout/LineLength:
  Max: 80

# 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

# We do not have a full Rails application here.
Rails/ApplicationRecord:
  Enabled: false

# We do not have a full Rails application here.
Rails/ApplicationJob:
  Enabled: false

# Because +enqueued_jobs+ is a method not a memoized variable,
# so when first evaluated it won't change.
RSpec/ExpectChange:
  Enabled: false

# We highly depend on memoized helpers across the specs.
RSpec/MultipleMemoizedHelpers:
  Enabled: false

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alarmable-1.2.4 .rubocop.yml
alarmable-1.2.3 .rubocop.yml
alarmable-1.2.2 .rubocop.yml
alarmable-1.2.1 .rubocop.yml
alarmable-1.2.0 .rubocop.yml