ergoserv/auxiliary_rails

View on GitHub
.rubocop.yml

Summary

Maintainability
Test Coverage
inherit_from:
  - .rubocop_todo.yml

require:
  - rubocop-performance
  - rubocop-rake
  - rubocop-rspec

AllCops:
  Exclude:
    - bin/rspec
    - bin/rubocop
    - lib/generators/auxiliary_rails/templates/**/*
    - vendor/**/* # fix for CI
  NewCops: enable
  TargetRubyVersion: 2.5

#################### Layout ##############################

Layout/ArgumentAlignment:
  EnforcedStyle: with_fixed_indentation

Layout/LineEndStringConcatenationIndentation:
  EnforcedStyle: indented

Layout/MultilineMethodCallIndentation:
  EnforcedStyle: indented

#################### RSpec ################################

RSpec/ExampleLength:
  Max: 10

RSpec/MultipleExpectations:
  Max: 3

#################### Style ###############################

Style/Documentation:
  Enabled: false

Style/IfUnlessModifier:
  Enabled: false

Style/FrozenStringLiteralComment:
  Enabled: false

Style/HashEachMethods:
  Enabled: true

Style/HashTransformKeys:
  Enabled: true

Style/HashTransformValues:
  Enabled: true

Style/NegatedIf:
  EnforcedStyle: postfix