Showing 5,781 of 10,536 total issues

Function $$rAFSchedulerFactory has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) {
  var queue, cancelFn;

  function scheduler(tasks) {
    // we make a copy since RAFScheduler mutates the state
Severity: Minor
Found in myems-admin/js/angular/angular-animate.js - About 1 hr to fix

    Function $$cleanup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      module.$$cleanup = function() {
        var injector = currentSpec.$injector;
    
        annotatedFunctions.forEach(function(fn) {
          delete fn.$inject;
    Severity: Minor
    Found in myems-admin/js/angular/angular-mocks.js - About 1 hr to fix

      Function MessageFormatParser has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function MessageFormatParser(text, startIndex, $parse, pluralCat, stringifier,
                                   mustHaveExpression, trustedContext, allOrNothing) {
        this.text = text;
        this.index = startIndex || 0;
        this.$parse = $parse;
      Severity: Minor
      Found in myems-admin/js/angular/angular-message-format.js - About 1 hr to fix

        Function $CookiesProvider has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

           provider('$cookies', [/** @this */function $CookiesProvider() {
            /**
             * @ngdoc property
             * @name $cookiesProvider#defaults
             * @description
        Severity: Minor
        Found in myems-admin/js/angular/angular-cookies.js - About 1 hr to fix

          Function toParsedFn has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          InterpolationParts.prototype.toParsedFn = function toParsedFn(mustHaveExpression, originalText) {
            var self = this;
            this.flushPartialText();
            if (mustHaveExpression && this.expressionFns.length === 0) {
              return undefined;
          Severity: Minor
          Found in myems-admin/js/angular/angular-message-format.js - About 1 hr to fix

            Function minErr has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function minErr(module, ErrorConstructor) {
              ErrorConstructor = ErrorConstructor || Error;
            
              var url = 'https://errors.angularjs.org/1.8.3/';
              var regex = url.replace('.', '\\.') + '[\\s\\S]*';
            Severity: Minor
            Found in myems-admin/js/angular/angular-loader.js - About 1 hr to fix

              Function ready has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    ready: function (callback, thisArg) {
                      if (typeof $window.Highcharts !== 'undefined' || !lazyload) {
                        callback();
                      } else {
                        readyQueue.push([callback, thisArg]);
              Severity: Minor
              Found in myems-admin/js/angular-highcharts/highcharts-ng.js - About 1 hr to fix

                Function stop has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    stop: function(shouldRevert, callback) {
                        var _this = this;
                        var revertDuration = this.options.revertDuration;
                
                        function complete() {
                Severity: Minor
                Found in myems-admin/js/plugins/fullcalendar/fullcalendar.js - About 1 hr to fix

                  Function daySelectionMousedown has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          function daySelectionMousedown(ev) { // not really a generic manager method, oh well
                              var cellToDate = t.cellToDate;
                              var getIsCellAllDay = t.getIsCellAllDay;
                              var hoverListener = t.getHoverListener();
                              var reportDayClick = t.reportDayClick; // this is hacky and sort of weird
                  Severity: Minor
                  Found in myems-admin/js/plugins/fullcalendar/fullcalendar.min.js - About 1 hr to fix

                    Function detectVerticalSquash has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var detectVerticalSquash = function detectVerticalSquash(img) {
                      var iw = img.naturalWidth;
                      var ih = img.naturalHeight;
                      var canvas = document.createElement("canvas");
                      canvas.width = 1;
                    Severity: Minor
                    Found in myems-admin/js/plugins/dropzone/dropzone.js - About 1 hr to fix

                      Function getTextLayer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          Canvas.prototype.getTextLayer = function(classes) {
                      
                              var layer = this.text[classes];
                      
                              // Create the text layer if it doesn't exist
                      Severity: Minor
                      Found in myems-admin/js/plugins/flot/jquery.flot.js - About 1 hr to fix

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

                                                    callbacks.start = function(e, ui) {
                                                        if (opts['ui-floating'] === 'auto') {
                                                            // since the drag has started, the element will be
                                                            // absolutely positioned, so we check its siblings
                                                            var siblings = ui.item.siblings();
                        Severity: Minor
                        Found in myems-admin/js/plugins/ui-sortable/sortable.js - About 1 hr to fix

                          Function templatesLoader has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      $delegate.templatesLoader = function (paths, callback, params) {
                                          var promises = [],
                                              filesCache = $delegate._getFilesCache();
                          
                                          angular.forEach(paths, function (url) {
                          Severity: Minor
                          Found in myems-admin/js/plugins/oclazyload/ocLazyLoad.js - About 1 hr to fix

                            Function updateCalendars has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    updateCalendars: function () {
                                        this.leftCalendar.calendar = this.buildCalendar(this.leftCalendar.month.month(), this.leftCalendar.month.year(), this.leftCalendar.month.hour(), this.leftCalendar.month.minute(), this.leftCalendar.month.second(), 'left');
                                        this.rightCalendar.calendar = this.buildCalendar(this.rightCalendar.month.month(), this.rightCalendar.month.year(), this.rightCalendar.month.hour(), this.rightCalendar.month.minute(), this.rightCalendar.month.second(), 'right');
                                        this.container.find('.calendar.left').empty().html(this.renderCalendar(this.leftCalendar.calendar, this.startDate, this.minDate, this.maxDate, 'left'));
                                        this.container.find('.calendar.right').empty().html(this.renderCalendar(this.rightCalendar.calendar, this.endDate, this.singleDatePicker ? this.minDate : this.startDate, this.maxDate, 'right'));
                            Severity: Minor
                            Found in myems-admin/js/plugins/daterangepicker/daterangepicker.js - About 1 hr to fix

                              Function La has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      La = function(a, c, u, e) {
                                        if (!a[b.options.dataFields.items])
                                          return (u = za(a, c + b.options.indent, u, e));
                                        if ((u = za(a, c + b.options.indent, u, e))) {
                                          e = 0;
                              Severity: Minor
                              Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                                Function applySorting has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      this.applySorting = function(a) {
                                        a &&
                                          (b.sortComparer
                                            ? a.sort(b.sortComparer)
                                            : b.isSortingAllowed() &&
                                Severity: Minor
                                Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                                  Function updateSelectionStatus has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        this.updateSelectionStatus = function(a) {
                                          switch (a) {
                                            case "shift":
                                              switch (b.options.selectionMode) {
                                                case "multi-simple":
                                  Severity: Minor
                                  Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                                    Function getElemFromItem has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                              a.getElemFromItem = function(b) {
                                                var c = null;
                                                if (b) {
                                                  var d = a.getItemCurrentIndex(b);
                                                  switch (b[a.options.dataFields.fixed]) {
                                    Severity: Minor
                                    Found in myems-admin/js/jcui/angular.integralui.treeview.min.js - About 1 hr to fix

                                      Function ChatSidebar has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      const ChatSidebar = () => {
                                        const { isRTL } = useContext(AppContext);
                                        const { threads } = useContext(ChatContext);
                                      
                                        return (
                                      Severity: Minor
                                      Found in myems-web/src/components/chat/sidebar/ChatSidebar.js - About 1 hr to fix

                                        Function deps has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                                        function ($ocLazyLoad) {
                                                                            return $ocLazyLoad.load(['ui.select', 'ui.checkbox', 'toaster']).then(
                                                                                function () {
                                                                                    return $ocLazyLoad.load([{
                                                                                        files: ['js/plugins/sweetalert/sweetalert.min.js', 'css/plugins/sweetalert/sweetalert.css']
                                        Severity: Minor
                                        Found in myems-admin/app/config.router.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language