Skip to content

Commit

Permalink
Adding rubocop sample config (publiclab#547)
Browse files Browse the repository at this point in the history
* Adding rubocop sample config

* Removing double_quotes enforcement

* Using same rubocop yaml as in Plots2

* Autofixing rubocop offenses

* Fixing conditions for CC

Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com>

* Adding Performance cop and fixing some offenses

* Fixing rubocop offenses and warnings

* Downgrading rubocop version since publiclab#547 (comment)
  • Loading branch information
alaxalves authored and chen-robert committed Dec 5, 2019
1 parent 4255557 commit 4b0d59d
Show file tree
Hide file tree
Showing 29 changed files with 1,709 additions and 298 deletions.
1 change: 1 addition & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2
plugins:
rubocop:
enabled: true
channel: rubocop-0-70
brakeman:
enabled: true
bundler-audit:
Expand Down
79 changes: 79 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -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

Layout/EndAlignment:
Enabled: false

Layout/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
Loading

0 comments on commit 4b0d59d

Please sign in to comment.