123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- require:
- # https://docs.rubocop.org/rubocop-performance/
- - rubocop-performance
- AllCops:
- TargetRubyVersion: 3.1
- NewCops: enable
- Style/FrozenStringLiteralComment:
- EnforcedStyle: always_true
- Layout/EmptyLineAfterMagicComment:
- Enabled: false
- # Since I want to allow other Magic Comments after this.
- Style/GlobalVars:
- Enabled: false
- Style/RedundantReturn:
- Enabled: false
- Metrics/AbcSize:
- Max: 100
- Metrics/CyclomaticComplexity:
- Max: 20
- Metrics/PerceivedComplexity:
- Max: 20
- Metrics/MethodLength:
- Max: 60
- Metrics/ClassLength:
- Max: 400
- Metrics/BlockLength:
- Max: 100
- Metrics/BlockNesting:
- Max: 5
- Layout/LineLength:
- Max: 200
- Layout/ClassStructure:
- Enabled: true
- Layout/EndOfLine:
- EnforcedStyle: lf
- Layout/MultilineHashKeyLineBreaks:
- Enabled: true
- Security/CompoundHash:
- Enabled: true
- Security/IoMethods:
- Enabled: true
- # 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
|