superdesk/superdesk-client-core

View on GitHub
scripts/api/highlights.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function exportHighlight has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function exportHighlight(id: IArticle['_id'], hasUnsavedChanges: boolean): Promise<void> {
    const request = () => {
        return httpRequestJsonLocal<void>({
            method: 'POST',
            path: '/generate_highlights',
Severity: Minor
Found in scripts/api/highlights.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status