sahat/satellizer

View on GitHub

Showing 562 of 562 total issues

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 examples/ionic/www/lib/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 && !_this.isScrollFreeze) {
              $ionicScrollDelegate.freezeAllScrolls(shouldFreeze);
    
            } else if (!shouldFreeze && _this.isScrollFreeze) {
    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 7243..7251

    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 && !self.isScrollFreeze) {
          $ionicScrollDelegate.freezeAllScrolls(shouldFreeze);
    
        } else if (!shouldFreeze && self.isScrollFreeze) {
    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 12401..12409

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

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

            function animateSetup(animationEvent, element, className, styles) {
              var structural = ['ng-enter','ng-leave','ng-move'].indexOf(className) >= 0;
      
              var cacheKey = getCacheKey(element);
              var eventCacheKey = cacheKey + ' ' + className;
      Severity: Minor
      Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 1 hr to fix

        Method google has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function google(Request $request)
            {
                $client = new GuzzleHttp\Client();
        
                $params = [
        Severity: Minor
        Found in examples/server/php/app/Http/Controllers/AuthController.php - About 1 hr to fix

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

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

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

                Method github has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function github(Request $request)
                    {
                        $client = new GuzzleHttp\Client();
                
                        $params = [
                Severity: Minor
                Found in examples/server/php/app/Http/Controllers/AuthController.php - 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 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 5586..5589

                  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

                  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 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 5590..5593

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

                    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 examples/ionic/www/lib/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 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 6596..6607

                      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 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 7117..7128

                      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

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

                          params = {
                              'client_id': request.json['clientId'],
                              'redirect_uri': request.json['redirectUri'],
                              'client_secret': app.config['FACEBOOK_SECRET'],
                              'code': request.json['code']
                      Severity: Major
                      Found in examples/server/python/app.py and 1 other location - About 1 hr to fix
                      examples/server/python/app.py on lines 209..213

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

                      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

                          params = {
                              'client_id': request.json['clientId'],
                              'redirect_uri': request.json['redirectUri'],
                              'client_secret': app.config['GITHUB_SECRET'],
                              'code': request.json['code']
                      Severity: Major
                      Found in examples/server/python/app.py and 1 other location - About 1 hr to fix
                      examples/server/python/app.py on lines 155..159

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

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

                          compile: function(element, attr) {
                            var input = element.find('input');
                            forEach({
                              'name': attr.name,
                              'ng-value': attr.ngValue,
                      Severity: Minor
                      Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 1 hr to fix

                        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) {
                        Severity: Minor
                        Found in examples/ionic/www/lib/ionic/js/angular/angular-sanitize.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language