forked from aws-solutions/performance-dashboard-on-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonar-project.properties
40 lines (34 loc) · 1.18 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
30
31
32
33
34
35
36
37
38
39
40
# Note: Currently testing and supported with code coverage sonarqube
# collection for python lambda (python pytest, python unittest) and javascript jest.
# Refer to https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/
# for details on sources and exclusions. Note also .gitignore
sonar.sources=backend,frontend
sonar.exclusions= \
**/*.spec.ts, \
**/__tests__/**, \
**/__mocks__/**, \
**/node_modules/**, \
**/coverage/**, \
**/build/** \
# Code coverage Specific Properties
sonar.coverage.exclusions=\
**/jestconfig.json, \
**/serviceWorker.ts, \
**/setupTests.ts, \
**/amplify-config.ts, \
**/index.ts, \
**/*.tsx, \
**/api/*.ts \
sonar.sourceEncoding=UTF-8
# Sensor SonarJS Coverage [javascript] was not allowing globbing
# for sonar.javascript.lcov.reportPaths such as this
# source/test/coverage-reports/jest/*/lcov.info
# so we have to provide an explicit list of reportPaths
sonar.javascript.lcov.reportPaths= \
backend/coverage/lcov.info, \
frontend/coverage/lcov.info, \
# Uncomment to enable debugging by default
#sonar.verbose=true
#sonar.log.level=DEBUG
# Disable if needed
#sonar.scm.disabled=true