forked from bcgov/wps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonar-project.properties
29 lines (25 loc) · 1.3 KB
/
sonar-project.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# https://docs.sonarqube.org/latest/analysis/analysis-parameters/
sonar.organization=bcgov-sonarcloud
sonar.projectKey=bcgov_wps
sonar.host.url=https://sonarcloud.io
sonar.python.file.suffixes=py
sonar.python.coverage.reportPaths=api/coverage-reports/*coverage-*.xml
# Path is relative to the sonar-project.properties file. Defaults to .
sonar.sources=.
sonar.exclusions=**/Makefile, **/*.Dockerfile, api/app/data/**
sonar.test.exclusions=*.feature
sonar.tests.inclusions=**/*.test.tsx
# When sonar-scanner runs as a github action, there's an issue with how it mounts.
sonar.javascript.lcov.reportPaths=web/coverage/lcov.info
# reasons for ignoring things for code coverage:
# api/scripts/** - this code does not run as part of the application.
# api/alembic/** - database migrations shouldn't have unit tests.
# api/app/tests/** - test code doesn't have tests.
# api/app/db/crud.py - unit tests don't talk to a database.
# web - we don't need coverage reports on stories or tests
sonar.coverage.exclusions=\
api/scripts/**, api/alembic/**, api/app/tests/**, api/app/db/crud/**,\
web/public/**, web/cypress/**, web/src/stories/**, web/**/*.test.ts,\
web/src/serviceWorker.ts, web/src/app/store.ts, web/src/utils/storybook.ts
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8