SonarQube MAJOR CODE_SMELL: Define and throw a dedicated exception instead of using a generic one. #951

Closed
opened 2026-10-02 10:59:12 -05:00 by forgejo-actions · 1 comment

SonarQube issue detected.

SonarQube key: aa09629f-21b8-428e-895f-21686ce025bc
Severity: MAJOR
Type: CODE_SMELL
Location: myvideogamelist:database/migrations/2026_08_11_140000_restore_retired_staff_roles.php:50
Message: Define and throw a dedicated exception instead of using a generic one.

https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=aa09629f-21b8-428e-895f-21686ce025bc&open=aa09629f-21b8-428e-895f-21686ce025bc

SonarQube issue detected. **SonarQube key:** `aa09629f-21b8-428e-895f-21686ce025bc` **Severity:** `MAJOR` **Type:** `CODE_SMELL` **Location:** `myvideogamelist:database/migrations/2026_08_11_140000_restore_retired_staff_roles.php:50` **Message:** Define and throw a dedicated exception instead of using a generic one. https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=aa09629f-21b8-428e-895f-21686ce025bc&open=aa09629f-21b8-428e-895f-21686ce025bc <!-- sonarqube:issue:aa09629f-21b8-428e-895f-21686ce025bc -->
Codex self-assigned this 2026-10-02 15:56:58 -05:00
Member

Added RetiredStaffPrerequisiteMissing for missing migration prerequisites, preserving the guard messages and behavior. New tests cover missing roles and badges. Implemented in PR #957. Pint and PHPStan pass; Forgejo CI and the post-merge SonarQube scan are pending. Leaving this issue open until merge.

Added RetiredStaffPrerequisiteMissing for missing migration prerequisites, preserving the guard messages and behavior. New tests cover missing roles and badges. Implemented in PR #957. Pint and PHPStan pass; Forgejo CI and the post-merge SonarQube scan are pending. Leaving this issue open until merge.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#951
No description provided.