Skip to content

Instantly share code, notes, and snippets.

@lucashour
Created April 5, 2022 19:06
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 lucashour/67564c025a323f0ef57e352c47e457d9 to your computer and use it in GitHub Desktop.
Save lucashour/67564c025a323f0ef57e352c47e457d9 to your computer and use it in GitHub Desktop.
Rubocop configuration file
require: rubocop-rails
AllCops:
Exclude:
- 'db/migrate/*.rb'
- 'db/schema.rb'
- 'bin/*'
- 'config/**/*'
- 'node_modules/**/*'
- 'test/**/*'
- 'spec/**/*'
- 'vendor/**/*'
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Metrics/AbcSize:
Max: 30
Metrics/ClassLength:
Max: 150
Metrics/MethodLength:
Max: 20
Metrics/ParameterLists:
Max: 6
Style/AsciiComments:
Enabled: false
Style/Documentation:
Enabled: false
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment