KnodesCommunity/typedoc-plugins

View on GitHub
packages/plugintestbed/src/capture-event.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function setupCaptureEvent has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const setupCaptureEvent = <T extends EventDispatcher>( cls: Class<T>, eventName: string ) => {
    let listenerToTest: CallableFunction[] = [];
    let baseOn: EventDispatcher['on'];
    function registerEvent( eventMap: EventMap ): T;
    function registerEvent( eventMap: EventMap, callback?: EventCallback ): T;
Severity: Minor
Found in packages/plugintestbed/src/capture-event.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status