mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
![MSP-Greg](/assets/img/avatar_default.png)
* Puma 6 - required_ruby_version to Ruby 2.4 * Actions - remove Ruby 2.2 & 2.3, add macOS 12 * Update Rubocop, disable Cops as needed to pass
96 lines
1.7 KiB
YAML
96 lines
1.7 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
|
|
|
|
Performance/RegexpMatch:
|
|
Enabled: false
|
|
|
|
Performance/UnfreezeString:
|
|
Enabled: false
|
|
|
|
Style/RedundantReturn:
|
|
Enabled: false
|
|
|
|
# ————————————————————————————————————————— enabled cops
|
|
|
|
Layout/SpaceAfterColon:
|
|
Enabled: true
|
|
|
|
Layout/SpaceAroundKeyword:
|
|
Enabled: true
|
|
|
|
Layout/SpaceBeforeBlockBraces:
|
|
EnforcedStyleForEmptyBraces: no_space
|
|
Enabled: true
|
|
|
|
Layout/SpaceBeforeFirstArg:
|
|
Enabled: true
|
|
|
|
Layout/SpaceInsideParens:
|
|
Enabled: true
|
|
|
|
Layout/IndentationStyle:
|
|
Enabled: true
|
|
|
|
Layout/TrailingEmptyLines:
|
|
Enabled: true
|
|
|
|
Layout/TrailingWhitespace:
|
|
Enabled: true
|
|
|
|
Lint/Debugger:
|
|
Enabled: true
|
|
|
|
Naming/MethodName:
|
|
Enabled: true
|
|
EnforcedStyle: snake_case
|
|
Exclude:
|
|
- 'test/**/**'
|
|
|
|
Naming/VariableName:
|
|
Enabled: true
|
|
|
|
Style/MethodDefParentheses:
|
|
Enabled: true
|
|
|
|
Style/TrailingCommaInArguments:
|
|
Enabled: true
|
|
|
|
Performance:
|
|
Enabled: true
|
|
|
|
Metrics/ParameterLists:
|
|
Max: 7
|
|
|
|
Performance/RedundantMatch:
|
|
Enabled: true
|
|
|
|
Performance/RedundantBlockCall:
|
|
Enabled: true
|
|
|
|
Performance/StringReplacement:
|
|
Enabled: true
|
|
|
|
Layout/AccessModifierIndentation:
|
|
EnforcedStyle: indent
|
|
|
|
Style/WhileUntilModifier:
|
|
Enabled: true
|
|
|
|
Style/TernaryParentheses:
|
|
Enabled: true
|
|
|