-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add sonar-project.properties and update link to test badge
- Loading branch information
Showing
2 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Required metadata | ||
sonar.projectKey=pbrod_nvector | ||
sonar.organization=pbrod-github | ||
sonar.projectName=Python :: Nvector | ||
sonar.projectVersion=1.0 | ||
|
||
# Comma-separated paths to directories with sources (required) | ||
sonar.sources=src/nvector | ||
|
||
# Language | ||
sonar.language=py | ||
|
||
# Encoding of the source files | ||
sonar.sourceEncoding=UTF-8 | ||
|
||
sonar.links.homepage=https://github.com/pbrod/nvector | ||
sonar.links.ci=https://github.com/pbrod/nvector/actions/workflows/python-package.yml | ||
sonar.links.scm=https://github.com/pbrod/nvector | ||
sonar.links.issue=https://github.com/pbrod/nvector/issues | ||
|
||
# sonar.tests=nvector/tests | ||
sonar.login=67bcbf1aefb992993fdd45b78fb4977a05be39b9 | ||
sonar.host.url=https://sonarcloud.io | ||
|
||
sonar.python.pylint=/usr/local/bin/pylint | ||
sonar.python.pylint_config=.pylintrc | ||
sonar.python.pylint.reportPaths=pylint-report.txt | ||
|
||
|
||
# Unit tests | ||
sonar.python.xunit.reportPath=test-reports/*.xml | ||
sonar.python.coverage.reportPaths=coverage-reports/*.xml | ||
|
||
# Integration tests | ||
sonar.python.coverage.itReportPaths=it-coverage.xml | ||
|
||
|
||
# Turn off these rules | ||
sonar.issue.ignore.multicriteria=e1,e2 | ||
# python:s100: "Method names should comply with a naming convention" gives many false positives when overriding | ||
# TestCase methods (such as setUp and tearDown) in test files. | ||
sonar.issue.ignore.multicriteria.e1.ruleKey=python:S100 | ||
sonar.issue.ignore.multicriteria.e1.resourceKey=nvector/tests/test*.py | ||
sonar.issue.ignore.multicriteria.e2.ruleKey=python:S100 | ||
sonar.issue.ignore.multicriteria.e2.resourceKey=nvector/tests/integrationtests/**/test*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters