Resolve seven SonarQube findings #957

Merged
jimmyb merged 1 commit from codex/fix-sonarqube-950-956 into master 2026-10-02 17:11:06 -05:00
Member

Resolve seven SonarQube findings while preserving badge metadata, game-list queries, retired-staff migration guards, and friendship behavior.

Split badge catalog generation into smaller groups and move friendship relationships into a model concern. Use named constants for repeated query/test literals and a dedicated retired-staff prerequisite exception. Move the profile's inline Blade conditional outside its anchor tag so the HTML analyzer does not misread later form attributes.

Verification: badge catalog/evaluator, game-list, user profile/friendship, and retired-staff migration tests pass; Pint and PHPStan pass. SonarQube runs on master after merge, so scanner confirmation is pending that run.

Fixes #950
Fixes #951
Fixes #952
Fixes #953
Fixes #954
Fixes #955
Fixes #956

Resolve seven SonarQube findings while preserving badge metadata, game-list queries, retired-staff migration guards, and friendship behavior. Split badge catalog generation into smaller groups and move friendship relationships into a model concern. Use named constants for repeated query/test literals and a dedicated retired-staff prerequisite exception. Move the profile's inline Blade conditional outside its anchor tag so the HTML analyzer does not misread later form attributes. Verification: badge catalog/evaluator, game-list, user profile/friendship, and retired-staff migration tests pass; Pint and PHPStan pass. SonarQube runs on master after merge, so scanner confirmation is pending that run. Fixes #950 Fixes #951 Fixes #952 Fixes #953 Fixes #954 Fixes #955 Fixes #956
Resolve seven SonarQube findings
All checks were successful
linter / quality (pull_request) Successful in 8m26s
tests / ci (pull_request) Successful in 16m57s
ef2492f0d8
jimmyb self-assigned this 2026-10-02 16:04:50 -05:00
Author
Member

Local verification passed: 105 distinct focused tests covering badges, game-list pagination, profiles, friendships, and retired-staff migration prerequisites, plus Pint and PHPStan.

Forgejo test run #1159 failed during runner setup, before checkout or any tests ran: the mariadb:12.3 service container never became healthy. Master run #1157 failed at the same step with the same health-check error, so this is a pre-existing CI infrastructure blocker.

The test job needs a rerun once the MariaDB service startup problem is resolved. SonarQube confirmation remains pending the master scan after merge.

Local verification passed: 105 distinct focused tests covering badges, game-list pagination, profiles, friendships, and retired-staff migration prerequisites, plus Pint and PHPStan. Forgejo test run #1159 failed during runner setup, before checkout or any tests ran: the mariadb:12.3 service container never became healthy. Master run #1157 failed at the same step with the same health-check error, so this is a pre-existing CI infrastructure blocker. The test job needs a rerun once the MariaDB service startup problem is resolved. SonarQube confirmation remains pending the master scan after merge.
Author
Member

Final verification: Forgejo quality #1158 and ci #1159 attempt 2 passed. The retry passed MariaDB migrations, asset build, browser interaction checks, and the full PHP suite (5,034 assertions; existing suite warnings were reported). The initial MariaDB setup failure cleared on retry. Local focused runs covered 109 distinct tests, correcting the earlier count of 105. SonarQube confirmation remains pending the master scan after merge.

Final verification: Forgejo quality #1158 and ci #1159 attempt 2 passed. The retry passed MariaDB migrations, asset build, browser interaction checks, and the full PHP suite (5,034 assertions; existing suite warnings were reported). The initial MariaDB setup failure cleared on retry. Local focused runs covered 109 distinct tests, correcting the earlier count of 105. SonarQube confirmation remains pending the master scan after merge.
jimmyb merged commit bcf894f81b into master 2026-10-02 17:11:06 -05:00
jimmyb deleted branch codex/fix-sonarqube-950-956 2026-10-02 17:11:06 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MyVideoGameList/myvideogamelist.com!957
No description provided.