-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonar-project.properties
More file actions
24 lines (21 loc) · 1.41 KB
/
Copy pathsonar-project.properties
File metadata and controls
24 lines (21 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
sonar.projectKey=the-last-dance
sonar.projectName=The Last Dance
sonar.sources=src,styles,scripts
sonar.tests=src,scripts
sonar.test.inclusions=**/*.test.ts,**/*.test.tsx,**/__test__/**,**/__tests__/**
# Vendored third-party assets and generated content are not our code to analyze.
# lighthouse/assets holds Raphael/Treant (vendored libs); data/** is MDX content
# read at runtime via fs, invisible to the import graph.
# SDD-L10-T19: `migration/**` removed — that directory does not exist. `scripts` added to
# sonar.sources above, so scripts/trending/lib.js (98.70%, the best-covered file in the repo) is
# finally in scope instead of being invisible to the dashboard.
sonar.exclusions=lighthouse/assets/**,public/**,data/**,.next/**,storybook-static/**,**/*.stories.tsx,node_modules/**
# SDD-L10-T18: `src/pages/api/**` removed from the coverage exclusions.
#
# jest.config.js deliberately INCLUDES those routes in `collectCoverageFrom`, with a comment
# explaining that excluding them reported 84% while a third of the codebase went unmeasured. Sonar
# then discarded exactly that measurement, so the dashboard showed a number the project had already
# decided was misleading. The eight API routes are the site's entire server surface.
sonar.coverage.exclusions=**/*.test.ts,**/*.test.tsx,**/*.stories.tsx,**/__test__/**,e2e/**,lighthouse/**
sonar.javascript.lcov.reportPaths=public/coverage/lcov.info
sonar.sourceEncoding=UTF-8