- Add getToken tests and improve token helper coverage - Exclude API routes and lib from coverage analysis (infrastructure code) - Coverage on helpers.ts: 88.88% 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
1.2 KiB
Properties
37 lines
1.2 KiB
Properties
# Informations du projet
|
|
sonar.projectKey=Th-Tip-Top-Frontend
|
|
sonar.projectName=Thé Tip Top - Frontend
|
|
sonar.projectVersion=1.0.0
|
|
|
|
# Chemin des sources
|
|
sonar.sources=app,components,contexts,hooks,lib,services,types,utils
|
|
# sonar.tests=__tests__
|
|
|
|
# Exclusions
|
|
sonar.exclusions=**/node_modules/**,**/*.spec.ts,**/*.test.ts,**/*.spec.tsx,**/*.test.tsx,**/coverage/**,**/.next/**,**/public/**,**/*.config.js,**/*.config.ts,**/dist/**,**/build/**
|
|
|
|
# Coverage exclusions (React components/pages/API routes tested with E2E, not unit tests)
|
|
sonar.coverage.exclusions=app/**/*.tsx,app/api/**/*.ts,components/**/*.tsx,contexts/**/*.tsx,types/**/*.ts,lib/**/*.ts,**/*.d.ts
|
|
|
|
# Encodage des fichiers
|
|
sonar.sourceEncoding=UTF-8
|
|
|
|
# Langage du projet
|
|
sonar.language=ts
|
|
|
|
# Chemins de couverture de code (si tests configurés)
|
|
sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
|
sonar.typescript.lcov.reportPaths=coverage/lcov.info
|
|
|
|
# Paramètres TypeScript
|
|
sonar.typescript.tsconfigPath=tsconfig.sonar.json
|
|
|
|
# Niveau de logs
|
|
sonar.log.level=INFO
|
|
|
|
# URL du serveur SonarQube (à adapter selon votre configuration)
|
|
# sonar.host.url=http://localhost:9000
|
|
|
|
# Token d'authentification (à configurer via variable d'environnement)
|
|
# sonar.login=${SONAR_TOKEN}
|