retrospring/.rubocop.yml

137 lines
2.3 KiB
YAML
Raw Normal View History

require:
2022-01-15 01:39:35 +01:00
- rubocop-rails
2015-07-21 04:14:16 +02:00
AllCops:
DisplayCopNames: true
CacheRootDirectory: '.git'
2015-07-21 04:14:16 +02:00
Exclude:
2022-01-15 01:39:35 +01:00
- 'config/**/*'
2015-07-21 04:14:16 +02:00
- 'vendor/**/*'
- 'db/schema.rb'
2022-01-15 01:39:35 +01:00
- 'db/seeds.rb'
- 'bin/**/*'
- 'node_modules/**/*'
- coverage/**/*
TargetRubyVersion: 3.1
NewCops: enable
2015-07-21 04:14:16 +02:00
2022-01-15 01:39:35 +01:00
Rails:
Enabled: true
Rails/InverseOf:
2015-07-21 04:14:16 +02:00
Enabled: false
### Lint
Lint/NestedMethodDefinition:
Exclude:
- api/sinatra/**/*
Lint/MissingSuper:
Exclude:
- app/components/**/*
### Metrics
2022-01-15 01:39:35 +01:00
Metrics/AbcSize:
Enabled: false
2022-01-15 01:39:35 +01:00
2020-04-19 21:47:19 +02:00
Layout/LineLength:
2015-07-21 04:14:16 +02:00
Enabled: false
Metrics/MethodLength:
Enabled: false
2015-07-21 04:14:16 +02:00
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
2023-10-18 23:25:16 +02:00
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/ModuleLength:
Enabled: false
### Style / Layout
#### Hash
Layout/HashAlignment:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
Style/HashTransformKeys:
2015-07-21 04:14:16 +02:00
Enabled: false
Style/HashTransformValues:
Enabled: false
Layout/MultilineOperationIndentation:
Description: Checks indentation of binary operations that span more than one line.
EnforcedStyle: indented
#### Rest
2015-07-21 04:14:16 +02:00
Style/Documentation:
Enabled: false
2022-01-15 01:39:35 +01:00
Style/DoubleNegation:
Enabled: false
Style/ExponentialNotation:
# https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
EnforcedStyle: engineering
Style/NumericLiterals:
Description: Add underscores to large numeric literals to improve their readability.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
Enabled: false
Style/PerlBackrefs:
Enabled: false
Style/RaiseArgs:
EnforcedStyle: compact
Style/RegexpLiteral:
Enabled: false
Style/SignalException:
EnforcedStyle: only_raise
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/OptionalBooleanParameter:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
2022-01-15 01:39:35 +01:00
Style/RescueStandardError:
Enabled: false
Style/Encoding:
2022-06-21 20:04:06 +02:00
Enabled: false
2022-12-08 08:20:45 +01:00
Style/EndlessMethod:
EnforcedStyle: allow_always
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: consistent_comma
Style/RedundantSelf:
Exclude:
- app/models/**/*