Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding rubocop sample config #547

Merged
merged 11 commits into from Jun 1, 2019
79 changes: 79 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,79 @@
# Start with Spotifys style guide as a base then customize from there
inherit_from:
- .rubocop_shopify_styleguide.yml
- .rubocop_todo.yml

# Apply rule to all cops
AllCops:
Include:
- '*/**/*.rb'
- '/Rakefile'
- '/config.ru'
Exclude:
- 'vendor/*'
- 'spec/**/*'
- 'bin/*'
- 'doc/*'
- 'log/*'
- 'db/**/*'
- 'Gemfile'
- 'Rakefile'
- 'config/**/*'
- 'script/**/*'
- 'lib/**/*'
- 'test/**/*'
- 'public/**/*'
- 'Dangerfile'
- 'app/views/**/*'
TargetRubyVersion: '2.4'

Layout/MultilineMethodCallIndentation:
Enabled: false

Style/RegexpLiteral:
Enabled: false

Style/IfInsideElse:
Enabled: false

Style/DateTime:
Enabled: false

Style/CaseEquality:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Lint/ParenthesesAsGroupedExpression:
Enabled: false

Lint/EndAlignment:
Enabled: false

Lint/DefEndAlignment:
Enabled: false

Lint/SafeNavigationChain:
Enabled: false

Lint/AssignmentInCondition:
Enabled: false

Naming/AccessorMethodName:
Enabled: false

Metrics/ClassLength:
Enabled: false

Metrics/ParameterLists:
Enabled: false

Style/StringLiterals:
Enabled: false

Metrics/LineLength:
Max: 423

Style/Documentation:
Enabled: false