Skip to content

Commit

Permalink
Merge pull request #148 from geotribu/tooling/add-sonarcloud-config-a…
Browse files Browse the repository at this point in the history
…nd-badge

tooling: add SonarCloud config and badge
  • Loading branch information
Guts authored Jan 11, 2024
2 parents 610428f + c4bc28f commit 3015d7b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Guts/mkdocs-rss-plugin/master.svg)](https://results.pre-commit.ci/latest/github/Guts/mkdocs-rss-plugin/master)
[![codecov](https://codecov.io/gh/geotribu/qtribu/branch/main/graph/badge.svg?token=7O9PYKS4Q0)](https://codecov.io/gh/geotribu/qtribu)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=geotribu_qtribu&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=geotribu_qtribu)

[![Tester](https://github.com/geotribu/qtribu/actions/workflows/tester.yml/badge.svg)](https://github.com/geotribu/qtribu/actions/workflows/tester.yml)
[![Documentation Builder](https://github.com/geotribu/qtribu/actions/workflows/documentation.yml/badge.svg)](https://github.com/geotribu/qtribu/actions/workflows/documentation.yml)
Expand Down
25 changes: 25 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
sonar.projectKey=geotribu_qtribu

# 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.9, 3.10, 3.11, 3.12

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

# 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,docs/**, tests/**

0 comments on commit 3015d7b

Please sign in to comment.