Commit Graph

113 Commits

Author SHA1 Message Date
Serreau Jovann
798e1480d7 fix: add mandatory 'type' field to semgrep report rules for SonarQube 2026-04-01 18:20:47 +02:00
Serreau Jovann
466b05bfe2 refactor: improve MembresController and ProfilController quality
- src/Controller/Admin/MembresController.php: reduce return statements in 'create' and add error logging
- src/Controller/Admin/ProfilController.php: reduce return statements in 'password' and 'update', and fill empty catch blocks with logging
2026-04-01 18:10:35 +02:00
Serreau Jovann
fd822b5b7f test: achieve 100% coverage for Exception and Twig namespaces 2026-04-01 18:10:10 +02:00
Serreau Jovann
dbaf23e13a test: achieve 100% coverage for KeycloakAuthenticator and LoginSuccessHandler 2026-04-01 17:57:10 +02:00
Serreau Jovann
3044a7a4b8 test: achieve 100% coverage for LegalController 2026-04-01 17:53:32 +02:00
Serreau Jovann
75bd0a795c refactor: update semgrep report format for SonarQube compatibility 2026-04-01 17:52:41 +02:00
Serreau Jovann
197916c4e0 test: add HomeControllerTest to generate PHPUnit report 2026-04-01 17:47:12 +02:00
Serreau Jovann
2a70b63549 refactor: improve code quality, security and maintainability
- src/Controller/Admin/ClientsController.php: reduce cognitive complexity by extracting private methods and adding error logging
- src/Service/MeilisearchService.php: fill empty catch blocks with error logging for better traceability
- src/Service/UserManagementService.php: use dedicated UserAlreadyExistsException instead of generic Exception
- src/Service/KeycloakAdminService.php: define and use PATH_USERS and AUTH_BEARER constants to reduce duplication
- src/Service/DocuSealService.php: reduce method return points to comply with project standards
2026-04-01 17:44:57 +02:00
Serreau Jovann
227da01926 refactor: improve commands security, quality and observability
- src/Command/CheckServicesCommand.php: reduce return statements count to comply with static analysis rules
- src/Command/CleanAttestationsCommand.php: replace native unlink/file_exists with Symfony Filesystem for better security
- src/Command/StripeSyncCommand.php: replace TODOs with ID logging for better observability during sync
2026-04-01 17:32:54 +02:00
Serreau Jovann
25c593874c refactor: address static analysis warnings and reduce code duplication
- Created UserManagementService to centralize common user creation logic.
- Refactored ClientsController and RevendeursController to use UserManagementService.
- Reduced code duplication in StatsController and RgpdService.
- Fixed type mismatch in StatusController for ServiceMessage author.
- Improved data consistency in MailerService and EmailTrackingController for attachments.
- Added missing MessengerLogRepository.
- Fixed getFlashBag() call in KeycloakAuthenticator using FlashBagAwareSessionInterface.
- Added missing PHPDoc type specifications in WebhookDocuSealController and RgpdService.
- Removed unused MailerService injection in RgpdService.
2026-04-01 17:18:51 +02:00
Serreau Jovann
686de99909 init 2026-04-01 15:42:52 +02:00
Serreau Jovann
beb12d2b75 Add webapp packages 2026-03-30 18:52:03 +02:00
Serreau Jovann
c1485046af Add initial set of files 2026-03-30 18:51:57 +02:00