Add PHPStan report for SonarQube analysis

- Add sonar.php.phpstan.reportPaths to sonar-project.properties
- Generate phpstan-report.json in CI php job, sonarqube job, and sonarqube.yml workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-19 14:38:29 +01:00
parent 9bcb41306b
commit 8275e65eb9
3 changed files with 8 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ sonar.exclusions=vendor/**,node_modules/**,public/build/**,var/**,migrations/**
sonar.php.version=8.4
sonar.sourceEncoding=UTF-8
sonar.php.coverage.reportPaths=coverage.xml
sonar.php.phpstan.reportPaths=phpstan-report.json
sonar.tests=tests
sonar.test.inclusions=tests/**/*.php,tests/js/**/*.test.js
sonar.javascript.lcov.reportPaths=coverage/lcov.info