AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'spec/**/*'
- 'db/**/*'
- 'app/views/**/*'
- 'config/**/*'
- 'bin/*'
- 'Rakefile'
- 'node_modules/**/*'
- 'Vagrantfile'
- 'vendor/**/*'
Bundler/OrderedGems:
Enabled: false
Layout/AccessModifierIndentation:
EnforcedStyle: indent
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: space
Metrics/AbcSize:
Max: 100
Metrics/BlockNesting:
Max: 3
Metrics/ClassLength:
CountComments: false
Max: 200
Metrics/CyclomaticComplexity:
Max: 15
Metrics/LineLength:
AllowURI: true
Metrics/MethodLength:
Max: 55
Metrics/ModuleLength:
Metrics/ParameterLists:
Max: 4
CountKeywordArgs: true
Metrics/PerceivedComplexity:
Max: 10
Rails:
Enabled: true
Rails/HasAndBelongsToMany:
Style/ClassAndModuleChildren:
Style/CollectionMethods:
PreferredMethods:
find_all: 'select'
Style/Documentation:
Style/DoubleNegation:
Style/FrozenStringLiteralComment:
Style/GuardClause:
Style/Lambda:
Style/PerlBackrefs:
AutoCorrect: false
Style/RegexpLiteral:
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: 'comma'