Skip to content

Commit

Permalink
fix: harmonize sonar config
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Jan 5, 2024
1 parent 6637d58 commit 82d6fd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
},
"scripts": {
"build": "ng build",
"clean": "npm cache clean --force",
"clean": "npm cache clean --force && npm run clean-angular",
"clean-angular": "ng cache clean",
"start": "ng serve --configuration=development --proxy-config=proxy.conf.js",
"prepare": "husky install",
"lint": "ng lint",
"eslint": "eslint --ext .js,.ts src",
"format": "ng lint --fix",
"browsers": "npx browserslist",
"sonar": "npx sonarqube-scanner -Dproject.settings=sonar-local-project.properties",
"test": "ng test",
"test:ci": "ng test --watch=false --browsers=ChromeHeadless --code-coverage",
"karma": "rm -rf reports && npm run test:ci",
"sonar": "npx sonarqube-scanner -Dproject.settings=sonar-local-project.properties",
"apigen-cleanup": "rm -rf $npm_package_config_openapiOutput",
"apigen-format": "npx prettier $npm_package_config_openapiYaml --write && npx prettier $npm_package_config_openapiOutput/**/* --write",
"apigen-generate": "openapi-generator-cli generate -i $npm_package_config_openapiYaml -g typescript-angular -c apigen.yaml -o $npm_package_config_openapiOutput --type-mappings=AnyType=object,set=Array",
Expand Down
8 changes: 3 additions & 5 deletions sonar-local-project.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# sonar.verbose=true
sonar.host.url=http://localhost:9000
#sonar.token=<local-created-token>
sonar.token=sqp_4f516f122209fad902530dc69bf59664457ab48e
# sonar.host.url=http://localhost:9000
# sonar.token=<local-created-token>
# remote
#sonar.host.url=https://sonarcloud.io
sonar.host.url=https://sonarcloud.io
sonar.organization=onecx
sonar.projectKey=onecx-theme-ui
sonar.projectName=onecx-theme-ui
sonar.javascript.coveragePlugin=lcov
sonar.javascript.lcov.reportPaths=reports/coverage/lcov.info
sonar.testExecutionReportPaths=reports/sonarqube_report.xml
#sonar.eslint.reportPaths=eslint_report
sonar.sourceEncoding=UTF-8
sonar.sources=src/app
sonar.working.directory=dist/sonar
Expand Down

0 comments on commit 82d6fd8

Please sign in to comment.