superdesk/superdesk-client-core

View on GitHub
scripts/apps/archive/show-spike-dialog.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function showSpikeDialog has 70 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function showSpikeDialog<T>(
    modal: any,
    doSpike: () => void,
    promptForConfirmationMessage: string,
    middlewares: Array<(value: T) => Promise<onSpikeMiddlewareResult>>,
Severity: Major
Found in scripts/apps/archive/show-spike-dialog.tsx - About 2 hrs to fix

    Function showSpikeDialog has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        modal: any,
        doSpike: () => void,
        promptForConfirmationMessage: string,
        middlewares: Array<(value: T) => Promise<onSpikeMiddlewareResult>>,
        middlewareArgument: T,
    Severity: Minor
    Found in scripts/apps/archive/show-spike-dialog.tsx - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status