Sha256: e96d3c57adadc1faca827ee46f79c0ed47ea29459806278f3993c6218738e39d

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

inherit_from: .rubocop_todo.yml

require:
  - rubocop-rspec

AllCops:
  Exclude:
    - 'tmp/**/*'
  TargetRubyVersion: 2.3

# Dot at end of line makes it clearer that the line is not done
Layout/DotPosition:
  EnforcedStyle: trailing

# Multi-line assignment should be simply indented. Aligning them makes it even
# harder to keep a sane line length.
Layout/MultilineOperationIndentation:
  EnforcedStyle: indented

# Multi-line method calls should be simply indented. Aligning them makes it
# even harder to keep a sane line length.
Layout/MultilineMethodCallIndentation:
  EnforcedStyle: indented

# Allow if (foo = get_foo) style
Lint/AssignmentInCondition:
  AllowSafeAssignment: true

# Spec describe blocks can be any size
Metrics/BlockLength:
  Exclude:
    - 'spec/**/*'

# Require lines to fit in pull requests.
Metrics/LineLength:
  Max: 92

# Allow deeper nesting for spec organization
RSpec/NestedGroups:
  Max: 4

# Allow and/or for control flow only
Style/AndOr:
  EnforcedStyle: conditionals

# Require at least two dependent lines before suggesting a guard clause
Style/GuardClause:
  MinBodyLength: 2

# Explicite numbers are often clearer, and more robust.
Style/NumericPredicate:
  Enabled: false

# Allow explicit return with multiple return values
Style/RedundantReturn:
  AllowMultipleReturnValues: true

# I prefer to have symbols look like symbols
Style/SymbolArray:
  EnforcedStyle: brackets

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
keep_up-0.7.1 .rubocop.yml
keep_up-0.7.0 .rubocop.yml