FoseFx/twitch-chatbot-boilerplate-core

View on GitHub

Showing 3 of 7 total issues

Function initialize has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function initialize(
  initializeOptions: InitializeOptions = {},
): Promise<InitializeObject> {
  return new Promise((resolve, reject) => {
    loadEnvVariables(); // make sure all variables are available
Severity: Minor
Found in src/core/core.ts - About 1 hr to fix

    Function setUpRoutes has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function setUpRoutes(
      app: Express,
      startOptions: StartServerOptions,
    ): void {
      if (startOptions.beforeRouteSetup) {
    Severity: Minor
    Found in src/core/server/routes.ts - About 1 hr to fix

      Function callbackRequestHandler has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function callbackRequestHandler(
        type: 'add' | 'remove',
        options: StartServerOptions,
      ): RequestHandler {
        const { botname } = options;
      Severity: Minor
      Found in src/core/server/routes.ts - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language