SonarQube MAJOR CODE_SMELL: This function has 8 parameters, which is greater than the 7 authorized. #919
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#919
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:
89e8b3fa-6749-457c-bef8-37b990832af3Severity:
MAJORType:
CODE_SMELLLocation:
myvideogamelist:app/Console/Commands/SyncProductionData.php:100Message: This function has 8 parameters, which is greater than the 7 authorized.
https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=89e8b3fa-6749-457c-bef8-37b990832af3&open=89e8b3fa-6749-457c-bef8-37b990832af3
Resolved in PR #920 by wrapping the production data sync run settings in a new
ProductionDataSyncRunvalue object and passing that intoSyncProductionData::runSync(). This keeps the existing sync behavior and logging context intact while reducing the flagged helper below SonarQube's parameter limit.Verification completed before merge:
php artisan test --compact tests/Feature/ProductionDataSyncCommandTest.phpvendor/bin/pint --dirty --format agentcomposer stanquality#981 andci#982 passed.