devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,642 of 1,642 total issues

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

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                if (self.__indicatorY.transformProp !== translate3dY) {
                  self.__indicatorY.indicator.style[self.__transformProperty] = translate3dY;
                  self.__indicatorY.transformProp = translate3dY;
                }
          Severity: Major
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 1 hr to fix
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 5527..5530

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 61.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                top: computedStyle.overflowY === 'scroll' ||
                computedStyle.overflowY === 'auto' ||
                self.scrollEl.style['overflow-y'] === 'scroll' ?
                  calculateMaxValue(maxValues.top) : -1
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 5476..5479

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 61.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

            self.zoomTo = function(zoom, shouldAnimate, originLeft, originTop) {
              self.resize().then(function() {
                scrollView.zoomTo(zoom, !!shouldAnimate, originLeft, originTop);
              });
            };
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 7089..7093

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 61.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                left: computedStyle.overflowX === 'scroll' ||
                computedStyle.overflowX === 'auto' ||
                self.scrollEl.style['overflow-x'] === 'scroll' ?
                  calculateMaxValue(maxValues.left) : -1,
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 5480..5483

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 61.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

            self.zoomBy = function(zoom, shouldAnimate, originLeft, originTop) {
              self.resize().then(function() {
                scrollView.zoomBy(zoom, !!shouldAnimate, originLeft, originTop);
              });
            };
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 7083..7087

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 61.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                if (self.__indicatorX.transformProp !== translate3dX) {
                  self.__indicatorX.indicator.style[self.__transformProperty] = translate3dX;
                  self.__indicatorX.transformProp = translate3dX;
                }
          Severity: Major
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 1 hr to fix
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 5577..5580

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 61.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          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

                        Identical blocks of code found in 2 locations. Consider refactoring.
                        Open

                                        var currentSpan = distanceBetween( {
                                            x: event.touches[1].clientX,
                                            y: event.touches[1].clientY
                                        }, {
                                            x: touch.startX,
                        Severity: Major
                        Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 1 hr to fix
                        meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3651..3657

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 60.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                            if (self.__isDecelerating) {
                              zyngaCore.effect.Animate.stop(self.__isDecelerating);
                              self.__isDecelerating = false;
                              self.__interruptedAnimation = true;
                            }
                        Severity: Major
                        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 1 hr to fix
                        meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 6100..6104

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 60.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                            if (self.__isAnimating) {
                              zyngaCore.effect.Animate.stop(self.__isAnimating);
                              self.__isAnimating = false;
                              self.__interruptedAnimation = true;
                            }
                        Severity: Major
                        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 1 hr to fix
                        meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 6093..6097

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 60.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Severity
                        Category
                        Status
                        Source
                        Language