superdesk/superdesk-client-core

View on GitHub
scripts/apps/templates/directives/TemplateEditorModal.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function TemplateEditorModal has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function TemplateEditorModal() {
    return {
        templateUrl: 'scripts/apps/templates/views/template-editor-modal.html',
        link: function(scope) {
            let _isDirty;
Severity: Minor
Found in scripts/apps/templates/directives/TemplateEditorModal.ts - About 1 hr to fix

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

            link: function(scope) {
                let _isDirty;
    
                /**
                 * Set dirty on autosave - it is called on change
    Severity: Minor
    Found in scripts/apps/templates/directives/TemplateEditorModal.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status