Skip to content

Instantly share code, notes, and snippets.

@workgena
Created April 3, 2019 12:17
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 workgena/6764028d36826559124811af98dd983e to your computer and use it in GitHub Desktop.
Save workgena/6764028d36826559124811af98dd983e to your computer and use it in GitHub Desktop.
AllCops:
TargetRubyVersion: 2.5
Exclude:
- 'bin/*'
- 'config/**/*'
- 'db/**/*'
- 'script/*'
- 'config.ru'
- 'Rakefile'
Metrics/LineLength:
Max: 120
Exclude:
- 'test/**/*'
Metrics/ClassLength:
Max: 130
Exclude:
- 'test/**/*'
Metrics/MethodLength:
Max: 18
Exclude:
- 'test/**/*'
Metrics/AbcSize:
Max: 30
Exclude:
- 'test/**/*'
Metrics/BlockLength:
Exclude:
- 'test/**/*'
Rails:
Enabled: true
Rails/SkipsModelValidations:
Enabled: false
Rails/LexicallyScopedActionFilter:
Enabled: false
Rails/InverseOf:
Enabled: false
Style/FrozenStringLiteralComment:
Exclude:
- 'Gemfile'
- 'app/views/**/*'
Style/Documentation:
Enabled: false
Style/LambdaCall:
EnforcedStyle: braces
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Style/Lambda:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/GuardClause:
Enabled: false
Naming/MemoizedInstanceVariableName:
Enabled: false
### test 'something' ==> it 'momething'
require:
- ./lib/rubocop/cop/style/spec_style_test_case.rb
Style/SpecStyleTestCase:
Enabled: true
Include:
- 'test/**/*'
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment