2022-01-15 14:31:20 -08:00
|
|
|
require:
|
2022-01-14 16:39:35 -08:00
|
|
|
- rubocop-rails
|
2015-07-20 19:14:16 -07:00
|
|
|
AllCops:
|
2022-01-15 14:31:20 -08:00
|
|
|
DisplayCopNames: true
|
|
|
|
CacheRootDirectory: '.git'
|
2015-07-20 19:14:16 -07:00
|
|
|
Exclude:
|
2022-01-14 16:39:35 -08:00
|
|
|
- 'config/**/*'
|
2015-07-20 19:14:16 -07:00
|
|
|
- 'vendor/**/*'
|
|
|
|
- 'db/schema.rb'
|
2022-01-14 16:39:35 -08:00
|
|
|
- 'db/seeds.rb'
|
|
|
|
- 'bin/**/*'
|
|
|
|
- 'node_modules/**/*'
|
2022-01-15 14:31:20 -08:00
|
|
|
- coverage/**/*
|
2022-07-23 03:07:07 -07:00
|
|
|
TargetRubyVersion: 3.1
|
2022-01-15 14:31:20 -08:00
|
|
|
NewCops: enable
|
2015-07-20 19:14:16 -07:00
|
|
|
|
2022-01-14 16:39:35 -08:00
|
|
|
Rails:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Rails/InverseOf:
|
2015-07-20 19:14:16 -07:00
|
|
|
Enabled: false
|
|
|
|
|
2022-01-15 14:31:20 -08:00
|
|
|
|
|
|
|
### Lint
|
|
|
|
|
|
|
|
Lint/NestedMethodDefinition:
|
|
|
|
Exclude:
|
|
|
|
- api/sinatra/**/*
|
|
|
|
|
|
|
|
|
|
|
|
### Metrics
|
|
|
|
|
2022-01-14 16:39:35 -08:00
|
|
|
Metrics/AbcSize:
|
2023-10-15 01:09:49 -07:00
|
|
|
Enabled: false
|
2022-01-14 16:39:35 -08:00
|
|
|
|
2020-04-19 12:47:19 -07:00
|
|
|
Layout/LineLength:
|
2015-07-20 19:14:16 -07:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/MethodLength:
|
2023-10-15 01:09:49 -07:00
|
|
|
Enabled: false
|
2015-07-20 19:14:16 -07:00
|
|
|
|
2022-01-15 14:31:20 -08:00
|
|
|
Metrics/BlockLength:
|
2023-10-15 01:09:49 -07:00
|
|
|
Enabled: false
|
2022-01-15 14:31:20 -08:00
|
|
|
|
|
|
|
Metrics/ClassLength:
|
2023-10-15 01:09:49 -07:00
|
|
|
Enabled: false
|
2022-01-15 14:31:20 -08:00
|
|
|
|
|
|
|
Metrics/CyclomaticComplexity:
|
2023-10-18 14:25:16 -07:00
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
Enabled: false
|
2022-01-15 14:31:20 -08:00
|
|
|
|
|
|
|
Metrics/ModuleLength:
|
2023-10-15 01:09:49 -07:00
|
|
|
Enabled: false
|
2022-01-15 14:31:20 -08:00
|
|
|
|
|
|
|
|
|
|
|
### Style / Layout
|
|
|
|
|
|
|
|
#### Hash
|
|
|
|
Layout/HashAlignment:
|
|
|
|
EnforcedColonStyle: table
|
|
|
|
EnforcedHashRocketStyle: table
|
|
|
|
|
|
|
|
Style/HashSyntax:
|
|
|
|
EnforcedStyle: ruby19_no_mixed_keys
|
|
|
|
|
|
|
|
Style/HashTransformKeys:
|
2015-07-20 19:14:16 -07:00
|
|
|
Enabled: false
|
|
|
|
|
2022-01-15 14:31:20 -08:00
|
|
|
Style/HashTransformValues:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Layout/MultilineOperationIndentation:
|
|
|
|
Description: Checks indentation of binary operations that span more than one line.
|
|
|
|
EnforcedStyle: indented
|
|
|
|
|
|
|
|
#### Rest
|
2015-07-20 19:14:16 -07:00
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
2022-01-14 16:39:35 -08:00
|
|
|
|
2022-01-15 14:31:20 -08: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-14 16:39:35 -08:00
|
|
|
Style/RescueStandardError:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/Encoding:
|
2022-06-21 11:04:06 -07:00
|
|
|
Enabled: false
|
2022-12-07 23:20:45 -08:00
|
|
|
|
|
|
|
Style/EndlessMethod:
|
|
|
|
EnforcedStyle: allow_always
|
2023-02-03 22:25:10 -08:00
|
|
|
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
|
|
EnforcedStyleForMultiline: consistent_comma
|
2023-03-26 01:31:49 -07:00
|
|
|
|
|
|
|
Style/TrailingCommaInArguments:
|
|
|
|
EnforcedStyleForMultiline: consistent_comma
|
2023-10-15 01:34:19 -07:00
|
|
|
|
|
|
|
Style/RedundantSelf:
|
|
|
|
Exclude:
|
|
|
|
- app/models/**/*
|