Sha256: 9c0316887ca730a7fdc5ffe4ef05db8121cef5be6015034b737d4eac01edc311

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

require:
  - rubocop-rails
  - rubocop-rake
  - rubocop-rspec
  - rubocop-performance

inherit_from:
 - .rubocop_todo.yml

Rails:
  Enabled: true

AllCops:
  NewCops: enable
  TargetRubyVersion: 2.7
  Exclude:
    - '*.gemspec'
    - 'Gemfile'
    - vendor/bundle/ruby/**/*

Layout/FirstHashElementIndentation:
  EnforcedStyle: consistent

Rake/Desc:
  Exclude:
    - Rakefile

RSpec/VariableName:
  Exclude:
    - spec/lib/dispatch-rider/publisher/base_spec.rb

Style/CommentedKeyword:
  Exclude:
    - 'spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb'

Style/RescueStandardError:
  EnforcedStyle: implicit

Style/StringLiterals:
  Enabled: false

Naming/FileName:
  Exclude:
    - lib/dispatch-rider.rb
    - spec/lib/dispatch-rider_spec.rb

Style/RedundantException:
  Enabled: false

Style/SignalException:
  Enabled: false

Style/BlockDelimiters:
  Enabled: false

Style/CollectionMethods:
  PreferredMethods:
    detect: find

# Github's PR width is 145 characters
Layout/LineLength:
  Max: 141
  AllowURI: true

# Align with the style guide, we don't prefer anything
#Style/CollectionMethods:
  #Enabled: false

Metrics/AbcSize:
  Description: A calculated magnitude based on number of assignments, branches, and
    conditions.
  Enabled: true
  Max: 22

# We don't want to do this
Rails/ApplicationRecord:
  Exclude:
    - 'lib/dispatch-rider/scheduled_job.rb'

Style/PercentLiteralDelimiters:
  Exclude:
    - 'spec/lib/dispatch-rider/logging/json_formatter_spec.rb'
    - 'spec/spec_helper.rb'

Style/FormatString:
  Exclude:
    - 'lib/dispatch-rider/logging/text_formatter.rb'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dispatch-rider-2.2.0 .rubocop.yml