This commit is contained in:
Jacek
2026-03-13 00:54:48 +01:00
parent c64c8ce12b
commit a606d603e2
5 changed files with 193 additions and 0 deletions

View File

@@ -10,6 +10,30 @@ php phpunit.phar
```
All tests must pass. If any test fails, stop here — do not proceed to commit. Report the failures and wait for instructions.
## Step 1b: SonarQube scan
Run the SonarQube scanner:
```bash
sonar-scanner
```
After the scan completes, query the SonarQube issues via MCP tool `mcp__sonarqube__issues` with `project_key: "shopPRO"` and `resolved: false`. Fetch all open issues (bugs, vulnerabilities, code smells).
Then open `docs/TODO.md` and append the found issues at the bottom under a new section:
```markdown
## SonarQube — {VERSION} ({DATE})
- [ ] [SEVERITY] FILENAME:LINE — description (rule)
- [ ] ...
```
Rules:
- Only add issues that are NOT already present in `docs/TODO.md`
- Group by type: first Bugs/Vulnerabilities, then Code Smells
- Skip INFO severity Code Smells — only include MINOR and above
- If there are no new issues, write: `## SonarQube — {VERSION} — brak nowych issues`
## Step 2: Determine version
Read the latest git tag to determine the current version number: