test: achieve 100% coverage for CheckServicesCommand and update SonarQube config

- Add 26 tests covering all service check types (HTTP, DocuSeal, Vault, Minio, Stripe)
- Include assets/ and templates/ in SonarQube sources
- Ignore php:S4144 globally (interface-imposed duplicate methods)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-04-01 19:24:15 +02:00
parent 409691fbad
commit b0060bd831
2 changed files with 416 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
sonar.projectKey=crm-ecosplay
sonar.projectName=CRM Ecosplay
sonar.sources=src
sonar.sources=src,assets,templates
sonar.tests=tests
sonar.language=php
@@ -19,6 +19,11 @@ 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