sahat/satellizer

View on GitHub

Showing 562 of 562 total issues

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

                bitbucket: {
                    name: 'bitbucket',
                    url: '/auth/bitbucket',
                    authorizationEndpoint: 'https://bitbucket.org/site/oauth2/authorize',
                    redirectUri: window.location.origin + '/',
Severity: Major
Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 2 hrs to fix
examples/ionic/www/lib/satellizer/satellizer.js on lines 139..149

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

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

File angular-resource.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license AngularJS v1.3.13
 * (c) 2010-2014 Google, Inc. http://angularjs.org
 * License: MIT
 */
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/angular/angular-resource.js - About 2 hrs to fix

    Function compile has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        compile: function (tElement, tAttrs, $transclude) {
          return function (scope, $element, attrs) {
            var previousEl, currentEl, currentScope, latestLocals,
                onloadExp     = attrs.onload || '',
                autoScrollExp = attrs.autoscroll,
    Severity: Major
    Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 2 hrs to fix

      Function compile has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          compile: function(element) {
            element.addClass('scroll-view ionic-scroll');
      
            //We cannot transclude here because it breaks element.data() inheritance on compile
            var innerElement = jqLite('<div class="scroll"></div>');
      Severity: Major
      Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 2 hrs to fix

        Function decodeBase64 has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function decodeBase64 (str) {
          let buffer;
          if (typeof module !== 'undefined' && module.exports) {
            try {
              buffer = require('buffer').Buffer;
        Severity: Major
        Found in src/utils.ts - About 2 hrs to fix

          Function __publish has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            __publish: function(left, top, zoom, animate, wasResize) {
          
              var self = this;
          
              // Remember whether we had an animation, then we try to continue based on the current "drive" of the animation
          Severity: Major
          Found in examples/ionic/www/lib/ionic/js/ionic.js - About 2 hrs to fix

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

                  if(ionic.Gestures.detection.current.name != this.name && this.triggered) {
                    inst.trigger(this.name + 'end', ev);
                    this.triggered = false;
                    return;
                  }
            Severity: Major
            Found in examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 2 hrs to fix
            examples/ionic/www/lib/ionic/js/ionic.js on lines 1898..1902

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

            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(ionic.Gestures.detection.current.name != this.name && this.triggered) {
                    inst.trigger(this.name + 'end', ev);
                    this.triggered = false;
                    return;
                  }
            Severity: Major
            Found in examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 2 hrs to fix
            examples/ionic/www/lib/ionic/js/ionic.js on lines 1788..1792

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

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

                onTouch: function onTouch(element, eventType, handler) {
                  var self = this;
            
                  this.bindDom(element, ionic.Gestures.EVENT_TYPES[eventType], function bindDomOnTouch(ev) {
                    var sourceEventType = ev.type.toLowerCase();
            Severity: Minor
            Found in examples/ionic/www/lib/ionic/js/ionic.js - About 2 hrs to fix

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

                  getDistance: function getDistance(touch1, touch2) {
                    var x = touch2.pageX - touch1.pageX,
                    y = touch2.pageY - touch1.pageY;
                    return Math.sqrt((x * x) + (y * y));
                  },
              Severity: Major
              Found in examples/ionic/www/lib/ionic/js/ionic.js and 1 other location - About 2 hrs to fix
              examples/ionic/www/lib/ionic/js/ionic.js on lines 6825..6829

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "tokenPrefix", {
                          get: function () { return this.SatellizerConfig.tokenPrefix; },
                          set: function (value) { this.SatellizerConfig.tokenPrefix = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 172..177
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 178..183
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 184..189
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 190..195
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 196..201
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 202..207
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 214..219
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 220..225
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 226..231
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "unlinkUrl", {
                          get: function () { return this.SatellizerConfig.unlinkUrl; },
                          set: function (value) { this.SatellizerConfig.unlinkUrl = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 172..177
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 178..183
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 184..189
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 196..201
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 202..207
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 208..213
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 214..219
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 220..225
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 226..231
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "withCredentials", {
                          get: function () { return this.SatellizerConfig.withCredentials; },
                          set: function (value) { this.SatellizerConfig.withCredentials = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 172..177
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 178..183
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 184..189
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 190..195
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 196..201
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 202..207
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 208..213
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 214..219
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 220..225
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "tokenRoot", {
                          get: function () { return this.SatellizerConfig.tokenRoot; },
                          set: function (value) { this.SatellizerConfig.tokenRoot = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 172..177
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 178..183
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 184..189
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 190..195
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 202..207
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 208..213
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 214..219
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 220..225
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 226..231
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "loginUrl", {
                          get: function () { return this.SatellizerConfig.loginUrl; },
                          set: function (value) { this.SatellizerConfig.loginUrl = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 172..177
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 184..189
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 190..195
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 196..201
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 202..207
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 208..213
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 214..219
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 220..225
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 226..231
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "baseUrl", {
                          get: function () { return this.SatellizerConfig.baseUrl; },
                          set: function (value) { this.SatellizerConfig.baseUrl = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 178..183
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 184..189
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 190..195
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 196..201
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 202..207
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 208..213
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 214..219
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 220..225
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 226..231
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "signupUrl", {
                          get: function () { return this.SatellizerConfig.signupUrl; },
                          set: function (value) { this.SatellizerConfig.signupUrl = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 172..177
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 178..183
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 190..195
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 196..201
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 202..207
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 208..213
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 214..219
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 220..225
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 226..231
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "tokenName", {
                          get: function () { return this.SatellizerConfig.tokenName; },
                          set: function (value) { this.SatellizerConfig.tokenName = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 172..177
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 178..183
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 184..189
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 190..195
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 196..201
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 208..213
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 214..219
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 220..225
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 226..231
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "tokenHeader", {
                          get: function () { return this.SatellizerConfig.tokenHeader; },
                          set: function (value) { this.SatellizerConfig.tokenHeader = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 172..177
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 178..183
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 184..189
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 190..195
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 196..201
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 202..207
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 208..213
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 220..225
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 226..231
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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 11 locations. Consider refactoring.
              Open

                      Object.defineProperty(AuthProvider.prototype, "tokenType", {
                          get: function () { return this.SatellizerConfig.tokenType; },
                          set: function (value) { this.SatellizerConfig.tokenType = value; },
                          enumerable: true,
                          configurable: true
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 2 hrs to fix
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 172..177
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 178..183
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 184..189
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 190..195
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 196..201
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 202..207
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 208..213
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 214..219
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 226..231
              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 232..237

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

              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