forked from aws-solutions/instance-scheduler-on-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonar-project.properties
68 lines (56 loc) · 1.99 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Note: Currently testing and supported with code coverage sonarqube
# collection for python lambda (python pytest, python unittest) and javascript jest
# and CDK TypeScript
# Uncomment to enable debugging by default
#sonar.verbose=true
#sonar.log.level=DEBUG
# Disable if needed
#sonar.scm.disabled=true
#
# Refer to https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/
# for details on sources and exclusions. Note also .gitignore
#
sonar.sources= \
source
sonar.exclusions= \
**/test/**, \
**/tests/**, \
**/e2e-tests/**, \
**/jest.config.ts, \
bin/**, \
source/app/certifi/**/*, \
source/app/charset_normalizer/**/*, \
source/app/idna/**/*, \
source/app/pytz/**/*, \
source/app/urllib3/**/*, \
source/app/requests/**/*, \
source/app/chardet/**/*, \
source/app/build/lib/**/*, \
source/app/version.py, \
source/app/update-build-number.py, \
deployment/**, \
coverage/**
sonar.tests= \
source/app/tests, \
source/cli/tests, \
source/infrastructure/instance-scheduler/tests, \
source/infrastructure/pipeline/e2e-tests
# Code coverage Specific Properties
# sonar.coverage.exclusions=\
# source/bin/**
sonar.sourceEncoding=UTF-8
## Python Specific Properties*
# coverage
# https://docs.sonarqube.org/pages/viewpage.action?pageId=4784149
# Comma-separated list of ant pattern describing paths to coverage reports, relative to projects
# root. Leave unset to use the default ("coverage-reports/*coverage-*.xml").
sonar.python.coverage.reportPaths= \
deployment/coverage-reports/cli-coverage.xml, \
deployment/coverage-reports/lambda-coverage.xml
sonar.python.version=3.9, 3.10, 3.11
# 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= \
deployment/coverage-reports/cdk-coverage/lcov.info