superdesk/superdesk-client-core

View on GitHub
scripts/apps/desks/directives/DeskConfigModal.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function DeskConfigModal has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function DeskConfigModal(metadata, content, templates, api) {
    return {
        scope: {
            modalActive: '=active',
            desk: '=',
Severity: Minor
Found in scripts/apps/desks/directives/DeskConfigModal.ts - About 1 hr to fix

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

            link: function(scope, elem, attrs, ctrl) {
                const views = {};
    
                views[''] = {label: gettext('None')};
                views['list'] = {label: gettext('List View'), icon: 'list-view'};
    Severity: Minor
    Found in scripts/apps/desks/directives/DeskConfigModal.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status