devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,642 of 1,642 total issues

Function touchmove has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      touchmove: function(event) {

        // ensure swiping with one touch and not pinching
        // ensure sliding is enabled
        if (event.touches.length > 1 ||
Severity: Minor
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

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

      self.updatePositions = function(titleEle, updateTitleLeft, updateTitleRight, buttonsLeft, buttonsRight, updateCss, showPreviousTitle) {
        var deferred = $q.defer();
    
        // only make DOM updates when there are actual changes
        if (titleEle) {
    Severity: Minor
    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

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

              fn: function(i) {
                return {
                  x1: 10 + (i * 14),
                  x2: 10 + (i * 14),
                  a: [{
      Severity: Minor
      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

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

            android: function(ele) {
              var rIndex = 0;
              var rotateCircle = 0;
              var startTime;
              var svgEle = ele.querySelector('g');
        Severity: Minor
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

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

          function tapScrollToTopDirective() {
            return ['$ionicScrollDelegate', function($ionicScrollDelegate) {
              return {
                restrict: 'E',
                link: function($scope, $element, $attr) {
          Severity: Minor
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

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

                    if (self.__indicatorY.originProp !== 'center top') {
                      self.__indicatorY.indicator.style[self.__transformOriginProperty] = 'center top';
                      self.__indicatorY.originProp = 'center top';
                    }
            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 5563..5566

            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 63.

            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

                function togglePause( override ) {
            
                    if( typeof override === 'boolean' ) {
                        override ? pause() : resume();
                    }
            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 1750..1759

            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 63.

            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 end has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              SlideDrag.prototype.end = function(e, doneCallback) {
                var self = this;
            
                // There is no drag, just end immediately
                if (!self._currentDrag) {
            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.originProp !== 'center bottom') {
                        self.__indicatorY.indicator.style[self.__transformOriginProperty] = 'center bottom';
                        self.__indicatorY.originProp = 'center bottom';
                      }
              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 5550..5553

              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 63.

              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

                  function toggleOverview( override ) {
              
                      if( typeof override === 'boolean' ) {
                          override ? activateOverview() : deactivateOverview();
                      }
              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 1850..1859

              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 63.

              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 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))

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

                                  widthScale = Math.max(self.__indicatorX.minScale,
                                      (self.__indicatorX.size - Math.abs(self.__scrollLeft)) / self.__indicatorX.size);
                          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 5544..5544

                          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 62.

                          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

                                  heightScale = Math.max(self.__indicatorY.minScale, (self.__indicatorY.size - Math.abs(self.__scrollTop)) / self.__indicatorY.size);
                          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 5499..5500

                          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 62.

                          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 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
                              Severity
                              Category
                              Status
                              Source
                              Language