RLOpenCatalyst/core

View on GitHub

Showing 483 of 2,557 total issues

Function keySearch has 106 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Terminal.prototype.keySearch = function(ev, key) {
        if (key === '\x1b') {
            this.leaveSearch();
            return;
        }
Severity: Major
Found in client/cat3/customlib/terminal/terminal.js - About 4 hrs to fix

    Function 19 has 105 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{"../transport":14,"component-inherit":21,"debug":22,"engine.io-parser":25,"parseqs":33,"xmlhttprequest":20}],19:[function(_dereq_,module,exports){
        /**
         * Module dependencies.
         */
    
    
    Severity: Major
    Found in client/cat3/customlib/socket.io/socket.io.js - About 4 hrs to fix

      Function Terminal has 105 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function Terminal(options) {
              var self = this;
      
              if (!(this instanceof Terminal)) {
                  return new Terminal(arguments[0], arguments[1], arguments[2]);
      Severity: Major
      Found in client/cat3/customlib/terminal/terminal.js - About 4 hrs to fix

        File capacityReportCtrl.js has 341 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        (function (angular) {
            "use strict";
            angular.module('dashboard.analytics')
                .controller('capacityReportCtrl', ['$scope', '$rootScope', '$state','analyticsServices', 'genericServices','$timeout','$location', '$anchorScroll','$modal',function ($scope,$rootScope,$state,analyticsServices,genSevs,$timeout,$location, $anchorScroll,$modal){
                    $rootScope.stateItems = $state.params;

          Function lex has 104 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          var lex = function () {
                              var source = Source, length = source.length, value, begin, position, isSigned, charCode;
                              while (Index < length) {
                                  charCode = source.charCodeAt(Index);
                                  switch (charCode) {
          Severity: Major
          Found in client/cat3/customlib/socket.io/socket.io.js - About 4 hrs to fix

            Function create has 104 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function create(options) {
                    var _oTable;
                    var _loadedPromise = null;
                    var _$elem;
            
            
            Severity: Major
            Found in client/cat3/customlib/angular-datatables.js - About 4 hrs to fix

              Function $get has 99 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                        function ($injector, $rootScope, $q, $templateRequest, $controller, $modalStack) {
                          var $modal = {};
              
                          function getTemplatePromise(options) {
                            return options.template ? $q.when(options.template) :
              Severity: Major
              Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js - About 3 hrs to fix

                Function dataTable has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function dataTable($q, $http, DTRendererFactory, DTRendererService, DTPropertyUtil) {
                    compileDirective.$inject = ['tElm'];
                    ControllerDirective.$inject = ['$scope'];
                    return {
                        restrict: 'A',
                Severity: Major
                Found in client/cat3/customlib/angular-datatables.js - About 3 hrs to fix

                  Function $get has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  function ($injector, $rootScope, $q, $templateRequest, $controller, $modalStack) {
                                      var $modal = {};
                  
                                      function getTemplatePromise(options) {
                                          return options.template ? $q.when(options.template) :
                  Severity: Major
                  Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 3 hrs to fix

                    File chefDataFormatterService.js has 320 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /* Copyright (C) Relevance Lab Private Limited- All Rights Reserved
                     * Unauthorized copying of this file, via any medium is strictly prohibited
                     * Proprietary and confidential
                     * Written by Relevance UI Team,
                     * Feb 2016
                    Severity: Minor
                    Found in client/cat3/src/factory/chefDataFormatterService.js - About 3 hrs to fix

                      Function 43 has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      },{}],43:[function(_dereq_,module,exports){
                          (function (global){
                              /*global Blob,File*/
                      
                              /**
                      Severity: Major
                      Found in client/cat3/customlib/socket.io/socket.io.js - About 3 hrs to fix

                        Function 23 has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        },{"./debug":23}],23:[function(_dereq_,module,exports){
                        
                            /**
                             * This is the common logic for both the Node.js and web browser
                             * implementations of `debug()`.
                        Severity: Major
                        Found in client/cat3/customlib/socket.io/socket.io.js - About 3 hrs to fix

                          Function setMode has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              Terminal.prototype.setMode = function(params) {
                                  if (typeof params === 'object') {
                                      var l = params.length
                                          , i = 0;
                          
                          
                          Severity: Major
                          Found in client/cat3/customlib/terminal/terminal.js - About 3 hrs to fix

                            Function selectText has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                Terminal.prototype.selectText = function(x1, x2, y1, y2) {
                                    var ox1
                                        , ox2
                                        , oy1
                                        , oy2
                            Severity: Major
                            Found in client/cat3/customlib/terminal/terminal.js - About 3 hrs to fix

                              File capacityCtrl.js has 313 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              (function (angular) {
                                  "use strict";
                                  angular.module('dashboard.analytics')
                                      .controller('capacityCtrl', ['$scope', '$rootScope', '$state','analyticsServices', 'genericServices','$timeout', function ($scope,$rootScope,$state,analyticsServices,genSevs,$timeout){
                                          $rootScope.stateItems = $state.params;

                                File costCtrl.js has 312 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                (function (angular) {
                                    "use strict";
                                    angular.module('dashboard.analytics')
                                        .controller('costCtrl', ['$scope', '$rootScope', '$state','analyticsServices', 'genericServices','$timeout', function ($scope,$rootScope,$state,analyticsServices,genSevs,$timeout){
                                        $rootScope.stateItems = $state.params;

                                  Function charAttributes has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      Terminal.prototype.charAttributes = function(params) {
                                          // Optimize a single SGR0.
                                          if (params.length === 1 && params[0] === 0) {
                                              this.curAttr = this.defAttr;
                                              return;
                                  Severity: Major
                                  Found in client/cat3/customlib/terminal/terminal.js - About 3 hrs to fix

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

                                            link: function(scope, element, attrs, ctrl) {
                                              scope.showWeeks = ctrl.showWeeks;
                                    
                                              ctrl.step = { months: 1 };
                                              ctrl.element = element;
                                    Severity: Major
                                    Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js - About 3 hrs to fix

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

                                                  link: function(scope, element, attrs, ctrl) {
                                                      scope.showWeeks = ctrl.showWeeks;
                                      
                                                      ctrl.step = { months: 1 };
                                                      ctrl.element = element;
                                      Severity: Major
                                      Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 3 hrs to fix

                                        File editParamsCtrl.js has 309 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        /* Copyright (C) Relevance Lab Private Limited- All Rights Reserved
                                         * Unauthorized copying of this file, via any medium is strictly prohibited
                                         * Proprietary and confidential
                                         * Written by Relevance UI Team,
                                         * Oct 2016
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language