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/**,templates/email/**,templates/emails/**,src/Controller/WebhookDocuSealController.php,src/Controller/DnsReportController.php,src/Command/CheckDnsCommand.php,src/Command/CloudflareDnsCleanCommand.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/**,src/Service/TarificationService.php,src/Entity/**,src/Repository/**,src/Service/Pdf/**,src/Service/AdvertService.php,src/Service/FactureService.php,src/Service/DevisService.php,src/Service/MeilisearchService.php,templates/admin/clients/show.html.twig,src/Controller/Admin/DevisController.php

# Global rule ignores
sonar.issue.ignore.multicriteria=e1,e2,e3,e4,e5
sonar.issue.ignore.multicriteria.e1.ruleKey=php:S4144
sonar.issue.ignore.multicriteria.e1.resourceKey=**/*.php
sonar.issue.ignore.multicriteria.e2.ruleKey=php:S107
sonar.issue.ignore.multicriteria.e2.resourceKey=src/Service/MailerService.php
sonar.issue.ignore.multicriteria.e3.ruleKey=php:S1200
sonar.issue.ignore.multicriteria.e3.resourceKey=src/Service/MeilisearchService.php
sonar.issue.ignore.multicriteria.e4.ruleKey=php:S1820
sonar.issue.ignore.multicriteria.e4.resourceKey=src/Service/MeilisearchService.php
sonar.issue.ignore.multicriteria.e5.ruleKey=php:S1448
sonar.issue.ignore.multicriteria.e5.resourceKey=src/Service/MeilisearchService.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
