superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring-react/generic-widgets/comments/index.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function getCommentsWidgetGeneric has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function getCommentsWidgetGeneric<T>(
    getComments: (entityId: string) => Promise<Array<IComment>>,
    addComment: (entityId: string, text: string) => Promise<void>,
    isAllowed: (entity: T) => boolean,
) {
Severity: Minor
Found in scripts/apps/authoring-react/generic-widgets/comments/index.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status