SonarQube MAJOR CODE_SMELL: Remove the unused function parameter "$attribute". #751
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
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#751
Loading…
Add table
Add a link
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:
8c781b98-f710-4adc-8508-6a6564ea4144Severity:
MAJORType:
CODE_SMELLLocation:
myvideogamelist:app/Http/Controllers/Admin/UserController.php:273Message: Remove the unused function parameter "$attribute".
https://sonarqube.linuxbox.ninja/project/issues?id=myvideogamelist&issues=8c781b98-f710-4adc-8508-6a6564ea4144&open=8c781b98-f710-4adc-8508-6a6564ea4144
Resolved in
2af0f53.Changes:
App\Http\Controllers\Admin\Concerns\ManagesUserMedia, bringingAdmin\UserControllerbelow the SonarQube method-count threshold.Admin\UserController::update()to use a single final response return.$attributeparameter in the role-assignment failure message.Verification:
vendor/bin/pint --format agent app/Http/Controllers/Admin/UserController.php app/Http/Controllers/Admin/Concerns/ManagesUserMedia.phpphp artisan test --compact tests/Feature/AdminUserProfileInfoTest.php tests/Feature/FiderUserStatusSyncTest.php(23 passed, 100 assertions)composer run stan(no errors)