-
-
Save dansteele/1142c3700fb9860ec7b3defccbaf2c4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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