SonarQube MAJOR CODE_SMELL: This function has 8 parameters, which is greater than the 7 authorized. #919

Closed
opened 2026-08-05 13:21:01 -05:00 by forgejo-actions · 1 comment

SonarQube issue detected.

SonarQube key: 89e8b3fa-6749-457c-bef8-37b990832af3
Severity: MAJOR
Type: CODE_SMELL
Location: myvideogamelist:app/Console/Commands/SyncProductionData.php:100
Message: 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

SonarQube issue detected. **SonarQube key:** `89e8b3fa-6749-457c-bef8-37b990832af3` **Severity:** `MAJOR` **Type:** `CODE_SMELL` **Location:** `myvideogamelist:app/Console/Commands/SyncProductionData.php:100` **Message:** 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 <!-- sonarqube:issue:89e8b3fa-6749-457c-bef8-37b990832af3 -->
Codex self-assigned this 2026-08-06 10:24:20 -05:00
Member

Resolved in PR #920 by wrapping the production data sync run settings in a new ProductionDataSyncRun value object and passing that into SyncProductionData::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.php
  • vendor/bin/pint --dirty --format agent
  • composer stan
  • Forgejo quality #981 and ci #982 passed.
Resolved in PR #920 by wrapping the production data sync run settings in a new `ProductionDataSyncRun` value object and passing that into `SyncProductionData::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.php` - `vendor/bin/pint --dirty --format agent` - `composer stan` - Forgejo `quality` #981 and `ci` #982 passed.
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#919
No description provided.