2021-09-26 15:07:00 -07:00
|
|
|
require:
|
|
|
|
|
- rubocop-rails
|
2021-09-27 21:15:57 -07:00
|
|
|
- rubocop-rspec
|
2021-09-26 15:07:00 -07:00
|
|
|
|
2023-12-30 16:30:37 -08:00
|
|
|
# Omakase Ruby styling for Rails
|
|
|
|
|
inherit_gem:
|
|
|
|
|
rubocop-rails-omakase: rubocop.yml
|
|
|
|
|
|
2021-09-26 15:07:00 -07:00
|
|
|
AllCops:
|
2024-09-07 15:42:37 -07:00
|
|
|
TargetRubyVersion: 3.3.5
|
2023-09-30 09:57:54 -07:00
|
|
|
TargetRailsVersion: 7.1.0
|
2021-09-26 15:07:00 -07:00
|
|
|
DisabledByDefault: true
|
|
|
|
|
Exclude:
|
|
|
|
|
- "bin/**/*"
|
|
|
|
|
- "vendor/**/*"
|
|
|
|
|
- "public/**/*"
|
|
|
|
|
- "node_modules/**/*"
|
|
|
|
|
|
|
|
|
|
Bundler:
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
Layout/EmptyLineAfterMagicComment:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Layout/TrailingEmptyLines:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Layout/TrailingWhitespace:
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
Lint/BinaryOperatorWithIdenticalOperands:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/CircularArgumentReference:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/Debugger:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/DeprecatedClassMethods:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/DuplicateMethods:
|
|
|
|
|
Enabled: false
|
|
|
|
|
Lint/DuplicateHashKey:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/EachWithObjectArgument:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/ElseLayout:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/EmptyEnsure:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/EmptyInterpolation:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/EnsureReturn:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/FloatOutOfRange:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/FormatParameterMismatch:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/LiteralAsCondition:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/LiteralInInterpolation:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/Loop:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/NextWithoutAccumulator:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/RandOne:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/RequireParentheses:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/RescueException:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/RedundantStringCoercion:
|
|
|
|
|
Enabled: false
|
|
|
|
|
Lint/RedundantCopDisableDirective:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/RedundantSplatExpansion:
|
|
|
|
|
Enabled: false
|
|
|
|
|
Lint/UnreachableCode:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/UselessSetterCall:
|
|
|
|
|
Enabled: true
|
|
|
|
|
Lint/Void:
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
Naming/ClassAndModuleCamelCase:
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
|
|
# Security/Eval:
|
|
|
|
|
# Enabled: false
|
|
|
|
|
# Security/JSONLoad:
|
|
|
|
|
# Enabled: true
|
|
|
|
|
# Security/MarshalLoad:
|
|
|
|
|
# Enabled: true
|
|
|
|
|
# Security/Open:
|
|
|
|
|
# Enabled: false
|
|
|
|
|
# Security/YAMLLoad:
|
|
|
|
|
# Enabled: false
|
|
|
|
|
|
|
|
|
|
# Style/EndBlock:
|
|
|
|
|
# Enabled: true
|
|
|
|
|
# Style/HashSyntax:
|
|
|
|
|
# Enabled: true
|
|
|
|
|
# Style/StringLiterals:
|
|
|
|
|
# Enabled: true
|
|
|
|
|
# EnforcedStyle: "double_quotes"
|
|
|
|
|
# Exclude:
|
|
|
|
|
# - "config/**/*.rb"
|
|
|
|
|
# - Rakefile
|
|
|
|
|
# Style/CaseEquality:
|
|
|
|
|
# Enabled: true
|
|
|
|
|
# Style/ClassMethods:
|
|
|
|
|
# Enabled: true
|
|
|
|
|
# Style/ClassVars:
|
|
|
|
|
# Enabled: true
|
|
|
|
|
# Style/CollectionMethods:
|
|
|
|
|
# Enabled: true
|
|
|
|
|
# PreferredMethods:
|
|
|
|
|
# collect: "map"
|
|
|
|
|
# collect!: "map!"
|
|
|
|
|
# inject: "reduce"
|
|
|
|
|
# detect: "find"
|
|
|
|
|
# find_all: "select"
|