File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,6 +127,31 @@ Tests use **Testcontainers** to spin up ephemeral Docker containers for external
127127
128128> ** Prerequisite for tests** : Docker must be installed and running.
129129
130+ ---
131+
132+ ## 🔎 Code Quality (SonarQube)
133+
134+ A GitHub Actions workflow is configured in:
135+
136+ ``` bash
137+ .github/workflows/sonar.yaml
138+ ```
139+
140+ ### Workflow triggers
141+
142+ - ` push ` on all branches
143+ - ` pull_request `
144+
145+ ### What it runs
146+
147+ - Java 25 setup (Temurin)
148+ - Maven build + tests + SonarQube analysis:
149+
150+ ``` bash
151+ mvn clean verify sonar:sonar
152+ ```
153+
154+
130155---
131156
132157## 📁 Project structure
@@ -156,7 +181,7 @@ This project consumes the public **Random User Generator** API:
156181
157182## ✅ Todo
158183
159- - [ ] [ Add Sonarqube in the project] ( https://github.com/XPEHO/spring_boot_java_random_user/issues/2 )
184+ - [x ] [ Add Sonarqube in the project] ( https://github.com/XPEHO/spring_boot_java_random_user/issues/2 )
160185- [ ] [ Add PostgreSQL database with docker] ( https://github.com/XPEHO/spring_boot_java_random_user/issues/6 )
161186- [ ] [ Add this endpoint get /user/random] ( https://github.com/XPEHO/spring_boot_java_random_user/issues/5 )
162187- [ ] [ Add this endpoint get /user/{id}] ( https://github.com/XPEHO/spring_boot_java_random_user/issues/8 )
Original file line number Diff line number Diff line change 2828 </scm >
2929 <properties >
3030 <java .version>25</java .version>
31+ <sonar .coverage.exclusions>**/*Application.java</sonar .coverage.exclusions>
3132 </properties >
3233 <dependencies >
3334 <dependency >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments