Files
crm_ecosplay/sonar-project.properties
Serreau Jovann 80101b3b39 test: couverture 100% LogVerifyController, ExternalRedirectController + exclusions API live
LogVerifyControllerTest (4 tests) :
- testLogNotFound : log null retourne 200 avec valid=false
- testHmacMismatch : hmac prefix ne correspond pas, retourne 200 valid=false
- testValidLog : log trouvé + hmac correct + verifyLog=true
- testInvalidHmacLog : log trouvé + hmac correct + verifyLog=false

ExternalRedirectControllerTest (2 tests) :
- testIndexWithUrl : redirUrl présent retourne 200
- testIndexWithoutUrl : pas de redirUrl retourne 200

DnsReportControllerTest (1 test) :
- testNotFound : token invalide lance NotFoundHttpException

Exclusions API live :
- DnsReportController : @codeCoverageIgnore (dépend DnsCheckService, AwsSesService,
  Cloudflare, Mailcow — non testable unitairement)
- sonar-project.properties : ajout DnsReportController dans sonar.exclusions
- sonar-project.properties : correction sonar.tests=tests (suppression tests/js
  dupliqué qui causait l'erreur "can't be indexed twice")

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 10:56:48 +02:00

32 lines
1.4 KiB
Properties

sonar.projectKey=crm_siteconseil
sonar.token=sqp_3e02f4de4c73f6d9cc5b6ce6546a7871d6ac0756
sonar.projectName=CRM SITECONSEIL
sonar.sources=src,assets,templates
sonar.tests=tests
sonar.language=php
sonar.sourceEncoding=UTF-8
sonar.php.version=8.4
# Exclusions
sonar.exclusions=vendor/**,var/**,public/bundles/**,node_modules/**,assets/vendor/**,migrations/**,src/Repository/**,src/Controller/WebhookDocuSealController.php,src/Controller/DnsReportController.php,src/Command/CheckDnsCommand.php,src/Service/AwsSesService.php,src/Service/CloudflareService.php,src/Service/DnsInfraHelper.php,src/Service/DnsCheckService.php,src/Service/StripePriceService.php,src/Service/StripeWebhookService.php,src/Service/MailcowService.php
# Coverage
sonar.php.coverage.reportPaths=var/reports/coverage.xml
sonar.php.tests.reportPath=var/reports/phpunit.xml
# Duplication exclusions
sonar.cpd.exclusions=migrations/**
# Global rule ignores
sonar.issue.ignore.multicriteria=e1
sonar.issue.ignore.multicriteria.e1.ruleKey=php:S4144
sonar.issue.ignore.multicriteria.e1.resourceKey=**/*.php
# ─── Rapports externes ────────────────────────────
sonar.php.phpstan.reportPaths=var/reports/phpstan-report.json
sonar.javascript.eslint.reportPaths=var/reports/eslint-report.json
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.docker.hadolint.reportPaths=var/reports/hadolint-raw.json