SonarQube reported 0% coverage because the analysis workflow never ran the test suite — the scanner does static analysis only and was handed no coverage report, and sonar-project.properties defined no report path. Generate an LCOV report in sonarqube.yml before the scan using Node's built-in test coverage (run from the repo root so SF: paths are server/src/... and resolve against the project base dir), and point the scanner at it via sonar.javascript.lcov.reportPaths. Node's lcov coverage reporter needs Node >= 22, so the coverage job pins node 22. Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
583 B
Plaintext
43 lines
583 B
Plaintext
# dependencies
|
|
node_modules/
|
|
client/node_modules/
|
|
server/node_modules/
|
|
|
|
# build output
|
|
client/dist/
|
|
|
|
# test coverage (generated in CI for SonarQube)
|
|
server/coverage/
|
|
coverage/
|
|
|
|
# env / secrets
|
|
.env
|
|
*.env
|
|
!.env.example
|
|
|
|
# runtime data
|
|
server/uploads/
|
|
uploads/
|
|
server/logs/
|
|
logs/
|
|
|
|
# reference material (extracted from the provided archives)
|
|
_reference/
|
|
|
|
# logs / os
|
|
*.log
|
|
npm-debug.log*
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# editor / tooling local settings
|
|
.claude/settings.local.json
|
|
.vscode/
|
|
.idea/
|
|
|
|
# local planning docs (not part of the tracked codebase)
|
|
.plans/
|
|
|
|
# scratch / temp scripts
|
|
_*.ps1
|