Skip to content

Commit 8396b78

Browse files
leur-nordicthst-nordic
authored andcommitted
ci: autoscan: adding the sonarcloud config file
autoscan: adding .sonarcloud.properties to control file exclusions from the scan in sonarcloud Signed-off-by: Leif Harald Urlaub <[email protected]>
1 parent 5e689c9 commit 8396b78

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.sonarcloud.properties

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file is used by the SonarCloud GitHub App to configure the SonarCloud Automatic Analysis.
2+
# https://sonarcloud.io/project/overview?id=nrfconnect_sdk-nrf
3+
4+
# SonarCloud project details
5+
sonar.projectKey=nrfconnect_sdk-nrf
6+
sonar.organization=nrfconnect
7+
sonar.projectName=sdk-nrf
8+
sonar.projectVersion=1.0
9+
10+
# Path to sources
11+
sonar.sources = .
12+
sonar.exclusions=**/samples/matter/manufacturer_specific/src/default_zap/zap-generated/*
13+
sonar.inclusions=src,include,query_modules
14+
15+
# Path to tests
16+
sonar.tests = tests/
17+
# sonar.test.exclusions=
18+
# sonar.test.inclusions=
19+
20+
# Exclusions for copy-paste detection
21+
sonar.cpd.exclusions=**/tests/**/*, **/doc/_utils/redi*
22+
23+
# Python version (for python projects only)
24+
sonar.python.version=3.12
25+
26+
# Source encoding
27+
sonar.sourceEncoding=UTF-8
28+
29+
# Pull Request Options
30+
sonar.pullrequest.github.summary_comment=false
31+
32+
# Language.C
33+
sonar.cfamily.customTargetArch=arm
34+
sonar.cfamily.customTargetVendor=unknown
35+
sonar.cfamily.customTargetSystem=linux
36+
sonar.cfamily.customTargetEnv=gnueabi

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
# Root folder
1313
/.* @nrfconnect/ncs-code-owners
14+
/.sonarcloud.properties @nrfconnect/ncs-ci
1415
/CMakeLists.txt @nrfconnect/ncs-co-build-system
1516
/CODEOWNERS @nrfconnect/ncs-code-owners
1617
/Jenkinsfile @nrfconnect/ncs-ci

0 commit comments

Comments
 (0)