sahat/satellizer

View on GitHub

Showing 562 of 562 total issues

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 examples/ionic/www/lib/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 examples/ionic/www/lib/ionic/js/ionic-angular.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))
      Severity: Minor
      Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 1 hr to fix

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

                  Oauth2.open = function(options, userData) {
                    defaults = utils.merge(options, defaults);
                    var defer = $q.defer();
        
                    $timeout(function () {
        Severity: Minor
        Found in examples/ionic/www/lib/satellizer/satellizer.js - About 1 hr to fix

          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 examples/ionic/www/lib/ionic/js/ionic.js - About 1 hr to fix

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

                  function getElementAnimationDetails(element, cacheKey) {
                    var data = cacheKey ? lookupCache[cacheKey] : null;
                    if (!data) {
                      var transitionDuration = 0;
                      var transitionDelay = 0;
            Severity: Minor
            Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 1 hr to fix

              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 examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 1 hr to fix
              examples/ionic/www/lib/ionic/js/ionic.js on lines 5534..5534

              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 examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 1 hr to fix
              examples/ionic/www/lib/ionic/js/ionic.js on lines 5489..5490

              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 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 examples/ionic/www/lib/ionic/js/ionic-angular.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 examples/ionic/www/lib/ionic/js/ionic.js - About 1 hr to fix

                  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 examples/ionic/www/lib/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 examples/ionic/www/lib/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 examples/ionic/www/lib/ionic/js/ionic.js - About 1 hr to fix

                        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 examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 1 hr to fix
                        examples/ionic/www/lib/ionic/js/ionic.js on lines 5567..5570

                        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,
                        Severity: Major
                        Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 1 hr to fix
                        examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 5425..5428

                        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
                        Severity: Major
                        Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 1 hr to fix
                        examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 5421..5424

                        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);
                            });
                          };
                        Severity: Major
                        Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 1 hr to fix
                        examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 7028..7032

                        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);
                            });
                          };
                        Severity: Major
                        Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 1 hr to fix
                        examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 7034..7038

                        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.__indicatorY.transformProp !== translate3dY) {
                                self.__indicatorY.indicator.style[self.__transformProperty] = translate3dY;
                                self.__indicatorY.transformProp = translate3dY;
                              }
                        Severity: Major
                        Found in examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 1 hr to fix
                        examples/ionic/www/lib/ionic/js/ionic.js on lines 5517..5520

                        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 examples/ionic/www/lib/ionic/js/ionic-angular.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language