# SonarQube analysis config for the website repo. # Consumed by the scanner in .gitea/workflows/sonarqube.yml on push to main. # The project key must match the one created in SonarQube (dashboard URL # ?id=runic-gateway-website). sonar.projectKey=runic-gateway-website sonar.projectName=runic gateway website # Analysed application code. The three npm workspaces (server / client / bot). sonar.sources=server/src,client/src,bot/src # Test code is analysed separately from sources so coverage/metrics attribute # correctly. Only the server has a test suite today. sonar.tests=server/test sonar.test.inclusions=server/test/**/*.test.js # Coverage. The sonarqube.yml workflow runs the server suite with Node's built-in # test-coverage and writes an LCOV report here BEFORE the scan runs; without it # the dashboard shows 0% (the scanner never executes tests itself). The SF: paths # in the report are repo-root-relative (server/src/...) so the scanner resolves # them against the project base dir. sonar.javascript.lcov.reportPaths=server/coverage/lcov.info # Never analyse dependencies, build output, generated specs, or runtime dirs. sonar.exclusions=**/node_modules/**,client/dist/**,client/public/**,server/swagger/**,server/logs/**,server/uploads/**,server/coverage/**,**/*.min.js sonar.sourceEncoding=UTF-8