.rubocop.yml
AllCops:
Exclude:
- bin/**/*
- config/**/*
- db/**/*
- log/**/*
- public/**/*
- spec/rails_helper.rb
- spec/spec_helper.rb
- tmp/**/*
- vendor/**/*
- node_modules/**/*
- Guardfile
- .gems/**/*
Rails:
Enabled: true
Metrics/ModuleLength:
CountComments: false # count full line comments?
Max: 100
Enabled: false
Style/AccessorMethodName:
Enabled: false
Style/AndOr:
Enabled: false
Style/Documentation:
Enabled: false
Style/EmptyLinesAroundBlockBody:
Enabled: false
Style/EmptyLinesAroundClassBody:
Enabled: false
Style/EmptyLinesAroundModuleBody:
Enabled: false
Style/GuardClause:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/Semicolon:
AllowAsExpressionSeparator: true
Style/ClassAndModuleChildren:
Enabled: false
Style/WordArray:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/LineLength:
Enabled: false
Metrics/MethodLength:
CountComments: false # count full line comments?
Max: 20
Metrics/AbcSize:
Max: 30
Rails/HasAndBelongsToMany:
Enabled: false
Rails/TimeZone:
Enabled: false
Rails/Delegate:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/RegexpLiteral:
AllowInnerSlashes: true
Style/PredicateName:
Enabled: false
Metrics/MethodLength:
Max: 50
Lint/AssignmentInCondition:
Enabled: false
Lint/NestedMethodDefinition:
Enabled: false
Metrics/AbcSize:
Max: 50
Metrics/PerceivedComplexity:
Max: 30
Style/FrozenStringLiteralComment:
Enabled: false
Style/NumericPredicate:
Enabled: false
Rails/OutputSafety:
Enabled: false
Style/AsciiComments:
Enabled: false
Rails/HttpPositionalArguments:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
Enabled: true
Style/StringLiteralsInInterpolation:
EnforcedStyle: single_quotes
Enabled: true
Metrics/BlockLength:
Max: 150
Rails/SkipsModelValidations:
Enabled: false
Security/YAMLLoad:
Exclude:
- 'spec/**/**'
Style/FileName:
Enabled: false