Commit 163744d8 authored by marcheing's avatar marcheing

Add rubocop configuration file

From the guidelines at guidelines.plataformatec.com.br/ruby.html
parent e168fe21
AllCops:
Exclude:
- 'bin/**/*'
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- 'features/support/env.rb'
- 'vendor/**/*'
Rails:
Enabled: true
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/CaseIndentation:
IndentWhenRelativeTo: end
Style/AsciiComments:
Enabled: false
Style/IndentHash:
Enabled: false
Style/CollectionMethods:
Enabled: true
PreferredMethods:
inject: 'inject'
Style/Documentation:
Enabled: false
Style/BlockDelimiters:
Exclude:
- spec/**/*_spec.rb
Style/BracesAroundHashParameters:
Exclude:
- spec/**/*_spec.rb
Style/GuardClause:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/SpaceInsideHashLiteralBraces:
Enabled: false
Style/Lambda:
Enabled: false
Style/RaiseArgs:
Enabled: false
Style/SignalException:
Enabled: false
Metrics/AbcSize:
Max: 20
Metrics/ClassLength:
Max: 100
Metrics/ModuleLength:
Max: 100
Metrics/LineLength:
Enabled: false
Metrics/MethodLength:
Max: 15
Style/SingleLineBlockParams:
Enabled: false
Lint/EndAlignment:
AlignWith: variable
Style/FormatString:
Enabled: false
Style/MultilineMethodCallIndentation:
EnforcedStyle: indented
Style/MultilineOperationIndentation:
EnforcedStyle: indented
Style/WordArray:
Enabled: false
Style/RedundantSelf:
Enabled: false
Style/AlignHash:
Enabled: true
EnforcedLastArgumentHashStyle: always_ignore
Style/TrivialAccessors:
AllowPredicates: true
Style/FrozenStringLiteralComment:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/RedundantBegin:
Enabled: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment