Resolve seven SonarQube findings #957
No reviewers
Labels
No labels
automated
code-quality
component: admin dashboard
component: backend
component: billing
component: content management
component: faqs
component: game genres
component: game lists
component: game reviews
component: game search
component: games
component: internal notifications
component: platforms
component: security
component: tests
component: user api
component: user badges
component: user blogs
component: user consoles
component: user favorites
component: user friends
component: user notifications
component: user profiles
component: user site notifications
component: user wishlists
component: web design
dependencies
javascript
php
priority
high
priority
low
priority
medium
security-hotspot
source: codex
source: sonarqube
status
awaiting feedback
status
backlog
status
done
status
in progress
status
in queue
status
in review
status
needs codex review
status
needs investigation
status
wontfix
type: bug
type: documentation
type: feature
type: improvement
type: regression
type: task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MyVideoGameList/myvideogamelist.com!957
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/fix-sonarqube-950-956"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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.
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.