SonarQube CRITICAL CODE_SMELL: Define a constant instead of duplicating this literal "Playing a classic" 4 time #953

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

SonarQube issue detected.

SonarQube key: 560406ab-5b0e-4d64-a278-cd2a26904148
Severity: CRITICAL
Type: CODE_SMELL
Location: myvideogamelist:tests/Feature/BadgeEvaluatorTest.php:83
Message: Define a constant instead of duplicating this literal "Playing a classic" 4 times.

https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=560406ab-5b0e-4d64-a278-cd2a26904148&open=560406ab-5b0e-4d64-a278-cd2a26904148

SonarQube issue detected. **SonarQube key:** `560406ab-5b0e-4d64-a278-cd2a26904148` **Severity:** `CRITICAL` **Type:** `CODE_SMELL` **Location:** `myvideogamelist:tests/Feature/BadgeEvaluatorTest.php:83` **Message:** Define a constant instead of duplicating this literal "Playing a classic" 4 times. https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=560406ab-5b0e-4d64-a278-cd2a26904148&open=560406ab-5b0e-4d64-a278-cd2a26904148 <!-- sonarqube:issue:560406ab-5b0e-4d64-a278-cd2a26904148 -->
Codex self-assigned this 2026-10-02 15:56:59 -05:00
Member

Centralized the repeated profile status fixture in BADGE_PROFILE_STATUS. Badge evaluator 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.

Centralized the repeated profile status fixture in BADGE_PROFILE_STATUS. Badge evaluator 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#953
No description provided.