devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,642 of 1,642 total issues

Function link has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    link: function(scope, element, attrs, uiSrefActive) {
      var ref = parseStateRef(attrs.uiSref, $state.current.name);
      var params = null, url = null, base = stateContext(element) || $state.$current;
      var newHref = null, isAnchor = element.prop("tagName") === "A";
      var isForm = element[0].nodeName === "FORM";

    Function headerFooterBarDirective has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function headerFooterBarDirective(isHeader) {
      return ['$document', '$timeout', function($document, $timeout) {
        return {
          restrict: 'E',
          controller: '$ionicHeaderBar',
    Severity: Minor
    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

      Function bindDomOnTouch has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            this.bindDom(element, ionic.Gestures.EVENT_TYPES[eventType], function bindDomOnTouch(ev) {
              var sourceEventType = ev.type.toLowerCase();
      
              // onmouseup, but when touchend has been fired we do nothing.
              // this is for touchdevices which also fire a mouseup on touchend
      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

          function freezeAllScrolls(shouldFreeze) {
            if (shouldFreeze && !self.isScrollFreeze) {
              $ionicScrollDelegate.freezeAllScrolls(shouldFreeze);
        
            } else if (!shouldFreeze && self.isScrollFreeze) {
        meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 12507..12515

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

        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 freezeAllScrolls(shouldFreeze) {
                if (shouldFreeze && !_this.isScrollFreeze) {
                  $ionicScrollDelegate.freezeAllScrolls(shouldFreeze);
        
                } else if (!shouldFreeze && _this.isScrollFreeze) {
        meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 7305..7313

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

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

            function showSlide( slide ) {
        
                // Show the slide element
                slide.style.display = 'block';
        
        
        Severity: Minor
        Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 1 hr to fix

          Function $$AnimateJsDriverProvider has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var $$AnimateJsDriverProvider = ['$$animationProvider', function($$animationProvider) {
            $$animationProvider.drivers.push('$$animateJsDriver');
            this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
              return function initDriverFn(animationDetails) {
                if (animationDetails.from && animationDetails.to) {

            Function __startDeceleration has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              __startDeceleration: function() {
                var self = this;
            
                if (self.options.paging) {
            
            
            Severity: Minor
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix

              Function refreshLayout has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  this.refreshLayout = function() {
                    if (data.length) {
                      estimatedHeight = heightGetter(0, data[0]);
                      estimatedWidth = widthGetter(0, data[0]);
                    } else {
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 1 hr to fix

                Function resolveElementClasses has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function resolveElementClasses(existing, toAdd, toRemove) {
                  var ADD_CLASS = 1;
                  var REMOVE_CLASS = -1;
                
                  var flags = {};

                  Function setUrlParams has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          setUrlParams: function(config, params, actionUrl) {
                            var self = this,
                              url = actionUrl || self.template,
                              val,
                              encodedVal;

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

                          if (direction == 'in') {
                            if (self.__indicatorX) { self.__indicatorX.indicator.classList.remove(className); }
                            if (self.__indicatorY) { self.__indicatorY.indicator.classList.remove(className); }
                          } else {
                    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 5600..5603

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

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

                          function prelink($scope, $element, $attr) {
                            $ionicBind($scope, $attr, {
                              direction: '@',
                              paging: '@',
                              $onScroll: '&onScroll',
                    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

                              self.__scrollbarFadeTimeout = setTimeout(function() {
                                if (self.__indicatorX) { self.__indicatorX.indicator.classList.add(className); }
                                if (self.__indicatorY) { self.__indicatorY.indicator.classList.add(className); }
                              }, delay || self.options.scrollbarFadeDelay);
                      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 5596..5599

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

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

                      Type.prototype.$asArray = function(mode, isSearch) {
                        if (!mode) return this;
                        if (mode === "auto" && !isSearch) throw new Error("'auto' array mode is for query parameters only");
                        return new ArrayType(this, mode);
                      
                      

                        Function doTouchStart has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          doTouchStart: function(touches, timeStamp) {
                            var self = this;
                        
                            // remember if the deceleration was just stopped
                            self.__decStopped = !!(self.__isDecelerating || self.__isAnimating);
                        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

                            __waitForSize: function() {
                              var self = this;
                          
                              clearTimeout(self.__sizerTimeout);
                          
                          
                          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 7128..7139

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

                          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

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

                              __waitForSize: function() {
                                var self = this;
                          
                                clearTimeout(self.__sizerTimeout);
                          
                          
                          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 6606..6617

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

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

                          function htmlSanitizeWriter(buf, uriValidator) {
                            var ignore = false;
                            var out = angular.bind(buf, buf.push);
                            return {
                              start: function(tag, attrs, unary) {

                            Function $get has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
                                return function initDriverFn(animationDetails) {
                                  if (animationDetails.from && animationDetails.to) {
                                    var fromAnimation = prepareAnimation(animationDetails.from);
                                    var toAnimation = prepareAnimation(animationDetails.to);
                              Severity
                              Category
                              Status
                              Source
                              Language