Last active
November 28, 2017 17:36
-
-
Save wellavelino/66235a2f33270b9377f4ac47bccc7a3c to your computer and use it in GitHub Desktop.
Configured Rubocop file to run on ruby test projects
This file contains 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
Documentation: | |
Enabled: false | |
AllCops: | |
Include: | |
- '**/Rakefile' | |
Exclude: | |
- 'step_definitions/**' | |
- 'screenshots/**/*' | |
- '*.feature' | |
- 'reports/**' | |
TargetRubyVersion: 2.3.0 | |
#Lint checks are defined here | |
Lint: | |
Severity: error | |
Lint/AmbiguousBlockAssociation | |
Enabled: true | |
Lint/ConditionPosition | |
Enabled: true | |
Lint/ElseLayout | |
Enabled: true | |
Lint/HandleExceptions | |
Enabled: true | |
Lint/Loop | |
Enabled: true | |
#Style checks are defined here | |
Style/Encoding: | |
EnforcedStyle: when_needed | |
Enabled: true | |
Style/FrozenStringLiteralComment: | |
EnforcedStyle: alway | |
Style/EmptyLinesAroundBlockBody: | |
Enabled: true | |
Style/EmptyLinesAroundModuleBody: | |
Enabled: true | |
Style/AutoResourceCleanup: | |
Enabled: true | |
# Metrics like method length and complexity are defined here | |
Metrics/LineLength: | |
Max: 80 | |
Metrics/CyclomaticComplexity: | |
Enabled: true | |
Metrics/MethodLength: | |
Max: 10 | |
CountComments: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment