Skip to content

Commit

Permalink
Add code-climate config file (#1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimiC authored and robertohuertasm committed Jun 17, 2018
1 parent a60581b commit 24cc09a
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 68 deletions.
9 changes: 8 additions & 1 deletion .appveyor.yml
Expand Up @@ -32,10 +32,17 @@ install:
cache:
# - node_modules
- '%LOCALAPPDATA%\Yarn'
before_test:
# install coverage reporters
- npm i codeclimate-test-reporter --no-save
- npm i codecov --no-save
# run postinstall again to ensure that 'vscode.d.ts' is installed
- npm run postinstall
test_script:
# run build script
- npm run build
after_test:
# send coverage report
- ps: .\node_modules\.bin\codecov --disable=gcov
- ps: If ($env:CODECLIMATE_REPO_TOKEN -ne $null) { gc .\coverage\lcov.info | & .\node_modules\.bin\codeclimate-test-reporter }
- ps: If ($env:CODECOV_TOKEN -ne $null) { .\node_modules\.bin\codecov --disable=gcov }
build: off
37 changes: 37 additions & 0 deletions .codeclimate.yml
@@ -0,0 +1,37 @@
version: "2"
checks:
file-lines:
enabled: false
method-complexity:
enabled: false
method-lines:
enabled: false
similar-code:
enabled: false
plugins:
markdownlint:
enabled: true
checks:
MD013:
enabled: false
MD036:
enabled: false
nodesecurity:
enabled: true
tslint:
enabled: true
exclude_patterns:
- "!src/**/*.ts"
- "!test/**/*.ts"
- "test/support"
- "docker/"
- "images/"
- "icons/"
- "locale/"
- "submodules/"
- "*.json"
- "*.yml"
- "*.lock"
- ".*"
- "wallaby.js"
- "**/*.d.ts"
8 changes: 7 additions & 1 deletion .travis.yml
Expand Up @@ -18,8 +18,14 @@ cache: yarn
before_install:
- curl --compressed -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
before_script:
- npm i codeclimate-test-reporter --no-save
- npm i codecov --no-save
- npm run postinstall
script: npm run build
after_success: codecov --disable=gcov
after_success:
- if [[ $CODECLIMATE_REPO_TOKEN ]] ; then codeclimate-test-reporter < ./coverage/lcov.info ; fi
- codecov --disable=gcov

jobs:
include:
Expand Down
30 changes: 10 additions & 20 deletions .vscodeignore
@@ -1,7 +1,5 @@
.github/**
.vscode/**
.vscode-test/**
.nyc_output/**

.*/**
coverage/**
docker/**
examples/**
Expand All @@ -11,22 +9,14 @@ src/**
submodules/**
test/**
out/test/**
out/src/example/**
**/*.map
*.vsix
*.lcov
.appveyor.yml
.bithoundrc
.editorconfig
.gitignore
.gitmodules
.gitattributes
.travis.yml
crowdin.yml
package-lock.json
package.nls.template.json
tsconfig.json
tslint.json
npm-debug.*
*.lock
*.log
*.vsix
*.yml
.*
*lock.json
*.template.json
ts*.json
wallaby.js
yarn.lock
7 changes: 2 additions & 5 deletions README.md
Expand Up @@ -11,14 +11,11 @@
[![DevDependencies Status](https://david-dm.org/vscode-icons/vscode-icons/dev-status.svg)](https://david-dm.org/vscode-icons/vscode-icons?type=dev)
[![Greenkeeper badge](https://badges.greenkeeper.io/vscode-icons/vscode-icons.svg)](https://greenkeeper.io/)

[![Maintainability](https://api.codeclimate.com/v1/badges/4f02368ebeb7be1490bb/maintainability)](https://codeclimate.com/github/vscode-icons/vscode-icons/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/4f02368ebeb7be1490bb/test_coverage)](https://codeclimate.com/github/vscode-icons/vscode-icons/test_coverage)
[![codecov](https://codecov.io/gh/vscode-icons/vscode-icons/branch/master/graph/badge.svg)](https://codecov.io/gh/vscode-icons/vscode-icons)
[![Known Vulnerabilities](https://snyk.io/test/github/vscode-icons/vscode-icons/badge.svg)](https://snyk.io/test/github/vscode-icons/vscode-icons)

[![bitHound Overall Score](https://www.bithound.io/github/vscode-icons/vscode-icons/badges/score.svg)](https://www.bithound.io/github/vscode-icons/vscode-icons)
[![bitHound Dependencies](https://www.bithound.io/github/vscode-icons/vscode-icons/badges/dependencies.svg)](https://www.bithound.io/github/vscode-icons/vscode-icons/master/dependencies/npm)
[![bitHound Dev Dependencies](https://www.bithound.io/github/vscode-icons/vscode-icons/badges/devDependencies.svg)](https://www.bithound.io/github/vscode-icons/vscode-icons/master/dependencies/npm)
[![bitHound Code](https://www.bithound.io/github/vscode-icons/vscode-icons/badges/code.svg)](https://www.bithound.io/github/vscode-icons/vscode-icons)

[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/vscode-icons/vscode-icons.svg)](https://isitmaintained.com/project/vscode-icons/vscode-icons "Average time to resolve an issue")
[![Percentage of issues still open](https://isitmaintained.com/badge/open/vscode-icons/vscode-icons.svg)](https://isitmaintained.com/project/vscode-icons/vscode-icons "Percentage of issues still open")

Expand Down
23 changes: 0 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Expand Up @@ -251,7 +251,6 @@
"@types/semver": "^5.5.0",
"@types/sinon": "^4.3.3",
"chai": "^4.1.2",
"codecov": "^3.0.2",
"mocha": "^5.2.0",
"mockery": "^2.1.0",
"nyc": "^11.8.0",
Expand Down
18 changes: 1 addition & 17 deletions yarn.lock
Expand Up @@ -113,10 +113,6 @@ argparse@^1.0.7:
dependencies:
sprintf-js "~1.0.2"

argv@0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab"

arr-diff@^1.0.1:
version "1.1.0"
resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-1.1.0.tgz#687c32758163588fef7de7b36fabe495eb1a399a"
Expand Down Expand Up @@ -504,14 +500,6 @@ code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"

codecov@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.0.2.tgz#aea43843a5cd2fb6b7e488b2eff25d367ab70b12"
dependencies:
argv "0.0.2"
request "^2.81.0"
urlgrey "0.4.4"

collection-visit@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"
Expand Down Expand Up @@ -2356,7 +2344,7 @@ replace-ext@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb"

request@^2.79.0, request@^2.81.0, request@^2.83.0:
request@^2.79.0, request@^2.83.0:
version "2.87.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.87.0.tgz#32f00235cd08d482b4d0d68db93a829c0ed5756e"
dependencies:
Expand Down Expand Up @@ -2914,10 +2902,6 @@ url-parse@^1.1.9:
querystringify "^2.0.0"
requires-port "^1.0.0"

urlgrey@0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f"

use@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/use/-/use-3.1.0.tgz#14716bf03fdfefd03040aef58d8b4b85f3a7c544"
Expand Down

0 comments on commit 24cc09a

Please sign in to comment.