Artivain/artibot

View on GitHub

Showing 11 of 12 total issues

ArtibotConfigBuilder has 24 functions (exceeds 20 allowed). Consider refactoring.
Open

export class ArtibotConfigBuilder implements Partial<ArtibotConfig> {
    /** Discord ID of the owner of the bot */
    ownerId?: Snowflake;
    /** ID of the test server */
    testGuildId?: Snowflake;
Severity: Minor
Found in src/config.ts - About 2 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                                if (artibot.config.debug) log("TriggerHandler", (e as Error).message, "debug", true);
    Severity: Major
    Found in src/events/triggerHandler.ts - About 45 mins to fix

      Avoid too many return statements within this function.
      Open

              return;
      Severity: Major
      Found in src/events/commandHandler.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return;
        Severity: Major
        Found in src/events/commandHandler.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              if (!command) return;
          Severity: Major
          Found in src/events/commandHandler.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return;
            Severity: Major
            Found in src/events/commandHandler.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  if (!message.content.startsWith(matchedPrefix) || message.author.bot) return;
              Severity: Major
              Found in src/events/commandHandler.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return;
                Severity: Major
                Found in src/events/commandHandler.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return;
                  Severity: Major
                  Found in src/core/commands/checkupdates.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                    return;
                    Severity: Major
                    Found in src/core/commands/checkupdates.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return;
                      Severity: Major
                      Found in src/events/commandHandler.ts - About 30 mins to fix
                        Severity
                        Category
                        Status
                        Source
                        Language