RLOpenCatalyst/core

View on GitHub

Showing 483 of 2,557 total issues

Function 31 has 184 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],31:[function(_dereq_,module,exports){
    (function (global){
        /*! http://mths.be/utf8js v2.0.0 by @mathias */
        ;(function(root) {

Severity: Major
Found in client/cat3/customlib/socket.io/socket.io.js - About 7 hrs to fix

    Function submit has 183 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    submit : function() {
                        var blueprintCreateJSON = {
                            templateComponents:'component0',
                            dockercontainerpathstitle: '',
                            dockerlaunchparameters: '',

      File discoveryResourcesCtrl.js has 466 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      (function (angular) {
          "use strict";
          angular.module('dashboard.analytics')
              .controller('discoveryResourcesCtrl', ['$scope', '$rootScope', '$state','analyticsServices', 'genericServices','$timeout','toastr','$modal','confirmbox', function ($scope,$rootScope,$state,analyticsServices,genSevs,$timeout,toastr,$modal,confirmbox){
                  var disResrc=this;

        Function 44 has 179 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{"./is-buffer":45,"isarray":46}],44:[function(_dereq_,module,exports){
        
            /**
             * Module dependencies.
             */
        Severity: Major
        Found in client/cat3/customlib/socket.io/socket.io.js - About 7 hrs to fix

          Function ok has 156 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          ok: function () {
                              //these values are common across all task types
                              var taskJSON={};
                              if($scope.checkBotType){
                                  taskJSON = {

            Function createList has 154 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        capRept.createList = function () {
                            capRept.filterValue='';
                            capRept.listGrid=[];
                            var fltrObj=$rootScope.filterNewEnt;
            
            

              Function init has 148 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          this.init = function(_ngModel) {
                              ngModel = _ngModel;
                              ngModelOptions = ngModel.$options || uiDatetimePickerConfig.ngModelOptions;
              
                              $scope.buttonBar = angular.isDefined($attrs.buttonBar) ? $scope.$parent.$eval($attrs.buttonBar) : uiDatetimePickerConfig.buttonBar;
              Severity: Major
              Found in client/cat3/customlib/datetime.js - About 5 hrs to fix

                File angular-toastr.tpls.js has 406 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                (function() {
                    'use strict';
                
                    angular.module('toastr', [])
                        .factory('toastr', toastr);
                Severity: Minor
                Found in client/cat3/src/partials/globals/toaster/angular-toastr.tpls.js - About 5 hrs to fix

                  Function routeConfig has 142 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function routeConfig($stateProvider, $urlRouterProvider, $httpProvider, modulePermissionProvider) {
                      "use strict";
                      var val = window.localStorage.getItem('catAuthToken');
                      var modulePerms = modulePermissionProvider.$get();
                      if (val) {
                  Severity: Major
                  Found in client/cat3/src/clientRoutes.js - About 5 hrs to fix

                    Function 18 has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    },{"./polling":18,"component-emitter":9,"component-inherit":21,"debug":22,"xmlhttprequest":20}],18:[function(_dereq_,module,exports){
                        /**
                         * Module dependencies.
                         */
                    
                    
                    Severity: Major
                    Found in client/cat3/customlib/socket.io/socket.io.js - About 5 hrs to fix

                      Function 16 has 128 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      },{"./polling-jsonp":16,"./polling-xhr":17,"./websocket":19,"xmlhttprequest":20}],16:[function(_dereq_,module,exports){
                          (function (global){
                      
                              /**
                               * Module requirements.
                      Severity: Major
                      Found in client/cat3/customlib/socket.io/socket.io.js - About 5 hrs to fix

                        Function refresh has 120 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            Terminal.prototype.refresh = function(start, end) {
                                var x
                                    , y
                                    , i
                                    , line
                        Severity: Major
                        Found in client/cat3/customlib/terminal/terminal.js - About 4 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                                              if (stringifySupported) {
                                                  // A test function object with a custom `toJSON` method.
                                                  (value = function () {
                                                      return 1;
                                                  }).toJSON = value;
                          Severity: Critical
                          Found in client/cat3/customlib/socket.io/socket.io.js - About 4 hrs to fix

                            Function initDates has 112 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    initDates: function ()
                                    {
                                        if (this.$element.val().length > 0)
                                        {
                                            if (typeof (this.params.format) !== 'undefined' && this.params.format !== null)

                              Function controller has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                     controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
                                       var ctrl = this;
                                       var latestKey = 0;
                              
                                       var messages = this.messages = {};
                              Severity: Major
                              Found in client/cat3/customlib/angular-messages.js - About 4 hrs to fix

                                File applicationCtrl.js has 351 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,
                                 * Aug 2015

                                  File instanceServices.js has 350 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,
                                   * Aug 2015
                                  Severity: Minor
                                  Found in client/cat3/src/factory/instanceServices.js - About 4 hrs to fix

                                    Function _notify has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function _notify(map) {
                                                var options = _getOptions();
                                    
                                                if (shouldExit()) { return; }
                                    
                                    
                                    Severity: Major
                                    Found in client/cat3/src/partials/globals/toaster/angular-toastr.tpls.js - About 4 hrs to fix

                                      Function dtPromiseRenderer has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function dtPromiseRenderer($q, $timeout, $log, DTRenderer, DTRendererService, DTInstanceFactory) {
                                          /**
                                           * Renderer for displaying with a promise
                                           * @param options the options
                                           * @returns {{options: *}} the renderer
                                      Severity: Major
                                      Found in client/cat3/customlib/angular-datatables.js - About 4 hrs to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                    if (placement[2]) {
                                                        var viewportOffset = this.viewportOffset(hostElem);
                                        
                                                        var targetElemStyle = $window.getComputedStyle(targetElem);
                                                        var adjustedSize = {
                                        Severity: Critical
                                        Found in client/cat3/customlib/datetime.js - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language