Artivain/artibot

View on GitHub

Showing 12 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

                  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

                    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

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

                        No licenses found for path. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
                        Open

                                "path": "^0.12.7"
                        Severity: Minor
                        Found in package.json by git-legal
                        Severity
                        Category
                        Status
                        Source
                        Language