devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 295 of 1,637 total issues

Avoid deeply nested control flow statements.
Open

              if (climbScope.hasOwnProperty('$historyId')) {
                return true;
              }
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                for (y = 0; y < data[k][x].t; y++) {
                  createSvgElement(k, data[k][x].fn(y, spinnerName), ele, spinnerName);
                }
    Severity: Major
    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                if (forwardView && currentView.stateId !== forwardView.stateId &&
                   currentView.historyId === forwardView.historyId) {
                  // they navigated to a new view but the stack already has a forward view
                  // since its a new view remove any forwards that existed
                  tmp = getHistoryById(forwardView.historyId);
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

        Function start has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root) {
        Severity: Minor
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                    if (isArray(encoded)) {
                      result += map(encoded, encodeDashes).join("-");
                    } else {
                      result += encodeURIComponent(encoded);
                    }

            Consider simplifying this complex logical expression.
            Open

                if ((isBackShown && isNavBackShown && isBackEnabled) !== isBackElementShown) {
                  isBackElementShown = isBackShown && isNavBackShown && isBackEnabled;
                  ele = getEle(BACK_BUTTON);
                  ele && ele.classList[ isBackElementShown ? 'remove' : 'add' ](HIDE);
                }
            Severity: Major
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                      if ( !(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || element.attr('target')) ) {
                        // HACK: This is to allow ng-clicks to be processed before the transition is initiated:
                        var transition = $timeout(function() {
                          $state.go(ref.state, params, options);
                        });

                Consider simplifying this complex logical expression.
                Open

                    if (self.__isDragging) {
                        self.__decStopped = false;
                
                      // Compute move distance
                      var moveX = currentTouchLeft - self.__lastTouchLeft;
                Severity: Major
                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                        if (self.options.freeze || !self.__isDown ||
                          (!self.__isDown && e.defaultPrevented) ||
                          (e.target.tagName === 'TEXTAREA' && e.target.parentElement.querySelector(':focus')) ) {
                          return;
                        }
                  Severity: Major
                  Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                          if (!self.options.freeze && scrollParent === self.__container) {
                    
                            self.hintResize();
                            self.scrollBy(
                              (e.wheelDeltaX || e.deltaX || 0) / self.options.wheelDampen,
                    Severity: Major
                    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                        if (!("classList" in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined') {
                          Object.defineProperty(HTMLElement.prototype, 'classList', {
                            get: function() {
                              var self = this;
                              function update(fn) {
                      Severity: Major
                      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 40 mins to fix

                        Function postLink has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                          function postLink(scope, element, attr, scrollCtrl, transclude) {
                        Severity: Minor
                        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 35 mins to fix

                          Function addAttributes has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              function addAttributes( section, element, previousElement, separatorElementAttributes, separatorSectionAttributes ) {
                          Severity: Minor
                          Found in meetups/meetup06-MobileDev/x-platform/plugin/markdown/markdown.js - About 35 mins to fix

                            Function $get has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                   function($$jqLite,   $rootScope,   $injector,   $$AnimateRunner,   $$rAFScheduler) {

                              Function groupEventedAnimations has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                    function groupEventedAnimations(element, event, options, animations, fnName) {

                                Function executeAnimationFn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                      function executeAnimationFn(fn, element, event, options, onDone) {

                                  Function packageAnimations has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                        function packageAnimations(element, event, options, animations, fnName) {

                                    Function setDimensions has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                      setDimensions: function(clientWidth, clientHeight, contentWidth, contentHeight, continueScrolling) {
                                    Severity: Minor
                                    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 35 mins to fix

                                      Function scrollTo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                        scrollTo: function(left, top, animate, zoom, wasResize) {
                                      Severity: Minor
                                      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 35 mins to fix

                                        Function __publish has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                          __publish: function(left, top, zoom, animate, wasResize) {
                                        Severity: Minor
                                        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language