bettermail/portal/.rubocop.yml
2022-11-12 02:27:46 +01:00

150 lines
2.9 KiB
YAML

inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
AllCops:
NewCops: enable
Exclude:
- 'tmp/**/*'
- 'vendor/**/*'
- config/**/*
- db/**/*
- bin/**/*
- node_modules/**/*
- yarn-cache/**/*
- Rakefile
- app/javascript
- 'client/**/*'
Style/OptionalBooleanParameter:
Enabled: false
Style/Documentation:
Enabled: false
Lint/SuppressedException:
Enabled: false
Layout/EmptyLinesAroundBlockBody:
Enabled: false
Layout/EmptyLinesAroundModuleBody:
Enabled: false
Layout/EmptyLinesAroundClassBody:
Enabled: false
Layout/EmptyLinesAroundMethodBody:
Enabled: false
Metrics/AbcSize:
Enabled: false
Max: 20
Metrics/ModuleLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/ClassLength:
Enabled: false
Style/StructInheritance:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Lint/RequireParentheses:
Enabled: false
Metrics/MethodLength:
Enabled: false
Max: 30
Lint/ShadowedException:
Enabled: false
Layout/LineLength:
Max: 200
IgnoredPatterns: [
'# index_*'
]
Style/RaiseArgs:
Enabled:
Style/ClassAndModuleChildren:
Enabled: false
Style/EmptyMethod:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/BlockDelimiters:
Exclude:
- 'spec/**/*'
Style/IfUnlessModifier:
Enabled: false
Style/RescueStandardError:
Enabled: false
Layout/SpaceAroundMethodCallOperator:
Enabled: false
Lint/RaiseException:
Enabled: false
Lint/StructNewOverride:
Enabled: false
Style/ExponentialNotation:
Enabled: false
Style/HashEachMethods:
Enabled: false
Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
Enabled: false
Performance/StringInclude:
Enabled: false
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: false
Lint/DeprecatedOpenSSLConstant:
Enabled: false
Lint/DuplicateElsifCondition:
Enabled: false
Lint/MixedRegexpCaptureTypes:
Enabled: false
Style/AccessorGrouping:
Enabled: false
Style/ArrayCoercion:
Enabled: false
Style/BisectedAttrAccessor:
Enabled: false
Style/CaseLikeIf:
Enabled: false
Style/HashAsLastArrayItem:
Enabled: false
Style/HashLikeCase:
Enabled: false
Style/RedundantAssignment:
Enabled: true
Style/RedundantFetchBlock:
Enabled: true
Style/RedundantFileExtensionInRequire:
Enabled: false
Style/RedundantRegexpCharacterClass:
Enabled: false
Style/RedundantRegexpEscape:
Enabled: false
Style/SlicingWithRange:
Enabled: true
Performance/AncestorsInclude:
Enabled: false
Performance/BigDecimalWithNumericArgument:
Enabled: false
Performance/RedundantSortBlock:
Enabled: false
Performance/RedundantStringChars:
Enabled: true
Performance/ReverseFirst:
Enabled: false
Performance/SortReverse:
Enabled: false
Performance/Squeeze:
Enabled: false