Skip to content

Instantly share code, notes, and snippets.

@dansteele
Created April 20, 2020 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dansteele/1142c3700fb9860ec7b3defccbaf2c4f to your computer and use it in GitHub Desktop.
Save dansteele/1142c3700fb9860ec7b3defccbaf2c4f to your computer and use it in GitHub Desktop.
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.6
Exclude:
- 'bin/**/*'
- 'config/**/*'
- 'db/**/*'
- 'doc/**/*'
- 'lib/**/*'
- 'log/**/*'
- 'node_modules/**/*'
- 'public/**/*'
- 'script/**/*'
- 'spec/**/*'
- 'tmp/**/*'
Rails:
Enabled: true
Rails/HasManyOrHasOneDependent:
Enabled: false
Metrics/BlockLength:
Enabled: false
Exclude:
- spec/features/**/*
Metrics/LineLength:
Max: 95
Metrics/ClassLength:
Max: 175
Metrics/MethodLength:
Max: 20
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Naming/PredicateName:
Enabled: false
Layout/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines_except_namespace
Layout/EmptyLinesAroundModuleBody:
EnforcedStyle: empty_lines_except_namespace
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Style/Documentation:
Enabled: false
Style/LambdaCall:
Description: 'Use lambda.call(...) instead of lambda.(...).'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
Enabled: false
Style/ClassAndModuleChildren:
Description: 'Checks style of children classes and modules.'
Enabled: false
Style/PercentLiteralDelimiters:
Description: 'Use `%`-literal delimiters consistently'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
PreferredDelimiters:
default: ()
'%i': ()
Style/WordArray:
MinSize: 4
Style/SymbolArray:
MinSize: 4
# Causes some weird issues in statesman state machines
Style/SymbolProc:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment