Showing 5,781 of 10,536 total issues

Function MonthView has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function MonthView(element, calendar) {
        var t = this;


        // exports
Severity: Minor
Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

    Function highlightSkeletonHtml has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        highlightSkeletonHtml: function(start, end) {
            var view = this.view;
            var segs = this.rangeToSegs(start, end);
            var cellHtml = '';
            var col = 0;
    Severity: Minor
    Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

      Function formatRangeWithChunks has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function formatRangeWithChunks(date1, date2, chunks, separator, isRTL) {
          var chunkStr; // the rendering of the chunk
          var leftI;
          var leftStr = '';
          var rightI;
      Severity: Minor
      Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

        Function resizableSlotEvent has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function resizableSlotEvent(event, eventElement, timeElement) {
                    var snapDelta, prevSnapDelta;
                    var snapHeight = getSnapHeight();
                    var snapMinutes = getSnapMinutes();
                    eventElement.resizable({
        Severity: Minor
        Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

          Function drawLabel has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                              function drawLabel(slice, startAngle, index) {
          
                                  if (slice.data[0][1] == 0) {
                                      return true;
                                  }
          Severity: Minor
          Found in myems-admin/js/plugins/flot/jquery.flot.pie.js - About 1 hr to fix

            Function buildCalendar has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    buildCalendar: function (month, year, hour, minute, second, side) {
                        var daysInMonth = moment([year, month]).daysInMonth();
                        var firstDay = moment([year, month, 1]);
                        var lastDay = moment([year, month, daysInMonth]);
                        var lastMonth = moment(firstDay).subtract(1, 'month').month();
            Severity: Minor
            Found in myems-admin/js/plugins/daterangepicker/daterangepicker.js - About 1 hr to fix

              Function clickDate has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      clickDate: function (e) {
                          var title = $(e.target).attr('data-title');
                          var row = title.substr(1, 1);
                          var col = title.substr(3, 1);
                          var cal = $(e.target).parents('.calendar');
              Severity: Minor
              Found in myems-admin/js/plugins/daterangepicker/daterangepicker.js - About 1 hr to fix

                Function createNavigation has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        }, t.createNavigation = function(a) {
                            var i = e(a.table).find(a.pageInfo.pageNavigation);
                            if (0 === i.length) {
                                if (i = e(a.pageInfo.pageNavigation), i.parents("table:first").length > 0 && i.parents("table:first") !== e(a.table)) return;
                                i.length > 1 && a.options.debug === !0 && console.error("More than one pagination control was found!")
                Severity: Minor
                Found in myems-admin/js/plugins/footable/footable.all.min.js - About 1 hr to fix

                  Function updateTime has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          updateTime: function(e) {
                  
                              var cal = $(e.target).closest('.calendar'),
                                  isLeft = cal.hasClass('left');
                  
                  
                  Severity: Minor
                  Found in myems-admin/js/plugins/daterangepicker/daterangepicker.js - About 1 hr to fix

                    Function approveUser has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        $scope.approveUser = function (user) {
                            var modalInstance = $uibModal.open({
                                templateUrl: 'views/users/user/approve-user.html',
                                controller: 'ModalApproveUserCtrl',
                                windowClass: "animated fadeIn",
                    Severity: Minor
                    Found in myems-admin/app/controllers/users/user/user.controller.js - About 1 hr to fix

                      Function editSVG has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Function editWebMessage has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Function editPoint has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Function result_select has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    Chosen.prototype.result_select = function(evt) {
                                        var high, item;
                                        if (this.result_highlight) {
                                            high = this.result_highlight;
                                            this.result_clear_highlight();
                            Severity: Minor
                            Found in myems-admin/js/plugins/chosen/chosen.jquery.js - About 1 hr to fix

                              Function editRule has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Function deleteEquipmentParameter has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    $scope.deleteEquipmentParameter = function(equipmentparameter) {
                                        SweetAlert.swal({
                                                title: $translate.instant("SWEET.TITLE"),
                                                text: $translate.instant("SWEET.TEXT"),
                                                type: "warning",

                                  Function addGateway has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Function editAdvancedReport has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        $scope.editAdvancedReport = function(advancedReport) {
                                            var modalInstance = $uibModal.open({
                                                windowClass: "animated fadeIn",
                                                templateUrl: 'views/settings/advancedreport/advancedreport.model.html',
                                                controller: 'ModalEditAdvancedReportCtrl',

                                      Function show has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        Collapse.prototype.show = function () {
                                          if (this.transitioning || this.$element.hasClass('in')) return
                                      
                                          var activesData
                                          var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
                                      Severity: Minor
                                      Found in myems-admin/js/bootstrap/bootstrap.js - About 1 hr to fix

                                        Function resetPassword has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            $scope.resetPassword = function (user) {
                                                var modalInstance = $uibModal.open({
                                                    windowClass: "animated fadeIn",
                                                    templateUrl: 'views/users/user/reset-password.model.html',
                                                    controller: 'ModalResetPasswordCtrl',
                                        Severity: Minor
                                        Found in myems-admin/app/controllers/users/user/user.controller.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language