This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
sonar-project.properties
69 lines (62 loc) · 2.74 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
69
# NOTE:
# - Do not include sonar.projectVersion or sonar.projectName as these are set automatically by the pipeline
# - Customize sonar.sources, sonar.exclusions, sonar.coverage.exclusions, sonar.tests and sonar
# unit test coverage reports based on your project
# Refer to https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/
# for details on sources and exclusions. Note also .gitignore which is used by sonarqube
#
sonar.sources=core, fwoa-core, fwoa-tools, fwoa-utilities, deployment, solutions
# Focusing sonarqube analysis on non test code first and reducing noise from analysis of test code. Projects
# can customize the exclusions to include analyzing of test code if desired
sonar.exclusions=\
**/test/**, \
**/tests/**, \
**/test*, \
**/node_modules/**, \
deployment/*-assets/**, \
deployment/open-source/**, \
**/temp/**, \
**/lib/**/*.js, \
**/lib/**/*.map, \
**/lib/**/*d.ts, \
**/lib/**/*.json,git, \
common/scripts/*, \
deployment/cdk-solution-helper/**, \
fwoa-utilities/javaHapiValidatorLambda/**, \
solutions/**/replay-ddbToES.js, \
solutions/**/sort-key-migration.js, \
solutions/**/integration-tests/**, \
fwoa-tools/src/export-script.py
# Code coverage Specific Properties
sonar.coverage.exclusions=\
**/jest.config.js, \
solutions/**/scripts/**, \
solutions/**/bulkExport/**
## 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").
#
# Example: Uncomment next section for python code
#sonar.python.coverage.reportPaths=source/tests/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
#
# Example: Uncomment next section for javascript/typescript code
# source/test/coverage-reports/jest/example-function-js/lcov.info
sonar.javascript.lcov.reportPaths= \
fwoa-core/persistence-ddb/temp/coverage/lcov.info, \
core/eslint-custom/temp/coverage/lcov.info, \
fwoa-core/authz-rbac/temp/coverage/lcov.info, \
fwoa-core/authz-smart/temp/coverage/lcov.info, \
fwoa-core/interface/temp/coverage/lcov.info, \
fwoa-core/routing/temp/coverage/lcov-report, \
fwoa-core/search-es/temp/coverage/lcov.info, \
fwoa-tools/temp/coverage/lcov.info, \
solutions/deployment/temp/coverage/lcov.info, \
solutions/smart-deployment/temp/coverage/lcov.info
# Encoding of the source files
sonar.sourceEncoding=UTF-8