Skip to content

Commit

Permalink
Merge pull request #4 from AnasBoulmane/master
Browse files Browse the repository at this point in the history
refs #2 setup CodeClimate, Travis CI, Coveralls & Readme.md
  • Loading branch information
AnasBoulmane committed Oct 20, 2019
2 parents 83ae8d4 + f81cf69 commit 230eada
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 846 deletions.
64 changes: 64 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
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: 25
nested-control-flow:
enabled: true
config:
threshold: 4
return-statements:
enabled: true
config:
threshold: 4
similar-code:
enabled: true
config:
threshold: #language-specific defaults. overrides affect all languages.
identical-code:
enabled: true
config:
threshold: #language-specific defaults. overrides affect all languages.
plugins:
tslint:
enabled: true
config: tslint.json
duplication:
enabled: true
config:
languages:
- typescript
exclude_patterns:
- "sample/"
- "config/"
- "db/"
- "dist/"
- "features/"
- "**/node_modules/"
- "script/"
- "**/spec/"
- "**/test/"
- "**/tests/"
- "**/vendor/"
- "**/*.d.ts"
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
language: node_js
node_js:
# - stable
- 9
- stable
- 10
- 8
- 6
- 4
cache: yarn

env:
global:
- NODE_ENV=test

install:
- yarn install

script:
- yarn build
- yarn coveralls

after_success: yarn coverage
Loading

0 comments on commit 230eada

Please sign in to comment.