Skip to content

Commit

Permalink
Upgrade to Code Climate config v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmaroli committed Dec 10, 2018
1 parent 92be0c3 commit 775153d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 32 deletions.
57 changes: 38 additions & 19 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,53 @@
engines:
version: "2"
checks:
argument-count:
enabled: true
config:
threshold: 5
file-lines:
enabled: true
config:
threshold: 300
method-complexity:
enabled: true
config:
threshold: 15
method-count:
enabled: true
config:
threshold: 50
method-lines:
enabled: true
config:
threshold: 30
plugins:
fixme:
enabled: false
rubocop:
enabled: true
channel: rubocop-0-54
channel: rubocop-0-60

exclude_paths:
exclude_patterns:
- "*.*"
- ".*"

- Gemfile
- LICENSE
- Rakefile

- benchmark/**/*
- features/**/*
- script/**/*
- exe/**/*
- docs/**/*
- rake/**/*
- spec/**/*
- test/**/*
- vendor/**/*
- benchmark/
- docs/
- exe/
- features/
- rake/
- rubocop/
- script/
- spec/
- test/
- vendor/

- lib/blank_template/**/*
- lib/site_template/**/*
- lib/theme_template/**/*
- lib/blank_template/
- lib/site_template/
- lib/theme_template/
- lib/jekyll/mime.types
- lib/jekyll/commands/serve/livereload_assets/livereload.js

ratings:
paths:
- lib/**/*.rb
20 changes: 8 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ branches:
- /^.*-stable/
- /.*backport.*/

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

notifications:
slack:
secure: "\
Expand All @@ -41,18 +49,6 @@ notifications:
O1AanCUbJSEyJTju347xCBGzESU=\
"

addons:
code_climate:
repo_token:
secure: "\
mAuvDu+nrzB8dOaLqsublDGt423mGRyZYM3vsrXh4Tf1sT+L1PxsRzU4gLmcV27HtX2Oq9\
DA4vsRURfABU0fIhwYkQuZqEcA3d8TL36BZcGEshG6MQ2AmnYsmFiTcxqV5bmlElHEqQuT\
5SUFXLafgZPBnL0qDwujQcHukID41sE=\
"
# regular test configuration
after_success:
- bundle exec codeclimate-test-reporter

before_install:
- gem update --system
- gem install bundler
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ end
#

group :test do
gem "codeclimate-test-reporter", "~> 1.0.5"
gem "cucumber", "~> 3.0"
gem "httpclient"
gem "jekyll_test_plugin"
Expand Down

0 comments on commit 775153d

Please sign in to comment.