Skip to content

Instantly share code, notes, and snippets.

@saboyutaka
Created July 11, 2023 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saboyutaka/e4c4fb7f3f0ca1c11a4d3352114b4c18 to your computer and use it in GitHub Desktop.
Save saboyutaka/e4c4fb7f3f0ca1c11a4d3352114b4c18 to your computer and use it in GitHub Desktop.
.rubocop.yml
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.7
DisplayCopNames: true
NewCops: enable
Exclude:
- 'db/seeds/*'
- 'db/**/*'
- 'vendor/**/*'
- 'node_modules/**/*'
- 'bin/*'
Bundler/OrderedGems:
Exclude:
- 'Gemfile'
Layout/ClassStructure:
Enabled: true
Layout/DotPosition:
EnforcedStyle: trailing
Layout/ExtraSpacing:
Exclude:
- "db/migrate/*.rb"
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/LineLength:
Enabled: false
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*_spec.rb"
Lint/EmptyBlock:
Exclude:
- 'spec/**/*'
Lint/EmptyWhen:
Enabled: false
Lint/InheritException:
EnforcedStyle: standard_error
Lint/UnderscorePrefixedVariableName:
Enabled: false
Lint/UnusedMethodArgument:
Enabled: false
Lint/Void:
CheckForMethodsWithNoSideEffects: true
Naming/MethodParameterName:
Enabled: false
Naming/PredicateName:
Enabled: false
Security/YAMLLoad:
Enabled: false
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/AndOr:
EnforcedStyle: conditionals
Style/AsciiComments:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/EmptyCaseCondition:
Enabled: false
Style/EmptyElse:
EnforcedStyle: empty
Style/EmptyMethod:
EnforcedStyle: expanded
Style/FormatStringToken:
EnforcedStyle: template
Style/FrozenStringLiteralComment:
Enabled: false
Style/GuardClause:
MinBodyLength: 5
Style/HashSyntax:
Exclude:
- "**/*.rake"
- "Rakefile"
Style/IfInsideElse:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/NumericLiterals:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/OrAssignment:
Enabled: false
Style/PerlBackrefs:
AutoCorrect: false
Style/PreferredHashMethods:
EnforcedStyle: verbose
Style/RedundantReturn:
AllowMultipleReturnValues: true
Style/RescueStandardError:
EnforcedStyle: implicit
Style/SafeNavigation:
Enabled: false
Style/Semicolon:
Exclude:
- "spec/**/*_spec.rb"
Style/StringMethods:
Enabled: true
Style/SymbolArray:
Enabled: false
Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex
Style/WordArray:
Enabled: false
Style/ZeroLengthPredicate:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment