SonarQube CRITICAL CODE_SMELL: Define a constant instead of duplicating this literal "game_lists.*" 4 times. #950
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MyVideoGameList/myvideogamelist.com#950
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
SonarQube issue detected.
SonarQube key:
cc63c15b-23fc-488a-b4d9-bd1b1edd2577Severity:
CRITICALType:
CODE_SMELLLocation:
myvideogamelist:app/Support/GameLists/GameListSections.php:240Message: 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
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.