devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 295 of 1,642 total issues

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

  ReorderDrag.prototype.drag = ionic.animationFrameThrottle(function(e) {
    // We really aren't dragging
    var self = this;
    if (!this._currentDrag) {
      return;
Severity: Minor
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

    Function RevealMath has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var RevealMath = window.RevealMath || (function(){
    
        var options = Reveal.getConfig().math || {};
        options.mathjax = options.mathjax || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js';
        options.config = options.config || 'TeX-AMS_HTML-full';
    Severity: Minor
    Found in meetups/meetup06-MobileDev/x-platform/plugin/math/math.js - About 1 hr to fix

      Function setupPDF has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function setupPDF() {
      
              var slideSize = getComputedSlideSize( window.innerWidth, window.innerHeight );
      
              // Dimensions of the PDF pages
      Severity: Minor
      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 1 hr to fix

        Function initDriverFn has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            return function initDriverFn(animationDetails) {
              if (animationDetails.from && animationDetails.to) {
                var fromAnimation = prepareAnimation(animationDetails.from);
                var toAnimation = prepareAnimation(animationDetails.to);
                if (!fromAnimation && !toAnimation) return;

          Function _checkPlatforms has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _checkPlatforms: function() {
                self.platforms = [];
                var grade = 'a';
          
                if (self.isWebView()) {
          Severity: Minor
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

            Function when has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              this.when = function (what, handler) {
                var redirect, handlerIsString = isString(handler);
                if (isString(what)) what = $urlMatcherFactory.compile(what);
            
                if (!handlerIsString && !isFunction(handler) && !isArray(handler))

              Function positionView has 33 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function positionView(target, popoverEle) {
                  var targetEle = jqLite(target.target || target);
                  var buttonOffset = $ionicPosition.offset(targetEle);
                  var popoverWidth = popoverEle.prop('offsetWidth');
                  var popoverHeight = popoverEle.prop('offsetHeight');
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

                Function loadAndCompile has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function loadAndCompile(options) {
                    options = extend({
                      template: '',
                      templateUrl: '',
                      scope: null,
                Severity: Minor
                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

                  Function cueAutoSlide has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function cueAutoSlide() {
                  
                          cancelAutoSlide();
                  
                          if( currentSlide ) {
                  Severity: Minor
                  Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 1 hr to fix

                    Function initialize has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        initialize: function(options) {
                          var self = this;
                          self.__container = self.el = options.el;
                          self.__content = options.el.firstElementChild;
                          self.isNative = true;
                    Severity: Minor
                    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

                      Function prelink has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              function prelink($scope, $element, $attr, ctrl) {
                                if (isHeader) {
                                  $scope.$watch(function() { return $element[0].className; }, function(value) {
                                    var isShown = value.indexOf('ng-hide') === -1;
                                    var isSubheader = value.indexOf('bar-subheader') !== -1;
                      Severity: Minor
                      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

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

                            start: function(e) {
                              var hitX = ionic.tap.pointerCoord(e).x;
                              if (hitX > 0 && hitX < 30) {
                                return;
                              }
                        Severity: Minor
                        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

                          Function isActiveScope has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              isActiveScope: function(scope) {
                                if (!scope) return false;
                          
                                var climbScope = scope;
                                var currentHistoryId = this.currentHistoryId();
                          Severity: Minor
                          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

                            Function createBackgrounds has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function createBackgrounds() {
                            
                                    var printMode = isPrintingPDF();
                            
                                    // Clear prior backgrounds
                            Severity: Minor
                            Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 1 hr to fix

                              Function packageAnimations has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                    function packageAnimations(element, event, options, animations, fnName) {
                                      var operations = groupEventedAnimations(element, event, options, animations, fnName);
                                      if (operations.length === 0) {
                                        var a,b;
                                        if (fnName === 'beforeSetClass') {

                                Function onRelease has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function onRelease(ev) {
                                      if (isPrimary && viewTransition && dragPoints && dragPoints.length > 1) {
                                
                                        var now = Date.now();
                                        var releaseX = getDragX(ev);
                                Severity: Minor
                                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

                                  Function openAmount has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    self.openAmount = function(amount) {
                                      var maxLeft = self.left && self.left.width || 0;
                                      var maxRight = self.right && self.right.width || 0;
                                  
                                      // Check if we can move to that side, depending if the left/right panel is enabled
                                  Severity: Minor
                                  Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

                                    Function transition has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          var transition = $state.transition = resolved.then(function () {
                                            var l, entering, exiting;
                                    
                                            if ($state.transition !== transition) return TransitionSuperseded;
                                    
                                    

                                      Function keyboardFocusIn has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function keyboardFocusIn(e) {
                                        clearTimeout(keyboardFocusOutTimer);
                                        //console.log("keyboardFocusIn from: " + e.type + " at: " + Date.now());
                                      
                                        if (!e.target ||
                                      Severity: Minor
                                      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

                                        Function snapToRest has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          self.snapToRest = function(e) {
                                            // We want to animate at the end of this
                                            self.content.enableAnimation();
                                            isDragging = false;
                                        
                                        
                                        Severity: Minor
                                        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language