Skip to content

Instantly share code, notes, and snippets.

@wellavelino
Last active November 28, 2017 17:36
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 wellavelino/66235a2f33270b9377f4ac47bccc7a3c to your computer and use it in GitHub Desktop.
Save wellavelino/66235a2f33270b9377f4ac47bccc7a3c to your computer and use it in GitHub Desktop.
Configured Rubocop file to run on ruby test projects
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