Last active
November 3, 2019 15:39
-
-
Save beauraF/d803f9081f942d9510beb59ac5fd1ca2 to your computer and use it in GitHub Desktop.
Simple rubocop configuration for Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require: | |
- rubocop-rails | |
- rubocop-performance | |
AllCops: | |
Exclude: | |
- 'bin/**/*' | |
- 'db/schema.rb' | |
- 'node_modules/**/*' | |
- 'vendor/**/*' | |
Layout/AlignArguments: | |
Enabled: true | |
EnforcedStyle: with_fixed_indentation | |
Metrics/BlockLength: | |
Enabled: true | |
Exclude: | |
- 'config/initializers/devise.rb' | |
Metrics/LineLength: | |
Enabled: true | |
Max: 120 | |
Metrics/MethodLength: | |
Enabled: true | |
Exclude: | |
- 'db/migrate/*' | |
SkipsModelValidations: | |
Enabled: false | |
Style/ClassAndModuleChildren: | |
Enabled: true | |
EnforcedStyle: compact | |
Exclude: | |
- 'config/application.rb' | |
Style/Documentation: | |
Enabled: false | |
Style/TrailingCommaInHashLiteral: | |
Enabled: true | |
EnforcedStyleForMultiline: comma |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment