superdesk/superdesk-client-core

View on GitHub
scripts/extensions/markForUser/src/common.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function markForUserAndSendToNextStage has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function markForUserAndSendToNextStage(
    superdesk: ISuperdesk,
    article: IArticle,
    selectedUserId: IUser['_id'] | null,
) {
Severity: Minor
Found in scripts/extensions/markForUser/src/common.ts - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

        if (
            !hasPrivilege('mark_for_user')
            || isPersonal(article)
            || isArchived(article)
            || isPublished(article)
    Severity: Major
    Found in scripts/extensions/markForUser/src/common.ts - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status