Sha256: 72d0b7578f5ee885958eaf23d344b8df40917bb41b9d8243b1a9a6005dd69612

Contents?: true

Size: 1.42 KB

Versions: 3

Compression:

Stored size: 1.42 KB

Contents

# Metrics configuration overrides
# https://docs.rubocop.org/rubocop/1.5/cops_metrics.html

Metrics/BlockNesting:
  Description: 'Avoid excessive block nesting'
  StyleGuide: 'https://github.com/rubocop/ruby-style-guide#three-is-the-number-thou-shalt-count'
  Enabled: false

Metrics/ClassLength:
  Description: 'Avoid classes longer than 100 lines of code.'
  Enabled: false

Metrics/ModuleLength:
  Description: 'Avoid modules longer than 100 lines of code.'
  Enabled: false

Metrics/AbcSize:
  Description: >-
    A calculated magnitude based on number of assignments,
    branches, and conditions.
  Enabled: false

Metrics/BlockLength:
  CountComments: false  # count full line comments?
  Max: 25
  AllowedMethods: [ refine, class_methods, extended, included ]
  Exclude:
    - "config/environments/*" # rails environment configuration
    - "config/routes.rb"
    - "config/routes/*"
    - "spec/**/*"

Metrics/CyclomaticComplexity:
  Description: >-
    A complexity metric that is strongly correlated to the number
    of test cases needed to validate a method.
  Enabled: false

Metrics/MethodLength:
  Description: 'Avoid methods longer than 10 lines of code.'
  StyleGuide: 'https://github.com/rubocop/ruby-style-guide#short-methods'
  Enabled: false

Metrics/ParameterLists:
  Description: 'Avoid parameter lists longer than three or four parameters.'
  StyleGuide: 'https://github.com/rubocop/ruby-style-guide#too-many-params'
  Enabled: false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubocop-katalyst-2.1.0 config/rubocop-metrics.yml
rubocop-katalyst-2.0.5 config/rubocop-metrics.yml
rubocop-katalyst-2.0.4 config/rubocop-metrics.yml