mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
chore: update sonar props
This commit is contained in:
+40
-14
@@ -2,27 +2,53 @@ sonar.projectKey=TREK
|
|||||||
sonar.projectName=TREK
|
sonar.projectName=TREK
|
||||||
sonar.sourceEncoding=UTF-8
|
sonar.sourceEncoding=UTF-8
|
||||||
|
|
||||||
# Sources
|
# Sources — one entry per workspace package (plugin-sdk is standalone but lives in-repo)
|
||||||
sonar.sources=client/src,server/src
|
sonar.sources=client/src,server/src,shared/src,nest-mcp/src,plugin-sdk/src
|
||||||
sonar.exclusions=**/node_modules/**,**/dist/**,**/build/**
|
|
||||||
|
|
||||||
# Tests
|
# Tests — dedicated test dirs per package, plus co-located client tests in src
|
||||||
sonar.tests=server/tests,client/tests,client/src
|
sonar.tests=server/tests,client/tests,client/e2e,client/src,nest-mcp/tests,plugin-sdk/test
|
||||||
sonar.test.inclusions=server/tests/**/*.ts,client/**/*.test.ts,client/**/*.test.tsx
|
sonar.test.inclusions=\
|
||||||
|
server/tests/**/*.test.ts,\
|
||||||
|
client/tests/**/*.test.ts,\
|
||||||
|
client/tests/**/*.test.tsx,\
|
||||||
|
client/e2e/**/*.spec.ts,\
|
||||||
|
client/src/**/*.test.ts,\
|
||||||
|
client/src/**/*.test.tsx,\
|
||||||
|
nest-mcp/tests/**/*.test.ts,\
|
||||||
|
plugin-sdk/test/**/*.test.ts
|
||||||
|
|
||||||
# Coverage — path relative to repo root
|
# Keep generated output and test files out of source analysis
|
||||||
sonar.javascript.lcov.reportPaths=server/coverage/lcov.info,client/coverage/lcov.info
|
sonar.exclusions=\
|
||||||
|
**/node_modules/**,\
|
||||||
|
**/dist/**,\
|
||||||
|
**/build/**,\
|
||||||
|
**/coverage/**,\
|
||||||
|
client/dev-dist/**,\
|
||||||
|
**/*.test.ts,\
|
||||||
|
**/*.test.tsx,\
|
||||||
|
**/*.d.ts
|
||||||
|
|
||||||
# Exclude test files from source analysis and exclude infrastructure/bootstrap files
|
# Coverage — lcov paths relative to repo root.
|
||||||
sonar.exclusions=**/node_modules/**,**/dist/**,**/build/**,**/*.test.ts,**/*.test.tsx
|
# shared/ has no tests yet and plugin-sdk doesn't emit lcov; see coverage exclusions.
|
||||||
|
sonar.javascript.lcov.reportPaths=\
|
||||||
|
server/coverage/lcov.info,\
|
||||||
|
client/coverage/lcov.info,\
|
||||||
|
nest-mcp/coverage/lcov.info
|
||||||
|
|
||||||
|
# Infrastructure/bootstrap files and packages without coverage instrumentation
|
||||||
sonar.coverage.exclusions=\
|
sonar.coverage.exclusions=\
|
||||||
server/src/index.ts,\
|
server/src/index.ts,\
|
||||||
|
server/src/config.ts,\
|
||||||
|
server/src/scheduler.ts,\
|
||||||
server/src/db/database.ts,\
|
server/src/db/database.ts,\
|
||||||
|
server/src/db/migrations.ts,\
|
||||||
server/src/db/seeds.ts,\
|
server/src/db/seeds.ts,\
|
||||||
server/src/demo/**,\
|
server/src/demo/**,\
|
||||||
server/src/config.ts,\
|
server/src/nest/plugins/runtime/plugin-host-entry.ts,\
|
||||||
server/src/db/migrations.ts,\
|
|
||||||
server/src/scheduler.ts,\
|
|
||||||
client/src/main.tsx,\
|
client/src/main.tsx,\
|
||||||
client/src/types.ts,\
|
client/src/types.ts,\
|
||||||
client/src/components/Memories/MemoriesPanel.tsx
|
shared/src/**,\
|
||||||
|
plugin-sdk/src/**
|
||||||
|
|
||||||
|
# Locale files are large near-identical literal objects — keep them out of duplication metrics
|
||||||
|
sonar.cpd.exclusions=shared/src/i18n/**
|
||||||
|
|||||||
Reference in New Issue
Block a user