SonarQube CRITICAL CODE_SMELL: Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allo #955

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

SonarQube issue detected.

SonarQube key: 5c6bf1bb-1ac5-43ca-860f-8fdb1450e275
Severity: CRITICAL
Type: CODE_SMELL
Location: myvideogamelist:app/Support/BadgeCatalog.php:8
Message: Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed.

https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=5c6bf1bb-1ac5-43ca-860f-8fdb1450e275&open=5c6bf1bb-1ac5-43ca-860f-8fdb1450e275

SonarQube issue detected. **SonarQube key:** `5c6bf1bb-1ac5-43ca-860f-8fdb1450e275` **Severity:** `CRITICAL` **Type:** `CODE_SMELL` **Location:** `myvideogamelist:app/Support/BadgeCatalog.php:8` **Message:** Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed. https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=5c6bf1bb-1ac5-43ca-860f-8fdb1450e275&open=5c6bf1bb-1ac5-43ca-860f-8fdb1450e275 <!-- sonarqube:issue:5c6bf1bb-1ac5-43ca-860f-8fdb1450e275 -->
Codex self-assigned this 2026-10-02 15:57:01 -05:00
Member

Split badge catalog construction into membership/progress, community, and collection/review helpers while preserving ordering and metadata. Catalog and 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.

Split badge catalog construction into membership/progress, community, and collection/review helpers while preserving ordering and metadata. Catalog and 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#955
No description provided.