-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests code coverage and code climate config v2 (#41)
* tests code coverage * code climate config v2 * function keyword removed * yarn.lock updated * node_js lts in travis.yml
- Loading branch information
1 parent
ab6b66b
commit e1afa61
Showing
10 changed files
with
1,531 additions
and
747 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,51 @@ | ||
--- | ||
engines: | ||
version: "2" | ||
checks: | ||
argument-count: | ||
enabled: true | ||
config: | ||
threshold: 4 | ||
complex-logic: | ||
enabled: true | ||
config: | ||
threshold: 4 | ||
file-lines: | ||
enabled: true | ||
config: | ||
threshold: 250 | ||
method-complexity: | ||
enabled: true | ||
config: | ||
threshold: 5 | ||
method-count: | ||
enabled: true | ||
config: | ||
threshold: 20 | ||
method-lines: | ||
enabled: true | ||
config: | ||
threshold: 30 | ||
nested-control-flow: | ||
enabled: true | ||
config: | ||
threshold: 4 | ||
return-statements: | ||
enabled: true | ||
config: | ||
threshold: 4 | ||
similar-code: | ||
enabled: true | ||
identical-code: | ||
enabled: true | ||
|
||
plugins: | ||
eslint: | ||
enabled: true | ||
channel: "eslint-4" | ||
checks: | ||
complexity: | ||
enabled: false | ||
config: | ||
sanitize_batch: false | ||
extensions: | ||
- .js | ||
- .html | ||
|
||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
javascript: | ||
mass_threshold: 50 | ||
|
||
- .js | ||
- .html | ||
fixme: | ||
enabled: true | ||
|
||
ratings: | ||
paths: | ||
- "**.js" | ||
- "**.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/bower_components-1.x/* | ||
/coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
language: node_js | ||
node_js: 6 | ||
node_js: "lts/*" | ||
dist: trusty | ||
sudo: required | ||
env: | ||
global: | ||
- CC_TEST_REPORTER_ID=9798015be3ef64095a2bacb1046d8c981f8bd35e40fda757c431366e786ef566 | ||
addons: | ||
firefox: latest | ||
apt: | ||
sources: | ||
- google-chrome | ||
- google-chrome | ||
packages: | ||
- google-chrome-stable | ||
- google-chrome-stable | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
- bower_components | ||
- bower_components-1.x | ||
- ".eslintcache" | ||
- "$HOME/.cache/bower" | ||
- node_modules | ||
- bower_components | ||
- bower_components-1.x | ||
- ".eslintcache" | ||
- "$HOME/.cache/bower" | ||
before_script: | ||
- yarn run lint | ||
- 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 | ||
- yarn run lint | ||
script: | ||
- xvfb-run yarn test | ||
after_script: | ||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT | ||
notifications: | ||
slack: | ||
secure: CDiBhqBBuAVuia0kDJNzNLIZ4tdN4ngEjZ+0RfEuY8Yusgllc0EHw/WcN+rNCg+tOMR2mOz0c0FDIbhariZV1yOW6zoJOXga3EpP7dkbyStog+oUIolHBhk3dFb90DpzjrNO2GhsPPcRpbvxY+0bK0u75bydWvnj7rxCWt73ZHHIZsoYjBZq7MV0doiSbY3hyHD/lNhB+fVU28lIV6NovGVJCp9GuYSB4P+HKQsdLmzhzYlYQZoDwW5ZLQraEDMJRu9YLIZfPRFF/G/qO5L0xrp18sqihPSa8Pqy6Yhz81aoyZxyI5/CVXcIUBlw+s2HfTOjzIYPuTOYlSaH47ua2QIQZ9+5reJ6guhCXGguj3QoDx+wXelOB4UI/Ghe8Txh73V429rwjPyH/dKkAIA/yyP1Y5zDxDyynUN8EAnmyLkySqwfffU4VVud3hxO2/QUbIwjKSFwuFz1zJCNUT3K0D5ESKDGXJeaSq7bdfh0cRTA4E9FX29gt6eq5g0aVwb9HwAMlY0xjVum8Tb9QFu37EEOq/8HDlHUg+yOx7IvZSRQK0VRSpQ+mOlwd0nfV42sMHpPS0HQ2FgQsc0485FmhzdG2Q0PQPybGn2DzQo8lv4KAg3se/TwQEwKQASm5vxAvhJasMceXfn/9EFrRZmNO2T6YZLCtO4wt63JAeo6CUQ= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.