rating/.rubocop.yml

77 lines
1.2 KiB
YAML

require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
inherit_from: .rubocop_todo.yml
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/HashAlignment:
EnforcedColonStyle: table
Enabled: false
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/EmptyLinesAroundArguments:
Enabled: false
Layout/MultilineMethodCallBraceLayout:
EnforcedStyle: new_line
Metrics/AbcSize:
Max: 50
Metrics/BlockLength:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 50
Naming/VariableNumber:
EnforcedStyle: snake_case
Rails:
Enabled: true
RSpec/AnyInstance:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/FilePath:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NestedGroups:
Max: 5
Style/Documentation:
Enabled: false
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '()'
'%i': '[]'
'%I': '[]'
'%r': '()'
'%w': '[]'
'%W': '[]'
Style/PerlBackrefs:
Enabled: false
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma