ignore some rules for tests
This commit is contained in:
@@ -7,11 +7,22 @@ sonar.projectName=tsun-gen3-proxy
|
||||
|
||||
|
||||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
||||
sonar.sources=app/src
|
||||
sonar.sources=app/src/
|
||||
|
||||
# Encoding of the source code. Default is default system encoding
|
||||
#sonar.sourceEncoding=UTF-8
|
||||
|
||||
sonar.python.version=3.12
|
||||
sonar.python.coverage.reportPaths=coverage.xml
|
||||
sonar.tests=system_tests,app/tests
|
||||
sonar.tests=system_tests/,app/tests/
|
||||
sonar.exclusions=**/.vscode/**/*
|
||||
|
||||
# Name your criteria
|
||||
sonar.issue.ignore.multicriteria=e1,e2
|
||||
|
||||
# python:S905 : Remove or refactor this statement; it has no side effects
|
||||
sonar.issue.ignore.multicriteria.e1.ruleKey=python:S905
|
||||
sonar.issue.ignore.multicriteria.e1.resourceKey=app/tests/*.py
|
||||
|
||||
sonar.issue.ignore.multicriteria.e2.ruleKey=python:S905
|
||||
sonar.issue.ignore.multicriteria.e2.resourceKey=systems_tests/*.py
|
||||
|
||||
Reference in New Issue
Block a user