-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonar-project.properties
65 lines (54 loc) · 2.05 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
# 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.tests= \
source/lambda/account_registration_provider/__tests__, \
source/lambda/utils/__tests__, \
source/lambda/register_spoke_lambda/__tests__, \
source/lambda/uuid_generator/__tests__, \
source/workspaces_app/workspaces_app/__tests__,
# Within the directories defined by sonar.tests, subset of files that will be considered as tests
sonar.test.inclusions= \
**/test*.py, \
**/conftest.py
# LambdaLayers modules are excluded from lambda folders, where they must be copied for testing
# These files are tested in LambdaLayers
sonar.exclusions= \
**/test/**, \
**/tests/**, \
deployment/**.js, \
deployment/build/**, \
**/requests/**, \
**/chardet/**, \
**/urllib3/**, \
**/idna/**, \
**/certifi/**, \
**/coverage/**, \
**/coverage-reports/**
sonar.javascript.exclusions= \
source/bin/**, \
source/lib/**
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/test/coverage-reports/*.coverage.xml
# 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/temp/source/coverage/lcov.info