mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00

* rubocop.yml - add more Cops & alphabetize * RuboCop - Performance/UnfreezeString * RuboCop - Style/SafeNavigation * RuboCop - Performance/StringInclude * RuboCop - Performance/StringIdentifierArgument * RuboCop - Performance/RegexpMatch * RuboCop - Performance/MethodObjectAsBlock * RuboCop - Performance/CollectionLiteralInLoop * RuboCop - Performance/ChainArrayAllocation
110 lines
1.9 KiB
YAML
110 lines
1.9 KiB
YAML
require: rubocop-performance
|
|
|
|
AllCops:
|
|
DisabledByDefault: true
|
|
TargetRubyVersion: 2.4
|
|
DisplayCopNames: true
|
|
StyleGuideCopsOnly: false
|
|
Exclude:
|
|
- 'tmp/**/*'
|
|
- '**/vendor/bundle/**/*'
|
|
- 'examples/**/*'
|
|
- 'pkg/**/*'
|
|
- 'Rakefile'
|
|
SuggestExtensions: false
|
|
NewCops: disable
|
|
|
|
# ————————————————————————————————————————— disabled cops
|
|
|
|
# ————————————————————————————————————————— enabled cops
|
|
|
|
Layout/AccessModifierIndentation:
|
|
EnforcedStyle: indent
|
|
|
|
Layout/IndentationStyle:
|
|
Enabled: true
|
|
|
|
Layout/SpaceAfterColon:
|
|
Enabled: true
|
|
|
|
Layout/SpaceAroundKeyword:
|
|
Enabled: true
|
|
|
|
Layout/SpaceBeforeBlockBraces:
|
|
EnforcedStyleForEmptyBraces: no_space
|
|
Enabled: true
|
|
|
|
Layout/SpaceBeforeFirstArg:
|
|
Enabled: true
|
|
|
|
Layout/SpaceInsideParens:
|
|
Enabled: true
|
|
|
|
Layout/TrailingEmptyLines:
|
|
Enabled: true
|
|
|
|
Layout/TrailingWhitespace:
|
|
Enabled: true
|
|
|
|
Lint/Debugger:
|
|
Enabled: true
|
|
|
|
Metrics/ParameterLists:
|
|
Max: 7
|
|
|
|
Naming/MethodName:
|
|
Enabled: true
|
|
EnforcedStyle: snake_case
|
|
Exclude:
|
|
- 'test/**/**'
|
|
|
|
Naming/VariableName:
|
|
Enabled: true
|
|
|
|
Performance:
|
|
Enabled: true
|
|
|
|
Performance/ChainArrayAllocation:
|
|
Enabled: true
|
|
|
|
Performance/CollectionLiteralInLoop:
|
|
Enabled: true
|
|
|
|
Performance/DeletePrefix:
|
|
Enabled: true
|
|
|
|
Performance/DeleteSuffix:
|
|
Enabled: true
|
|
|
|
Performance/MethodObjectAsBlock:
|
|
Enabled: true
|
|
|
|
Performance/RedundantMatch:
|
|
Enabled: true
|
|
|
|
Performance/RedundantBlockCall:
|
|
Enabled: true
|
|
|
|
Performance/StringIdentifierArgument:
|
|
Enabled: true
|
|
|
|
Performance/StringInclude:
|
|
Enabled: true
|
|
|
|
Performance/StringReplacement:
|
|
Enabled: true
|
|
|
|
Style/MethodDefParentheses:
|
|
Enabled: true
|
|
|
|
Style/SafeNavigation:
|
|
Enabled: true
|
|
|
|
Style/TernaryParentheses:
|
|
Enabled: true
|
|
|
|
Style/TrailingCommaInArguments:
|
|
Enabled: true
|
|
|
|
Style/WhileUntilModifier:
|
|
Enabled: true
|