123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- require:
- # https://docs.rubocop.org/rubocop-performance/
- - rubocop-performance
- AllCops:
- TargetRubyVersion: 3.1
- NewCops: enable
- Layout/EmptyLineAfterMagicComment:
- Enabled: false
- Metrics/BlockLength:
- Max: 40
- # Enable cops, which are not enabled by default.
- ## These cops are "Pending" by default.
- Performance/CollectionLiteralInLoop:
- Enabled: true
- Performance/BigDecimalWithNumericArgument:
- Enabled: true
- Performance/BlockGivenWithExplicitBlock:
- Enabled: true
- Performance/ConstantRegexp:
- Enabled: true
- Performance/MethodObjectAsBlock:
- Enabled: true
- Performance/RedundantSortBlock:
- Enabled: true
- Performance/RedundantStringChars:
- Enabled: true
- Performance/ReverseFirst:
- Enabled: true
- Performance/SortReverse:
- Enabled: true
- Performance/Squeeze:
- Enabled: true
- Performance/StringIdentifierArgument:
- Enabled: true
- Performance/StringInclude:
- Enabled: true
- Performance/Sum:
- Enabled: true
- ## These cops are "Disabled" by default.
- Performance/CaseWhenSplat:
- Enabled: true
- Performance/ChainArrayAllocation:
- Enabled: true
- Performance/IoReadlines:
- Enabled: true
- Performance/OpenStruct:
- Enabled: true
- Performance/SelectMap:
- Enabled: true
- # Disable cops, which are enabled by default.
- ## These cops are "Enabled" by default.
- Performance/Casecmp:
- Enabled: false
- Performance/RangeInclude:
- Enabled: false
|