superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring/editor/find-replace.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function FindReplaceDirective has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function FindReplaceDirective(editorResolver, macros) {
    return {
        link: function(scope, elem) {
            const editor = editorResolver.get();

Severity: Minor
Found in scripts/apps/authoring/editor/find-replace.ts - About 1 hr to fix

    Function link has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            link: function(scope, elem) {
                const editor = editorResolver.get();
    
                scope.to = '';
                scope.from = '';
    Severity: Minor
    Found in scripts/apps/authoring/editor/find-replace.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status