RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/apps/server/bridges/scheduler.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

    protected async registerProcessors(processors: Array<IProcessor> = [], appId: string): Promise<void | Array<string>> {
        const runAfterRegister: Promise<string>[] = [];
        this.orch.debugLog(`The App ${appId} is registering job processors`, processors);
        processors.forEach(({ id, processor, startupSetting }: IProcessor) => {
            this.scheduler.define(id, _callProcessor(processor));
Severity: Minor
Found in apps/meteor/app/apps/server/bridges/scheduler.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status