Last active
July 28, 2020 18:24
-
-
Save smapira/d07bd6464241cc559bef1548895b9af0 to your computer and use it in GitHub Desktop.
rubocop.yml for new rails project
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
AllCops: | |
Exclude: | |
- 'vendor/**/*' | |
- 'db/seeds.rb' | |
- 'db/seeds/**/*' | |
- 'db/schema.rb' | |
- 'db/migrate/**/*' | |
- 'node_modules/**/*' | |
- 'config/initializers/**/*' | |
- 'bin/**/*' | |
- !ruby/regexp /old_and_unused\.rb$/ | |
TargetRubyVersion: 2.7 | |
TargetRailsVersion: 6.0 | |
AsciiComments: | |
Enabled: false | |
Style/Documentation: | |
Enabled: false | |
Layout/LineLength: | |
AutoCorrect: true | |
Max: 100 | |
IgnoredPatterns: ['\A#'] # Ignore comment line. | |
Metrics/BlockLength: | |
AutoCorrect: true | |
Max: 100 | |
Metrics/MethodLength: | |
AutoCorrect: true | |
Max: 20 | |
Metrics/ModuleLength: | |
Max: 180 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment