Skip to content

Commit 08cdecc

Browse files
nanotaboadaclaude
andcommitted
chore(sonar): add .sonarcloud.properties (#554)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 955e6f6 commit 08cdecc

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.sonarcloud.properties

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# =============================================================================
2+
# SonarCloud Automatic Analysis configuration
3+
# https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/automatic-analysis/
4+
# =============================================================================
5+
6+
sonar.projectKey=nanotaboada_python-samples-fastapi-restful
7+
sonar.organization=nanotaboada
8+
sonar.projectName=python-samples-fastapi-restful
9+
10+
sonar.sources=databases,models,rest,routes,schemas,services,tools,main.py
11+
sonar.tests=tests
12+
13+
# =============================================================================
14+
# Global exclusions
15+
# =============================================================================
16+
17+
sonar.exclusions=\
18+
rest/**,\
19+
scripts/**,\
20+
storage/**,\
21+
tests/**,\
22+
tools/**
23+
24+
# =============================================================================
25+
# Coverage exclusions
26+
# Mirrors codecov.yml ignore list — focus on routes/, services/
27+
# =============================================================================
28+
29+
sonar.coverage.exclusions=\
30+
databases/**,\
31+
models/**,\
32+
rest/**,\
33+
schemas/**,\
34+
tests/**,\
35+
tools/**,\
36+
main.py

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ This project uses famous football coaches as release codenames, following an A-Z
4444

4545
### Added
4646

47+
- `.sonarcloud.properties`: SonarCloud Automatic Analysis configuration —
48+
sources, tests, coverage exclusions aligned with `codecov.yml` (#554)
4749
- CD workflow now verifies tag commit is reachable from `master` before
4850
proceeding with build and publish steps (#549)
4951

0 commit comments

Comments
 (0)