JiPaix/xdccJS

View on GitHub
build/changelog.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function postToDiscord has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function postToDiscord():Promise<void> {
  return new Promise((resolve, reject) => {
    const discord = new Client({
      intents: [GatewayIntentBits.Guilds],
    });
Severity: Minor
Found in build/changelog.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

            return reject(e);
    Severity: Major
    Found in build/changelog.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status