Sha256: 723f0de676e361b6088ff68360504d3f3560f7caba5fcc4ff7fe94066fef821d

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

##################### Rails ##################################

# By default Rails is switched off so this can be used by non-Rails apps,
# this can be enabled in a local .rubocop.yml file

require: rubocop-rails

AllCops:
  Exclude:
    - 'db/schema.rb'

Rails:
  Enabled: true

Rails/ActionFilter:
  Description: 'Enforces consistent use of action filter methods.'
  Enabled: false

Rails/Delegate:
  Description: 'Prefer delegate method for delegations.'
  Enabled: false

Rails/HasAndBelongsToMany:
  Description: 'Prefer has_many :through to has_and_belongs_to_many.'
  Enabled: false

Rails/Output:
  Description: 'Checks for calls to puts, print, etc.'
  Enabled: false

Rails/ReadWriteAttribute:
  Description: 'Checks for read_attribute(:attr) and write_attribute(:attr, val).'
  Enabled: false

Rails/ScopeArgs:
  Description: 'Checks the arguments of ActiveRecord scopes.'
  Enabled: false

Rails/Validation:
  Description: 'Use sexy validations.'
  Enabled: false

Rails/SkipsModelValidations:
  Description: 'Avoid methods that skip model validations.'
  Enabled: false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubocop-govuk-3.2.0 config/rails.yml
rubocop-govuk-3.1.0 config/rails.yml
rubocop-govuk-3.0.0 config/rails.yml