Skip to content

Instantly share code, notes, and snippets.

@Dania02525
Last active July 7, 2023 17:04
Show Gist options
  • Save Dania02525/cefaacd1eff89311613db8bb65765a63 to your computer and use it in GitHub Desktop.
Save Dania02525/cefaacd1eff89311613db8bb65765a63 to your computer and use it in GitHub Desktop.
permissive rubocop config for rails
AllCops:
Exclude:
- 'db/**/*'
- 'bin/**/*'
- 'Gemfile'
- 'spec/**/*'
- 'lib/**/*'
- 'node_modules/**/*'
- 'config/**/*'
- 'vendor/**/*'
- 'tmp/**/*'
- 'scripts/**/*'
TargetRubyVersion: 2.4
Style/Documentation:
Enabled: false
Style/StringLiterals:
Enabled: false
Layout/DotPosition:
EnforcedStyle: leading
Style/RescueStandardError:
EnforcedStyle: implicit
Style/NumericPredicate:
Enabled: false
Metrics/ClassLength:
Max: 100
Metrics/ModuleLength:
Max: 150
Layout/LineLength:
Max: 120
Metrics/AbcSize:
Max: 21
Metrics/MethodLength:
Max: 40
Metrics/BlockLength:
Max: 40
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/MultilineMethodCallIndentation:
EnforcedStyle: aligned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment