1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/.rubocop_todo.yml
Vladimir Dementyev 2cb2357d39 Let's use Rubocop! (#1325)
* Add limited rubocop config and TODO config

* Remove trailing whitespaces and blanklines

* Add rubocop rake task; upd travis.yml
2017-06-04 13:21:05 -07:00

86 lines
No EOL
1.3 KiB
YAML

inherit_from: "./.rubocop.yml"
# 29 offenses
Layout/SpaceAroundOperators:
Enabled: true
# 21 offenses
Layout/SpaceInsideBlockBraces:
Enabled: true
# 16 offenses
Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true
EnforcedStyle: no_space
# 15 offenses
Layout/SpaceBeforeBlockBraces:
Enabled: true
# 15 offenses
Layout/SpaceInsideHashLiteralBraces:
Enabled: true
EnforcedStyle: no_space
# 8 offenses
Layout/EmptyLines:
Enabled: true
# 4 offenses
Layout/EmptyLinesAroundClassBody:
Enabled: true
Exclude:
- 'test/**/*'
# 6 offenses
Layout/EmptyLinesAroundMethodBody:
Enabled: true
# 5 offenses
Layout/EmptyLinesAroundModuleBody:
Enabled: true
# 5 offenses
Layout/IndentationWidth:
Enabled: true
# 3 offenses
Layout/AccessModifierIndentation:
EnforcedStyle: indent
# 2 offenses
Style/WhileUntilModifier:
Enabled: true
# 1 offense
Style/TernaryParentheses:
Enabled: true
# >200 offenses for 80
# 58 offenses for 100
# 18 offenses for 120
Metrics/LineLength:
Max: 120
AllowHeredoc: true
AllowURI: true
URISchemes:
- http
- https
IgnoreCopDirectives: false
IgnoredPatterns: []
# 1 offense
Metrics/ParameterLists:
Max: 5
# 1 offense
Performance/RedundantMatch:
Enabled: true
# 1 offense
Performance/RedundantBlockCall:
Enabled: true
# 1 offense
Performance/StringReplacement:
Enabled: true