superdesk/superdesk-client-core

View on GitHub
scripts/apps/workspace/directives/WorkspaceDropdownDirective.ts

Summary

Maintainability
B
6 hrs
Test Coverage

Function WorkspaceDropdownDirective has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function WorkspaceDropdownDirective(desks, workspaces, $route, preferencesService, $location, reloadService,
    notifyConnectionService, deskNotifications, pageTitle) {
    return {
        templateUrl: 'scripts/apps/workspace/views/workspace-dropdown.html',
        link: function(scope) {
Severity: Major
Found in scripts/apps/workspace/directives/WorkspaceDropdownDirective.ts - About 2 hrs to fix

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

            link: function(scope) {
                scope.workspaces = workspaces;
                scope.wsList = null;
                scope.edited = null;
    
    
    Severity: Major
    Found in scripts/apps/workspace/directives/WorkspaceDropdownDirective.ts - About 2 hrs to fix

      Function WorkspaceDropdownDirective has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      export function WorkspaceDropdownDirective(desks, workspaces, $route, preferencesService, $location, reloadService,
          notifyConnectionService, deskNotifications, pageTitle) {
      Severity: Major
      Found in scripts/apps/workspace/directives/WorkspaceDropdownDirective.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status