Files
grecia/.rubocop_basic.yml
Javi Martín e11b9ddccd Enable literal as condition rule in rubocop
This way deverlopers who don't run the ruby syntax check locally with
warnings enabled will be informed by HoundCI.
2019-02-15 20:21:35 +01:00

47 lines
836 B
YAML

require: rubocop-rspec
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
TargetRubyVersion: 2.3
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
Layout/IndentationConsistency:
EnforcedStyle: rails
Layout/IndentationWidth:
Enabled: true
Layout/EndOfLine:
EnforcedStyle: lf
Layout/TrailingBlankLines:
Enabled: true
Layout/TrailingWhitespace:
Enabled: true
Lint/LiteralAsCondition:
Enabled: true
Lint/UselessAssignment:
Enabled: true
Metrics/LineLength:
Max: 100
RSpec/NotToNot:
Enabled: true
Style/StringLiterals:
EnforcedStyle: double_quotes