sonar.projectKey=TREK
sonar.projectName=TREK
sonar.sourceEncoding=UTF-8

# Sources
sonar.sources=client/src,server/src
sonar.exclusions=**/node_modules/**,**/dist/**,**/build/**

# Tests
sonar.tests=server/tests,client/tests,client/src
sonar.test.inclusions=server/tests/**/*.ts,client/**/*.test.ts,client/**/*.test.tsx

# Coverage — path relative to repo root
sonar.javascript.lcov.reportPaths=server/coverage/lcov.info,client/coverage/lcov.info

# Exclude test files from source analysis and exclude infrastructure/bootstrap files
sonar.exclusions=**/node_modules/**,**/dist/**,**/build/**,**/*.test.ts,**/*.test.tsx
sonar.coverage.exclusions=\
   server/src/index.ts,\
   server/src/db/database.ts,\
   server/src/db/seeds.ts,\
   server/src/demo/**,\
   server/src/config.ts,\
   server/src/db/migrations.ts,\
   server/src/scheduler.ts,\
   client/src/main.tsx,\
   client/src/types.ts,\
   client/src/components/Memories/MemoriesPanel.tsx
