Skip to content

refactor: extract replenisher (phase 3.6 - final) - #670

Merged
LucasSantana-Dev merged 3 commits into
mainfrom
refactor/replenisher
Apr 17, 2026
Merged

LucasSantana-Dev merged 3 commits into
mainfrom
refactor/replenisher

fix: correct imports after merge resolution - export collectLastFmCan…

fc1e4d7
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Apr 17, 2026 in 59s

Annotations

Check warning on line 63 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use `export…from` to re-export `replenishQueue`.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d9&open=AZ2Y0IatQydYG71of0d9&pullRequest=670

Check warning on line 11 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'recommendationFeedbackService'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0dy&open=AZ2Y0IatQydYG71of0dy&pullRequest=670

Check warning on line 358 in packages/bot/src/utils/music/autoplay/replenisher.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This branch's code block is the same as the block for the branch on line 351.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2YzD5flbRe63qrLqag&open=AZ2YzD5flbRe63qrLqag&pullRequest=670

Check failure on line 328 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d_&open=AZ2Y0IatQydYG71of0d_&pullRequest=670

Check warning on line 31 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'detectSessionMood'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d2&open=AZ2Y0IatQydYG71of0d2&pullRequest=670

Check warning on line 48 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'purgeDuplicatesOfCurrentTrack'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d7&open=AZ2Y0IatQydYG71of0d7&pullRequest=670

Check warning on line 60 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'QueueMetadata'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0zRETUty__YbtXqk&open=AZ2Y0zRETUty__YbtXqk&pullRequest=670

Check warning on line 46 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'selectDiverseCandidates'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d5&open=AZ2Y0IatQydYG71of0d5&pullRequest=670

Check warning on line 328 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Async function 'collectBroadFallbackCandidates' has too many parameters (16). Maximum allowed is 7.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d-&open=AZ2Y0IatQydYG71of0d-&pullRequest=670

Check warning on line 14 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'guildSettingsService'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d0&open=AZ2Y0IatQydYG71of0d0&pullRequest=670

Check warning on line 47 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'addSelectedTracks'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d6&open=AZ2Y0IatQydYG71of0d6&pullRequest=670

Check warning on line 43 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'buildExcludedUrls'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d3&open=AZ2Y0IatQydYG71of0d3&pullRequest=670

Check warning on line 22 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'getArtistPopularity'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d1&open=AZ2Y0IatQydYG71of0d1&pullRequest=670

Check warning on line 13 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'trackHistoryService'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0dz&open=AZ2Y0IatQydYG71of0dz&pullRequest=670

Check warning on line 13 in packages/bot/src/utils/music/autoplay/replenisher.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'SessionMood'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2YzD5elbRe63qrLqae&open=AZ2YzD5elbRe63qrLqae&pullRequest=670

Check warning on line 10 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'warnLog'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0dx&open=AZ2Y0IatQydYG71of0dx&pullRequest=670

Check failure on line 63 in packages/bot/src/utils/music/autoplay/replenisher.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2YzD5flbRe63qrLqaf&open=AZ2YzD5flbRe63qrLqaf&pullRequest=670

Check warning on line 44 in packages/bot/src/utils/music/queueManipulation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'buildExcludedKeys'.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ2Y0IatQydYG71of0d4&open=AZ2Y0IatQydYG71of0d4&pullRequest=670