chore: Configuration SonarQube et tests

This commit is contained in:
Serreau Jovann
2025-07-16 10:45:04 +02:00
parent 151d981bc7
commit 9c9ff36c6f
2 changed files with 19 additions and 1 deletions

View File

@@ -3,3 +3,17 @@ sonar.projectName=Mainframe Esy-Web
sonar.projectVersion=1.0 sonar.projectVersion=1.0
sonar.php.coverage.reportPaths=.coverage/clover.xml sonar.php.coverage.reportPaths=.coverage/clover.xml
sonar.qualitygate.wait=true sonar.qualitygate.wait=true
sonar.exclusions= \
vendor/**/*, \
node_modules/**/*, \
migrations/**/*, \
tests/**/*
sonar.test.inclusions=tests/**/*.php
sonar.sourceEncoding=UTF-8
sonar.tests=tests
sonar.sources=src

View File

@@ -2,8 +2,12 @@
use Symfony\Component\Dotenv\Dotenv; use Symfony\Component\Dotenv\Dotenv;
require_once dirname(__DIR__).'/vendor/autoload.php'; require dirname(__DIR__).'/vendor/autoload.php';
if (method_exists(Dotenv::class, 'bootEnv')) { if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env'); (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
} }
if ($_SERVER['APP_DEBUG']) {
umask(0000);
}