Skip to content

Commit

Permalink
Add Rubocop and CodeClimate configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Jan 5, 2017
1 parent c30adca commit 8487afc
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
exclude_paths:
- ".git/"
- "**.xml"
- "**.yaml"
- "**.yml"
- "spec/"
engines:
brakeman:
# very slow :sad_panda:
enabled: false
bundler-audit:
# requires Gemfile.lock
enabled: false
csslint:
enabled: false
duplication:
enabled: true
config:
languages:
- ruby
- javascript
eslint:
enabled: false
channel: "eslint-3"
fixme:
# let's enable later
enabled: false
markdownlint:
# let's enable later
enabled: false
rubocop:
enabled: true
config: '.rubocop_cc.yml'
prepare:
fetch:
- url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml"
path: ".rubocop_base.yml"
- url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml"
path: ".rubocop_cc_base.yml"
ratings:
paths:
- Gemfile.lock
- "**.rake"
- "**.rb"
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
inherit_from:
- https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
# put all local rubocop config into .rubocop_local.yml as it will be loaded by .rubocop_cc.yml as well
- .rubocop_local.yml
5 changes: 5 additions & 0 deletions .rubocop_cc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
inherit_from:
# this is downloaded by .codeclimate.yml
- .rubocop_base.yml
- .rubocop_cc_base.yml
- .rubocop_local.yml
3 changes: 3 additions & 0 deletions .rubocop_local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GlobalVars:
AllowedVariables:
- $evm

0 comments on commit 8487afc

Please sign in to comment.