Upgrade to Code Climate config v2
This commit is contained in:
parent
92be0c3fab
commit
775153df6a
|
@ -1,11 +1,33 @@
|
||||||
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:
|
fixme:
|
||||||
enabled: false
|
enabled: false
|
||||||
rubocop:
|
rubocop:
|
||||||
enabled: true
|
enabled: true
|
||||||
channel: rubocop-0-54
|
channel: rubocop-0-60
|
||||||
|
|
||||||
exclude_paths:
|
exclude_patterns:
|
||||||
- "*.*"
|
- "*.*"
|
||||||
- ".*"
|
- ".*"
|
||||||
|
|
||||||
|
@ -13,22 +35,19 @@ exclude_paths:
|
||||||
- LICENSE
|
- LICENSE
|
||||||
- Rakefile
|
- Rakefile
|
||||||
|
|
||||||
- benchmark/**/*
|
- benchmark/
|
||||||
- features/**/*
|
- docs/
|
||||||
- script/**/*
|
- exe/
|
||||||
- exe/**/*
|
- features/
|
||||||
- docs/**/*
|
- rake/
|
||||||
- rake/**/*
|
- rubocop/
|
||||||
- spec/**/*
|
- script/
|
||||||
- test/**/*
|
- spec/
|
||||||
- vendor/**/*
|
- test/
|
||||||
|
- vendor/
|
||||||
|
|
||||||
- lib/blank_template/**/*
|
- lib/blank_template/
|
||||||
- lib/site_template/**/*
|
- lib/site_template/
|
||||||
- lib/theme_template/**/*
|
- lib/theme_template/
|
||||||
- lib/jekyll/mime.types
|
- lib/jekyll/mime.types
|
||||||
- lib/jekyll/commands/serve/livereload_assets/livereload.js
|
- lib/jekyll/commands/serve/livereload_assets/livereload.js
|
||||||
|
|
||||||
ratings:
|
|
||||||
paths:
|
|
||||||
- lib/**/*.rb
|
|
||||||
|
|
20
.travis.yml
20
.travis.yml
|
@ -33,6 +33,14 @@ branches:
|
||||||
- /^.*-stable/
|
- /^.*-stable/
|
||||||
- /.*backport.*/
|
- /.*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:
|
notifications:
|
||||||
slack:
|
slack:
|
||||||
secure: "\
|
secure: "\
|
||||||
|
@ -41,18 +49,6 @@ notifications:
|
||||||
O1AanCUbJSEyJTju347xCBGzESU=\
|
O1AanCUbJSEyJTju347xCBGzESU=\
|
||||||
"
|
"
|
||||||
|
|
||||||
addons:
|
|
||||||
code_climate:
|
|
||||||
repo_token:
|
|
||||||
secure: "\
|
|
||||||
mAuvDu+nrzB8dOaLqsublDGt423mGRyZYM3vsrXh4Tf1sT+L1PxsRzU4gLmcV27HtX2Oq9\
|
|
||||||
DA4vsRURfABU0fIhwYkQuZqEcA3d8TL36BZcGEshG6MQ2AmnYsmFiTcxqV5bmlElHEqQuT\
|
|
||||||
5SUFXLafgZPBnL0qDwujQcHukID41sE=\
|
|
||||||
"
|
|
||||||
# regular test configuration
|
|
||||||
after_success:
|
|
||||||
- bundle exec codeclimate-test-reporter
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- gem update --system
|
- gem update --system
|
||||||
- gem install bundler
|
- gem install bundler
|
||||||
|
|
Loading…
Reference in New Issue