sahat/satellizer

View on GitHub

Showing 562 of 562 total issues

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

          if (exiting.self.onExit) {
            $injector.invoke(exiting.self.onExit, exiting.self, exiting.locals.globals);
          }
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js and 1 other location - About 40 mins to fix
examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js on lines 3182..3184

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

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

        var currentTime = Date.now(),
          time = Math.min(1, ((currentTime - start) / duration)),
          // where .5 would be 50% of time on a linear scale easedT gives a
          // fraction based on the easing method
          easedT = easeOutCubic(time);
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 40 mins to fix
examples/ionic/www/lib/ionic/js/ionic.js on lines 7079..7083

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

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

    ionic.Gestures.event.onTouch(ionic.Gestures.DOCUMENT, ionic.Gestures.EVENT_END, ionic.Gestures.detection.detect);
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 40 mins to fix
examples/ionic/www/lib/ionic/js/ionic.js on lines 696..696

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

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

          var currentTime = Date.now(),
            time = Math.min(1, ((currentTime - start) / duration)),
          // where .5 would be 50% of time on a linear scale easedT gives a
          // fraction based on the easing method
            easedT = easeOutCubic(time);
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 40 mins to fix
examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 6794..6798

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

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 (entering.self.onEnter) {
            $injector.invoke(entering.self.onEnter, entering.self, entering.locals.globals);
          }
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js and 1 other location - About 40 mins to fix
examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js on lines 3172..3174

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

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

    ionic.Gestures.event.onTouch(ionic.Gestures.DOCUMENT, ionic.Gestures.EVENT_MOVE, ionic.Gestures.detection.detect);
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 40 mins to fix
examples/ionic/www/lib/ionic/js/ionic.js on lines 697..697

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

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 postLink has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function postLink(scope, element, attr, scrollCtrl, transclude) {
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 35 mins to fix

    Function animate has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            animate: function(element, from, to, className, options) {
    Severity: Minor
    Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 35 mins to fix

      Function animateAfter has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            function animateAfter(animationEvent, element, className, afterAnimationComplete, styles) {
      Severity: Minor
      Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 35 mins to fix

        Function animateRun has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

              function animateRun(animationEvent, element, className, activeAnimationComplete, styles) {
        Severity: Minor
        Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 35 mins to fix

          Function setClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  setClass: function(element, add, remove, animationCompleted, options) {
          Severity: Minor
          Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 35 mins to fix

            Function beforeSetClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    beforeSetClass: function(element, add, remove, animationCompleted, options) {
            Severity: Minor
            Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 35 mins to fix

              Function animate has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                    function animate(animationEvent, element, className, animationComplete, options) {
              Severity: Minor
              Found in examples/ionic/www/lib/ionic/js/angular/angular-animate.js - About 35 mins to fix

                Function setDimensions has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  setDimensions: function(clientWidth, clientHeight, contentWidth, contentHeight, continueScrolling) {
                Severity: Minor
                Found in examples/ionic/www/lib/ionic/js/ionic.js - About 35 mins to fix

                  Function open has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          Popup.prototype.open = function (url, name, popupOptions, redirectUri, dontPoll) {
                  Severity: Minor
                  Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 35 mins to fix

                    Function scrollTo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                      scrollTo: function(left, top, animate, zoom, wasResize) {
                    Severity: Minor
                    Found in examples/ionic/www/lib/ionic/js/ionic.js - About 35 mins to fix

                      Function __publish has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        __publish: function(left, top, zoom, animate, wasResize) {
                      Severity: Minor
                      Found in examples/ionic/www/lib/ionic/js/ionic.js - About 35 mins to fix

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

                            platform: function() {
                              // singleton to get the platform name
                              if (platformName === null) self.setPlatform(self.device().platform);
                              return platformName;
                            },
                        Severity: Minor
                        Found in examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 35 mins to fix
                        examples/ionic/www/lib/ionic/js/ionic.js on lines 2285..2289

                        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

                              this.oauth1 = function(params) {
                                oauth(params);
                                config.providers[params.name].oauthType = '1.0';
                              };
                        Severity: Minor
                        Found in examples/ionic/www/lib/satellizer/satellizer.js and 1 other location - About 35 mins to fix
                        examples/ionic/www/lib/satellizer/satellizer.js on lines 228..231

                        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

                            } else if (textAlign == 'right') {
                              updateCss = 'title-right';
                              if (buttonsLeft) {
                                updateTitleLeft = buttonsLeft + 15;
                              }
                        Severity: Minor
                        Found in examples/ionic/www/lib/ionic/js/ionic-angular.js and 1 other location - About 35 mins to fix
                        examples/ionic/www/lib/ionic/js/ionic-angular.js on lines 5215..5239

                        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

                        Severity
                        Category
                        Status
                        Source
                        Language