superdesk/superdesk-client-core

View on GitHub
scripts/core/editor3/components/HighlightsPopup.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function component has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    component() {
        let highlightsAndSuggestions = [];
        let data;

        if (this.styleBasedHighlightsExist()) {
Severity: Minor
Found in scripts/core/editor3/components/HighlightsPopup.tsx - About 1 hr to fix

    Function createHighlight has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        createHighlight(type, h, highlightId) {
            if (type === 'ANNOTATION') {
                return (
                    <AnnotationPopup
                        annotation={h}
    Severity: Minor
    Found in scripts/core/editor3/components/HighlightsPopup.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status