diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml deleted file mode 100644 index 5c49b0e..0000000 --- a/.github/workflows/sonar.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: Sonar QA - -on: - workflow_dispatch: - -jobs: - pr: - uses: onecx/ci-angular/.github/workflows/angular-sonar.yml@v1 - secrets: inherit \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties index ab47671..7a1afe2 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,7 +1,10 @@ # sonar.verbose=true -# sonar.host.url=http://localhost:9000 -# sonar.token= -# docker run -p 9000:9000 sonarqube:lts +# start locally: +# docker run -p 9000:9000 sonarqube:lts +# user/pwd: admin/admin +# npm run sonar +sonar.host.url=http://localhost:9000 +sonar.login= # sonar.organization=onecx sonar.projectKey=onecx-theme-ui @@ -12,8 +15,8 @@ sonar.testExecutionReportPaths=reports/sonarqube_report.xml sonar.sourceEncoding=UTF-8 sonar.sources=src/app sonar.working.directory=dist/sonar -sonar.coverage.exclusions=node_modules/**,src/**/*.module.ts,src/environments/*,src/assets/**/*,src/app/generated/**/*,src/test/* -sonar.exclusions=node_modules/**,src/**/*.html +sonar.coverage.exclusions=src/**/*.module.ts,src/environments/*,src/assets/**/*,src/app/generated/**/*,src/test/* +sonar.exclusions=src/**/*.html,src/app/generated/**/* sonar.cpd.exclusions=node_modules/**,src/**/*.html sonar.tests=src/app sonar.test.inclusions=src/app/**/*.spec.ts \ No newline at end of file