Skip to content

Commit

Permalink
tooling: add SonarCloud configuration file (#378)
Browse files Browse the repository at this point in the history
To get more control on sources and Python versions
  • Loading branch information
Guts authored Dec 29, 2023
2 parents 1d885bb + 5ec33c7 commit e81ebf8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
sonar.projectKey=Guts_qgis-deployment-cli

# Because Community Edition doesn't support multiple branches,
# you should only analyze your main branch.
# You can restrict analysis to your main branch by adding the branch name to the only parameter.
# only=main

# Python versions
sonar.python.version=3.10, 3.11, 3.12

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=qgis_deployment_toolbelt

# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

# Python configuration
sonar.language=python3
sonar.python.file.suffixes=py
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.xunit.reportPath=junit/test-results.xml
sonar.coverage.exclusions=**__init__**,tests/**,*.py,docs/**
sonar.exclusions=*.xml,doc/**

0 comments on commit e81ebf8

Please sign in to comment.