SonarQube CRITICAL CODE_SMELL: Define a constant instead of duplicating this literal "game_lists.*" 4 times. #950

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

SonarQube issue detected.

SonarQube key: cc63c15b-23fc-488a-b4d9-bd1b1edd2577
Severity: CRITICAL
Type: CODE_SMELL
Location: myvideogamelist:app/Support/GameLists/GameListSections.php:240
Message: Define a constant instead of duplicating this literal "game_lists.*" 4 times.

https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=cc63c15b-23fc-488a-b4d9-bd1b1edd2577&open=cc63c15b-23fc-488a-b4d9-bd1b1edd2577

SonarQube issue detected. **SonarQube key:** `cc63c15b-23fc-488a-b4d9-bd1b1edd2577` **Severity:** `CRITICAL` **Type:** `CODE_SMELL` **Location:** `myvideogamelist:app/Support/GameLists/GameListSections.php:240` **Message:** Define a constant instead of duplicating this literal "game_lists.*" 4 times. https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=cc63c15b-23fc-488a-b4d9-bd1b1edd2577&open=cc63c15b-23fc-488a-b4d9-bd1b1edd2577 <!-- sonarqube:issue:cc63c15b-23fc-488a-b4d9-bd1b1edd2577 -->
Codex self-assigned this 2026-10-02 15:56:58 -05:00
Member

Replaced the repeated game_lists.* selection with a shared column constant. Game-list pagination tests pass. Implemented in PR #957. Pint and PHPStan pass; Forgejo CI and the post-merge SonarQube scan are pending. Leaving this issue open until merge.

Replaced the repeated game_lists.* selection with a shared column constant. Game-list pagination tests pass. 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#950
No description provided.