Sha256: 532d147b6f47de6d35f9c7b616782d34a8e9a5171da28d644c189d6249f36947

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

AllCops:
  Exclude:
    - lib/lineinput.rb
    - lib/uuid.rb
  DisplayCopNames: true

inherit_from: .rubocop_todo.yml

Lint/BlockAlignment:
  Enabled: true

Lint/EndAlignment:
  Enabled: AlignWith

Performance/ReverseEach:
  Enabled: true

# Unnecessary spacing detected.
Style/ExtraSpacing:
  Enabled: true

# Use tr instead of gsub.
Performance/StringReplacement:
  Enabled: false

Performance/RangeInclude:
  Enabled: false

# Use alias_method instead of alias.
Style/Alias:
  Enabled: false

# Do not introduce global variables.
Style/GlobalVars:
  Enabled: true

# Use self-assignment shorthand +=.
Style/SelfAssignment:
  Enabled: true

# When defining the == operator, name its argument other.
Style/OpMethod:
  Enabled: true

# Use snake_case for variable names.
Style/VariableName:
  Enabled: true

Style/ConditionalAssignment:
  Enabled: false

Style/MutableConstant:
  Enabled: false

Style/UnneededInterpolation:
  Enabled: false

Performance/RedundantMerge:
  Enabled: false

Style/ZeroLengthPredicate:
  Enabled: false

Style/NumericPredicate:
  Enabled: false

Style/TernaryParentheses:
  Enabled: false

Style/VariableNumber:
  Enabled: false

##################### Metrics ##################################

Metrics/ClassLength:
  Max: 1500

Metrics/LineLength:
  Max: 256
  Exclude:
    - "test/**/*"

### should be < 50
Metrics/MethodLength:
  Max: 100
  Exclude:
    - "bin/review-*"
    - "test/**/*"

### should be < 20
Metrics/CyclomaticComplexity:
  Max: 32

### should be < 60
Metrics/AbcSize:
  Max: 120
  Exclude:
    - "bin/review-*"
    - "test/**/*"

### shoud be < 25
Metrics/BlockLength:
  CountComments: false  # count full line comments?
  Max: 50
  Exclude:
    - 'Rakefile'
    - '**/*.rake'
    - 'test/**/*.rb'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
review-2.1.0 .rubocop.yml