FoseFx/twitch-chatbot-boilerplate-core

View on GitHub
src/core/server/routes.ts

Summary

Maintainability
A
2 hrs
Test Coverage
A
90%

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

      There are no issues that match your filters.

      Category
      Status