Repository navigation
fix(autoplay): prioritize user tracks, Spotify liked seeds, sertanejo filter, expand Last.fm limits - #817
Quality Gate passed
Annotations
Check failure on line 82 in packages/bot/src/utils/music/candidateFallback.ts
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=AZ4ABSUNx9JU6ccakrrU&open=AZ4ABSUNx9JU6ccakrrU&pullRequest=817
Check warning on line 2 in packages/bot/src/spotify/spotifyApi.ts
sonarqubecloud / SonarCloud Code Analysis
Remove this unused import of 'warnLog'.
See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4IspRiAFXVgHJSbT5x&open=AZ4IspRiAFXVgHJSbT5x&pullRequest=817
Check warning on line 7 in packages/bot/src/utils/music/autoplay/artistTagCache.ts
sonarqubecloud / SonarCloud Code Analysis
`normalized` should be a `Set`, and use `normalized.has()` to check existence or non-existence.
See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ3_0qSSOyc73zbL9t-W&open=AZ3_0qSSOyc73zbL9t-W&pullRequest=817
Check warning on line 106 in packages/bot/src/utils/music/autoplay/diversitySelector.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer negative index over length minus index for `slice`.
See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4ArE2HkQrnzCBi3kcL&open=AZ4ArE2HkQrnzCBi3kcL&pullRequest=817
Check warning on line 103 in packages/bot/src/utils/music/autoplay/diversitySelector.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer `.at(…)` over `[….length - index]`.
See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4ArE2HkQrnzCBi3kcK&open=AZ4ArE2HkQrnzCBi3kcK&pullRequest=817
Check warning on line 103 in packages/bot/src/utils/music/autoplay/diversitySelector.ts
sonarqubecloud / SonarCloud Code Analysis
Use the 'String#endsWith' method instead.
See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4ArE2HkQrnzCBi3kcJ&open=AZ4ArE2HkQrnzCBi3kcJ&pullRequest=817
Check failure on line 468 in packages/bot/src/spotify/spotifyApi.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4AKWl7C5to97iszaKm&open=AZ4AKWl7C5to97iszaKm&pullRequest=817
Check failure on line 97 in packages/bot/src/utils/music/autoplay/diversitySelector.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ4ArE2HkQrnzCBi3kcI&open=AZ4ArE2HkQrnzCBi3kcI&pullRequest=817