scripts/core/menu/menu.ts
Function link
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem, attrs, ctrl) {
let body = angular.element('body');
scope.currentRoute = null;
scope.flags = ctrl.flags;
File menu.ts
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
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';
Function SuperdeskViewController
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SuperdeskViewController(superdeskFlags, superdesk, $scope, $route, session, $timeout) {
setupFullWidthPage($scope);
$scope.session = session;
Function SuperdeskViewController
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function SuperdeskViewController(superdeskFlags, superdesk, $scope, $route, session, $timeout) {