Sha256: f53f57bc8f52c95a5eaa96bf3b69ca341e1e0d4356f085e21ca60f08998fd6b0

Contents?: true

Size: 1.4 KB

Versions: 3

Compression:

Stored size: 1.4 KB

Contents

# Customizations/Deviations from Standard/Shopify for Ruby Coding Standards

# We want Exclude directives from different
# config files to get merged, not overwritten
inherit_mode:
  merge:
    - Exclude

require:
  # Loads the Standard Ruby suite of gems, and configures for rubocop-lts:
  - standard-rubocop-lts
  # The goal here is convention over configuration...
  # In light of that, we are well past having convened on Markdown for README docs and such.
  - rubocop-md
  # Rubygems have Rakefile as a convention, and if they don't, why not?
  - rubocop-rake
  # In the vast majority of cases, we will want to be warned about thread unsafe code.
  # In those cases where we intentionally have thread unsafe code,
  #   a rubocop:disable is the least of our concerns. :D
  - rubocop-thread_safety
  # RuboCop Gradual can be used in "Require mode", which is a way to replace rubocop with rubocop-gradual:
  - rubocop/gradual/patch

inherit_gem:
  standard-rubocop-lts: config/ruby-2.1.yml
  # shopify rules will override standard's rules.
  rubocop-shopify: rubocop.yml

inherit_from:
  - strict/ruby.yml

AllCops:
  # When the Ruby community, via RuboCop, adopts a new standard
  #   (with additional filtering by standard.rb and rubocop-shopify) it is good enough for us!
  NewCops: enable

# Metrics cops are disabled in Standard by default
Metrics:
  Enabled: true

# Ruby specific customizations
Layout/LineLength:
  Max: 120

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubocop-ruby2_1-2.0.3 rubocop-lts/ruby.yml
rubocop-ruby2_1-2.0.2 rubocop-lts/ruby.yml
rubocop-ruby2_1-2.0.1 rubocop-lts/ruby.yml