Skip to content

refactor: extract spotifyRecommender (phase 3.3) - #662

Merged
LucasSantana-Dev merged 2 commits into
mainfrom
refactor/spotify-recommender-v2
Apr 16, 2026
Merged

LucasSantana-Dev merged 2 commits into
mainfrom
refactor/spotify-recommender-v2

Merge branch 'main' into refactor/spotify-recommender-v2

7e6145d
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
SonarQubeCloud / SonarCloud Code Analysis succeeded Apr 16, 2026 in 1m 0s

Annotations

Check warning on line 24 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 'getSpotifyRecommendations'.

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

Check failure on line 150 in packages/bot/src/utils/music/autoplay/spotifyRecommender.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 40 in packages/bot/src/utils/music/autoplay/spotifyRecommender.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Async function 'collectSpotifyRecommendationCandidates' has too many parameters (18). Maximum allowed is 7.

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

Check failure on line 40 in packages/bot/src/utils/music/autoplay/spotifyRecommender.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=AZ2Yegj3_UJa5tRKgciN&open=AZ2Yegj3_UJa5tRKgciN&pullRequest=662

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this union type with a type alias.

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

Check warning on line 49 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 'extractSongCore'.

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

Check failure on line 1486 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 70 to the 15 allowed.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Function 'calculateRecommendationScore' has too many parameters (13). Maximum allowed is 7.

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