Skip to content

Instantly share code, notes, and snippets.

@dominickm
Created January 2, 2024 02:58
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 dominickm/6cd0305ae5e9198308de3949430b2dbb to your computer and use it in GitHub Desktop.
Save dominickm/6cd0305ae5e9198308de3949430b2dbb to your computer and use it in GitHub Desktop.
My Rubocop because I am a grumpy old man lol
require: rubocop-rails
Rails/UniqueValidationWithoutIndex:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/SaveBang:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/DateTime:
Enabled: false
Style/Documentation:
Enabled: false
Style/DocumentationMethod:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/MissingElse:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/Copyright:
Enabled: false
Style/RedundantSelf:
Enabled: false
Style/StringConcatenation:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/WordArray:
Enabled: false
Metrics/MethodLength:
Max: 50
Metrics/AbcSize:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 14
Metrics/PerceivedComplexity:
Enabled: false
Lint/NumberConversion:
Enabled: false
Lint/ConstantResolution:
Enabled: false
AllCops:
TargetRubyVersion: 3.2.1
EnabledByDefault: true
Exclude:
- 'db/**/*'
- 'Gemfile'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment