superdesk/superdesk-client-core

View on GitHub
scripts/core/menu/menu.ts

Summary

Maintainability
C
1 day
Test Coverage

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

                link: function(scope, elem, attrs, ctrl) {
                    let body = angular.element('body');

                    scope.currentRoute = null;
                    scope.flags = ctrl.flags;
Severity: Major
Found in scripts/core/menu/menu.ts - About 4 hrs to fix

    File menu.ts has 257 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import {reactToAngular1} from 'superdesk-ui-framework';
    import {GlobalMenuHorizontal} from './GlobalMenuHorizontal';
    import {appConfig} from 'appConfig';
    import {addInternalEventListener} from 'core/internal-events';
    import {IFullWidthPageCapabilityConfiguration} from 'superdesk-api';
    Severity: Minor
    Found in scripts/core/menu/menu.ts - About 2 hrs to fix

      Function SuperdeskViewController has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function SuperdeskViewController(superdeskFlags, superdesk, $scope, $route, session, $timeout) {
                  setupFullWidthPage($scope);
      
                  $scope.session = session;
      
      
      Severity: Minor
      Found in scripts/core/menu/menu.ts - About 1 hr to fix

        Function SuperdeskViewController has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                function SuperdeskViewController(superdeskFlags, superdesk, $scope, $route, session, $timeout) {
        Severity: Minor
        Found in scripts/core/menu/menu.ts - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status