Skip to content

Instantly share code, notes, and snippets.

@kovalevsky
Created March 22, 2017 15:01
Show Gist options
  • Save kovalevsky/f1db005aa59f1cb46262118ef4c13347 to your computer and use it in GitHub Desktop.
Save kovalevsky/f1db005aa59f1cb46262118ef4c13347 to your computer and use it in GitHub Desktop.
HttpLab common rubocop config
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'db/schema.rb'
- 'vendor/**/*'
- 'tmp/**/*'
- 'bin/*'
- 'docs/**/*'
Metrics/LineLength:
Max: 120
Exclude:
- 'config/initializers/**/*.rb'
- 'config/environments/*.rb'
Metrics/MethodLength:
Max: 20
Metrics/BlockLength:
CountComments: false
Max: 10
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'
- 'app/admin/**/*.rb'
- 'config/initializers/*.rb'
- 'config/environments//*.rb'
- 'config/routes.rb'
- 'db/migrate/*.rb'
Metrics/AbcSize:
Max: 20
Style/Documentation:
Enabled: false
Style/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented
Style/MultilineOperationIndentation:
Enabled: true
EnforcedStyle: indented
Style/MultilineHashBraceLayout:
Enabled: true
EnforcedStyle: symmetrical
Style/MultilineArrayBraceLayout:
Enabled: true
EnforcedStyle: symmetrical
Style/NumericLiterals:
Enabled: false
ClassAndModuleChildren:
Enabled: false
Style/EmptyLinesAroundClassBody:
Enabled: true
EnforcedStyle: empty_lines
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment