Skip to content

Commit

Permalink
add sonar project properties
Browse files Browse the repository at this point in the history
Signed-off-by: Martijn Govers <[email protected]>
  • Loading branch information
mgovers committed Aug 20, 2024
1 parent 729d087 commit 8ed5d18
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0

sonar.projectKey=PowerGridModel_power-grid-model-io-native
sonar.organization=powergridmodel

# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=power-grid-model-io-native
sonar.projectVersion=1.0

# include C++ and Python source file
# since the C++ part is header only, also include the C++ unit test .cpp file
sonar.sources=src,tests/c_api_tests,power_grid_model_io_native_c
sonar.tests=tests/unit
sonar.sourceEncoding=UTF-8


# exclude C++ unit test .cpp file (with doctest.h)
sonar.issue.ignore.allfile=a1
sonar.issue.ignore.allfile.a1.fileRegexp='.*#include.*doctest\.h[>"].*'
sonar.coverage.exclusions="tests/**/*"
sonar.cpd.exclusions="tests/**/*"
sonar.cfamily.threads=1
sonar.coverageReportPaths=cpp_coverage.xml

# python
sonar.python.version=3
sonar.python.coverage.reportPaths=python_coverage.xml

0 comments on commit 8ed5d18

Please sign in to comment.