RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/integrations/server/lib/ScriptEngine.ts

Summary

Maintainability
C
7 hrs
Test Coverage

File ScriptEngine.ts has 332 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import type {
    IUser,
    IRoom,
    IMessage,
    IOutgoingIntegration,
Severity: Minor
Found in apps/meteor/app/integrations/server/lib/ScriptEngine.ts - About 4 hrs to fix

    Function executeOutgoingScript has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected async executeOutgoingScript(
            integration: IOutgoingIntegration,
            method: keyof IScriptClass,
            params: Record<string, any>,
            historyId: IIntegrationHistory['_id'],
    Severity: Minor
    Found in apps/meteor/app/integrations/server/lib/ScriptEngine.ts - About 2 hrs to fix

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

          protected async executeIncomingScript(
              integration: IIncomingIntegration,
              method: keyof IScriptClass,
              params: Record<string, any>,
          ): Promise<any> {
      Severity: Minor
      Found in apps/meteor/app/integrations/server/lib/ScriptEngine.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status