the-tip-top-frontend/sonar-project.properties
soufiane 7febb137e9 feat: add SonarQube integration, cookie consent, and authentication improvements
- Add SonarQube configuration for code quality analysis
  - sonar-project.properties with TypeScript/Next.js settings
  - .sonarignore to exclude build artifacts and dependencies
  - npm run sonar script
  - Jenkins pipeline stages for SonarQube analysis and quality gate

- Implement cookie consent banner
  - New CookieConsent component with matching site colors
  - localStorage persistence for user choice
  - Accept/Reject buttons with proper styling
  - Link to cookies policy page

- Add strict authentication protection for game page
  - Redirect unauthenticated users to login from /jeux
  - Clean up redundant auth checks and UI elements
  - Preserve redirect parameter for post-login navigation

- Implement smart navigation with auth-aware redirects
  - "Jouer maintenant" button redirects based on auth status
  - "Participer au jeu" footer link with conditional routing
  - Authenticated users go to /jeux, others to /register

- UI improvements and cleanup
  - Remove "Voir les lots" button from homepage
  - Remove "Gestion des cookies" from footer
  - Remove "À propos" from footer navigation
  - Consistent design across components

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 01:23:50 +01:00

34 lines
1012 B
Properties

# Informations du projet
sonar.projectKey=the-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/**
# 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.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}