Showing 5,781 of 10,536 total issues

Function start has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        start: function() {
          var runner;

          var currentAnimation = startingAnimator.start();
          currentAnimation.done(function() {
Severity: Minor
Found in myems-admin/js/angular/angular-animate.js - About 1 hr to fix

    Function thumbnail has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            thumbnail: function thumbnail(file, dataUrl) {
              if (file.previewElement) {
                file.previewElement.classList.remove("dz-file-preview");
                var _iteratorNormalCompletion6 = true;
                var _didIteratorError6 = false;
    Severity: Minor
    Found in myems-admin/js/plugins/dropzone/dropzone.js - About 1 hr to fix

      Function _carve has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              this._carve = function() {
                  if(this.relative) {
                      var w = this.relativeWidth ?
                              this.$div.parent().width() *
                                  parseInt(this.o.width) / 100 :
      Severity: Minor
      Found in myems-admin/js/plugins/jsKnob/jquery.knob.js - About 1 hr to fix

        Function slotSelectionMousedown has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function slotSelectionMousedown(ev) {
                    if (ev.which == 1 && opt('selectable')) { // ev.which==1 means left mouse button
                        unselect(ev);
                        var dates;
                        hoverListener.start(function(cell, origCell) {
        Severity: Minor
        Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

          Function success has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  success: function(data) {
                      var events = [];
                      if (data.feed.entry) {
                          $.each(data.feed.entry, function(i, entry) {
          
          
          Severity: Minor
          Found in myems-admin/js/plugins/fullcalendar/gcal.js - About 1 hr to fix

            Function rangeToSegments has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function rangeToSegments(start, end) {
            
                    var rowCnt = t.rowCnt;
                    var colCnt = t.colCnt;
                    var segments = []; // array of segments to return
            Severity: Minor
            Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

              Function getHtmlRenderer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  getHtmlRenderer: function(rendererName, rowType) {
                      var view = this.view;
                      var generalName; // like "cellHtml"
                      var specificName; // like "dayCellHtml". based on rowType
                      var provider; // either the View or the RowRenderer subclass, whichever provided the method
              Severity: Minor
              Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

                Function renderEventTable has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    renderEventTable: function(events) {
                        var tableEl = $('<table><tr/></table>');
                        var trEl = tableEl.find('tr');
                        var segs = this.eventsToSegs(events);
                        var segCols;
                Severity: Minor
                Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

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

                                  link: function (scope, element, attrs, ctrl) {
                                      if (!ctrl) {
                                          return;
                                      }
                  
                  
                  Severity: Minor
                  Found in myems-admin/js/plugins/uiMask/masks.js - About 1 hr to fix

                    Function getTicks has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      getTicks: function(){
                        var m = 5,
                            extent = [this.clearMinValue, this.clearMaxValue],
                            span = extent[1] - extent[0],
                            step = Math.pow(10, Math.floor(Math.log(span / m) / Math.LN10)),
                    Severity: Minor
                    Found in myems-admin/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js - About 1 hr to fix

                      Function result_add_option has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              AbstractChosen.prototype.result_add_option = function(option) {
                                  var classes, option_el;
                                  if (!option.search_match) {
                                      return '';
                                  }
                      Severity: Minor
                      Found in myems-admin/js/plugins/chosen/chosen.jquery.js - About 1 hr to fix

                        Function addCommand has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            $scope.addCommand = function() {
                                var modalInstance = $uibModal.open({
                                    templateUrl: 'views/settings/command/command.model.html',
                                    controller: 'ModalAddCommandCtrl',
                                    windowClass: "animated fadeIn",
                        Severity: Minor
                        Found in myems-admin/app/controllers/settings/command/command.controller.js - About 1 hr to fix

                          Function addPoint has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              $scope.addPoint = function() {
                                  var modalInstance = $uibModal.open({
                                      templateUrl: 'views/settings/datasource/point.model.html',
                                      controller: 'ModalAddPointCtrl',
                                      windowClass: "animated fadeIn",
                          Severity: Minor
                          Found in myems-admin/app/controllers/settings/datasource/point.controller.js - About 1 hr to fix

                            Function updateLayout has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                      a.updateLayout = function(b) {
                                        // m.append(w.$tw);
                                        // w.s1t(w.twp);
                                        b = !0;
                                        for (var c = m.parent(); "body" != c[0].tagName.toLowerCase(); ) {
                            Severity: Minor
                            Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                              Function sanitizeHtml has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) {
                                  if (unsafeHtml.length === 0) {
                                    return unsafeHtml
                                  }
                              
                              
                              Severity: Minor
                              Found in myems-admin/js/bootstrap/bootstrap.js - About 1 hr to fix

                                Function addSVG has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    $scope.addSVG = function() {
                                        var modalInstance = $uibModal.open({
                                            templateUrl: 'views/settings/svg/svg.model.html',
                                            controller: 'ModalAddSVGCtrl',
                                            windowClass: "animated fadeIn",
                                Severity: Minor
                                Found in myems-admin/app/controllers/settings/svg/svg.controller.js - About 1 hr to fix

                                  Function getAllSpaces has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      $scope.getAllSpaces = function() {
                                      let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
                                      SpaceService.getAllSpaces(headers, function (response) {
                                        if (angular.isDefined(response.status) && response.status === 200) {
                                            $scope.spaces = response.data;

                                    Function getAllSpaces has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        $scope.getAllSpaces = function() {
                                        let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
                                        SpaceService.getAllSpaces(headers, function (response) {
                                          if (angular.isDefined(response.status) && response.status === 200) {
                                            $scope.spaces = response.data;

                                      Function getAllSpaces has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          $scope.getAllSpaces = function() {
                                          let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
                                          SpaceService.getAllSpaces(headers, function (response) {
                                            if (angular.isDefined(response.status) && response.status === 200) {
                                              $scope.spaces = response.data;

                                        Function getAllSpaces has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            $scope.getAllSpaces = function() {
                                              let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
                                              SpaceService.getAllSpaces(headers, function (response) {
                                                if (angular.isDefined(response.status) && response.status === 200) {
                                                  $scope.spaces = response.data;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language