superdesk/superdesk-client-core

View on GitHub
scripts/apps/users/directives/UserPrivilegesDirective.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function UserPrivilegesDirective has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function UserPrivilegesDirective(api, notify, userList, $q) {
    return {
        scope: {
            user: '=',
        },
Severity: Major
Found in scripts/apps/users/directives/UserPrivilegesDirective.ts - About 2 hrs to fix

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

            link: function(scope) {
                getUser()
                    .then(getPrivileges)
                    .then(getUserRole);
    
    
    Severity: Major
    Found in scripts/apps/users/directives/UserPrivilegesDirective.ts - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status