Sha256: 74205b8d68fbe9ddaa05485e8e448456faf25be450a6f9e6ad11e4431b66deb4

Contents?: true

Size: 1.53 KB

Versions: 7

Compression:

Stored size: 1.53 KB

Contents

inherit_from:
  - ../conf/rubocop.yml

inherit_mode:
  merge:
    - Exclude

AllCops:
  TargetRailsVersion: 5.2
  Exclude:
    - tmp/cache/**/*

Metrics/BlockLength:
  inherit_mode:
    merge:
      - Exclude
  Exclude:
  - "app/graphql/**/*.rb"
  - "config/environments/*.rb"
  - "lib/tasks/**/*.rake"

Rails:
  Enabled: true

Rails/FilePath:
  Enabled: false

Rails/HasAndBelongsToMany:
  Enabled: false

Rails/RelativeDateConstant:
  # Auto-correct is broken for this cops in some cases. It replaces the
  # constant but does not update references to it.
  AutoCorrect: false

Style/DoubleNegation:
  Enabled: false

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

Rails/UnknownEnv:
  Environments:
    - development
    - test
    - staging
    - production

Rails/SaveBang:
  Enabled: true
  AllowImplicitReturn: false
  AutoCorrect: False

Ezcater/RailsTopLevelSqlExecute:
  Description: 'Use `execute` instead of `ActiveRecord::Base.connection.execute` in migrations.'
  Enabled: true
  Include:
    - "db/migrate/**/*"

Ezcater/RailsEnv:
  Description: 'Enforce the use of `Rails.configuration.x.<foo>` instead of checking `Rails.env`.'
  Enabled: true
  Exclude:
    - "config/**/*"
    - "spec/rails_helper.rb"
    - "db/**/*"
    - "lib/tasks/**/*"
    - "spec/lib/tasks/**/*"

Ezcater/DirectEnvCheck:
  Description: 'Enforce the use of `Rails.configuration.x.<foo>` instead of checking `ENV`.'
  Enabled: true
  Exclude:
    - "bin/**/*"
    - "config/**/*"
    - "spec/rails_helper.rb"
    - "db/**/*"
    - "lib/tasks/**/*"
    - "spec/lib/tasks/**/*"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ezcater_rubocop-2.5.0 conf/rubocop_rails.yml
ezcater_rubocop-3.0.0 conf/rubocop_rails.yml
ezcater_rubocop-2.4.0 conf/rubocop_rails.yml
ezcater_rubocop-2.3.0 conf/rubocop_rails.yml
ezcater_rubocop-2.2.0 conf/rubocop_rails.yml
ezcater_rubocop-2.1.0 conf/rubocop_rails.yml
ezcater_rubocop-2.1.0.pre1 conf/rubocop_rails.yml