Showing 5,781 of 10,536 total issues

Function BaseLocationServices has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var BaseLocationServices = /** @class */ (function () {
        function BaseLocationServices(router, fireAfterUpdate) {
            var _this = this;
            this.fireAfterUpdate = fireAfterUpdate;
            this._listeners = [];
Severity: Minor
Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

    Function invokeHook has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            TransitionHook.prototype.invokeHook = function () {
                var _this = this;
                var hook = this.registeredHook;
                if (hook._deregistered)
                    return;
    Severity: Minor
    Found in myems-admin/js/ui-router/angular-ui-router.js - About 1 hr to fix

      Function getLengthInBits has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _this.getLengthInBits = function(mode, type) {
      
            if (1 <= type && type < 10) {
      
              // 1 - 9
      Severity: Minor
      Found in myems-admin/js/angular/qrcode.js - About 1 hr to fix

        Function encode64 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            value: function encode64(input) {
              var output = '';
              var chr1 = undefined;
              var chr2 = undefined;
              var chr3 = '';
        Severity: Minor
        Found in myems-admin/js/plugins/dropzone/dropzone.js - About 1 hr to fix

          Function emit has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              value: function emit(event) {
                this._callbacks = this._callbacks || {};
                var callbacks = this._callbacks[event];
          
                if (callbacks) {
          Severity: Minor
          Found in myems-admin/js/plugins/dropzone/dropzone.js - About 1 hr to fix

            Function strong_em has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function strong_em( tag, md ) {
            
                    var state_slot = tag + "_state",
                        other_slot = tag == "strong" ? "em_state" : "strong_state";
            
            
            Severity: Minor
            Found in myems-admin/js/plugins/bootstrap-markdown/markdown.js - About 1 hr to fix

              Function AgendaWeekView has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function AgendaWeekView(element, calendar) {
                      var t = this;
              
              
                      // exports
              Severity: Minor
              Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

                Function slatRowHtml has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    slatRowHtml: function() {
                        var view = this.view;
                        var calendar = view.calendar;
                        var isRTL = view.opt('isRTL');
                        var html = '';
                Severity: Minor
                Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

                  Function drag has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  drag: function(ev, ui) {
                  
                                      // NOTE: this `cell` value is only useful for determining in-bounds and all-day.
                                      // Bad for anything else due to the discrepancy between the mouse position and the
                                      // element position while snapping. (problem revealed in PR #55)
                  Severity: Minor
                  Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

                    Function checkElements has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var checkElements = function checkElements(elements) {
                          return function () {
                            var result = [];
                            var _iteratorNormalCompletion31 = true;
                            var _didIteratorError31 = false;
                    Severity: Minor
                    Found in myems-admin/js/plugins/dropzone/dropzone.js - About 1 hr to fix

                      Function renderMoreLink has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          renderMoreLink: function(cell, hiddenSegs) {
                              var _this = this;
                              var view = this.view;
                      
                              return $('<a class="fc-more"/>')
                      Severity: Minor
                      Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

                        Function BasicWeekView has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function BasicWeekView(element, calendar) {
                                var t = this;
                        
                        
                                // exports
                        Severity: Minor
                        Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

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

                                  }, r.init = function() {
                                      var a = e(t),
                                          i = e(r.table);
                                      if (t.footable.plugins.init(r), i.hasClass(d.loaded)) return r.raise(s.alreadyInitialized), undefined;
                                      r.raise(s.initializing), i.addClass(d.loading), i.find(l.columnDataSelector).each(function() {
                          Severity: Minor
                          Found in myems-admin/js/plugins/footable/footable.all.min.js - About 1 hr to fix

                            Function redraw has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    }, r.redraw = function() {
                                        r.addRowToggle(), r.bindToggleSelectors(), r.setColumnClasses();
                                        var t = e(r.table),
                                            a = t.data("breakpoint"),
                                            i = r.hasBreakpointColumn(a);
                            Severity: Minor
                            Found in myems-admin/js/plugins/footable/footable.all.min.js - About 1 hr to fix

                              Function getAllSpaces has 30 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: Minor
                              Found in myems-admin/app/controllers/users/privilege/privilege.controller.js - About 1 hr to fix

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

                                  Tab.prototype.show = function () {
                                    var $this    = this.element
                                    var $ul      = $this.closest('ul:not(.dropdown-menu)')
                                    var selector = $this.data('target')
                                
                                
                                Severity: Minor
                                Found in myems-admin/js/bootstrap/bootstrap.js - About 1 hr to fix

                                  Function getAllSpaces has 30 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: Minor
                                  Found in myems-admin/app/controllers/users/privilege/privilege.controller.js - About 1 hr to fix

                                    Function getAllSpaces has 30 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: Minor
                                    Found in myems-admin/app/controllers/settings/space/spacemeter.controller.js - About 1 hr to fix

                                      Function refreshMenuTree has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          $scope.refreshMenuTree = function () {
                                              let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
                                              MenuService.getAllMenus(headers, function (response) {
                                                  if (angular.isDefined(response.status) && response.status === 200) {
                                                      $scope.menus = response.data;
                                      Severity: Minor
                                      Found in myems-admin/app/controllers/settings/menu/menu.controller.js - About 1 hr to fix

                                        Function getAllSpaces has 30 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