Skip to content

Commit

Permalink
sonar integration
Browse files Browse the repository at this point in the history
  • Loading branch information
tbence94 committed Jan 18, 2023
1 parent 0a3605c commit e6a6230
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ yarn-debug.log*
yarn-error.log*

.nyc_output

test/coverage/
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ addons:
apt:
packages:
- rabbitmq-server
sonarcloud:
organization: techteamer

language: node_js

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"lint": "eslint .",
"unit": "mocha --exit",
"test": "eslint . && nyc mocha --exit && nyc report --reporter=text-lcov | coveralls"
"test": "eslint . && nyc mocha --temp-directory=./test/coverage/ --exit && nyc report --reporter=text-lcov --report-dir=./test/coverage/ --reporter=lcovonly | coveralls"
},
"dependencies": {
"amqplib": "^0.10.3",
Expand Down
8 changes: 8 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sonar.host.url=https://sonarcloud.io
sonar.projectKey=techteamer_mq
sonar.organization=techteamer

sonar.sources=.
sonar.exclusions=node_modules/**,.nyc_output/**
sonar.cpd.exclusions=
sonar.javascript.lcov.reportPaths=test/coverage/lcov.info

0 comments on commit e6a6230

Please sign in to comment.