-
Notifications
You must be signed in to change notification settings - Fork 29
/
sonar-project.properties
38 lines (27 loc) · 1.51 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
# unique project identifier (required)
sonar.projectKey=cars:cars
# project metadata
sonar.projectName=Cars
# path to source directories (required)
sonar.sources=cars/
# path to test source directories (optional)
sonar.tests=tests/
# exclude files or directories
#sonar.exclusions=src/
#sonar.test.exclusions=test.xml
sonar.exclusions=cars/orchestrator/cluster/dask_config/**, cars/orchestrator/cluster/dask_config/**/**, cars/applications/dsm_filling/bulldozer_config/**
# path to pylint analysis report (optional)
# DEPRECATED not supported anymore in CNES sonarqube instance.
#sonar.python.pylint.reportPath=pylint-report.txt
# path to pytest report (optional)
sonar.python.xunit.reportPath=pytest-report.xml
# path to coverage report (optional)
sonar.python.coverage.reportPaths=coverage.xml
# deactivate duplicated lines in sonarqube in some chosen files:
sonar.cpd.exclusions=cars/pipelines/**/*_pipeline.py,cars/applications/point_cloud_outliers_removing/outlier_removing_tools.py, cars/applications/grid_generation/grid_correction.py, cars/orchestrator/log_wrapper.py
# Deactivate complexity rule for pipelines
sonar.issue.ignore.multicriteria=complexity1,complexity2
sonar.issue.ignore.multicriteria.complexity1.ruleKey=python:FunctionComplexity
sonar.issue.ignore.multicriteria.complexity1.resourceKey=cars/pipelines/**/*_pipeline.py
sonar.issue.ignore.multicriteria.complexity2.ruleKey=python:FunctionComplexity
sonar.issue.ignore.multicriteria.complexity2.resourceKey=cars/applications/rasterization/simple_gaussian.py