Skip to content

Commit

Permalink
Upgrade .codeclimate.yml to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Oct 29, 2018
1 parent 29907f5 commit 18be25f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 52 deletions.
81 changes: 31 additions & 50 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,41 @@
---
exclude_paths:
- ".git/"
- "**.gif"
- "**.html"
- "**.json"
- "**.png"
- "**.svg"
- "**.xml"
- "**.yaml"
- "**.yml"
- "config/dictionary_strings.rb"
- "config/model_attributes.rb"
- "config/yaml_strings.rb"
- "db/schema.rb"
- "db/schema.yml"
- "db/fixtures/**/*.yml"
- "db/migrate/20130923182042_collapsed_initial_migration.rb"
- "locale/"
- "spec/"
- "test/"
- "tmp/"
- "vendor/assets/"
engines:
brakeman:
# very slow :sad_panda:
version: '2'
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"
checks:
argument-count:
enabled: false
bundler-audit:
# requires Gemfile.lock
complex-logic:
enabled: false
csslint:
file-lines:
enabled: false
duplication:
enabled: true
method-complexity:
config:
concurrency: 1
languages:
- ruby
eslint:
threshold: 11
method-count:
enabled: false
fixme:
# let's enable later
method-lines:
enabled: false
markdownlint:
# let's enable later
nested-control-flow:
enabled: false
return-statements:
enabled: false
plugins:
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"
config: ".rubocop_cc.yml"
exclude_patterns:
- config/dictionary_strings.rb
- config/model_attributes.rb
- config/yaml_strings.rb
- db/schema.rb
- lib/generators/providers/templates/
- node_modules/
- spec/
- test/
- tmp/
- vendor/
1 change: 0 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
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
1 change: 0 additions & 1 deletion .rubocop_cc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
inherit_from:
# this is downloaded by .codeclimate.yml
- .rubocop_base.yml
- .rubocop_cc_base.yml
- .rubocop_local.yml

0 comments on commit 18be25f

Please sign in to comment.