sahat/satellizer

View on GitHub
examples/ionic/www/lib/satellizer/dist/satellizer.js

Summary

Maintainability
F
2 wks
Test Coverage

File satellizer.js has 936 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Satellizer 0.15.5
 * (c) 2016 Sahat Yalkabov 
 * License: MIT 
 */
Severity: Major
Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 2 days to fix

    Function Config has 151 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var Config = (function () {
            function Config() {
                this.baseUrl = '/';
                this.loginUrl = '/auth/login';
                this.signupUrl = '/auth/signup';
    Severity: Major
    Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 6 hrs to fix

      Function AuthProvider has 143 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var AuthProvider = (function () {
              function AuthProvider(SatellizerConfig) {
                  this.SatellizerConfig = SatellizerConfig;
              }
              Object.defineProperty(AuthProvider.prototype, "baseUrl", {
      Severity: Major
      Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 5 hrs to fix

        Function Config has 141 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function Config() {
                    this.baseUrl = '/';
                    this.loginUrl = '/auth/login';
                    this.signupUrl = '/auth/signup';
                    this.unlinkUrl = '/auth/unlink/';
        Severity: Major
        Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 5 hrs to fix

          Function Popup has 114 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var Popup = (function () {
                  function Popup($interval, $window, $q) {
                      this.$interval = $interval;
                      this.$window = $window;
                      this.$q = $q;
          Severity: Major
          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 4 hrs to fix

            Function OAuth2 has 114 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var OAuth2 = (function () {
                    function OAuth2($http, $window, $timeout, $q, SatellizerConfig, SatellizerPopup, SatellizerStorage) {
                        this.$http = $http;
                        this.$window = $window;
                        this.$timeout = $timeout;
            Severity: Major
            Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 4 hrs to fix

              Function Shared has 76 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  var Shared = (function () {
                      function Shared($q, $window, SatellizerConfig, SatellizerStorage) {
                          this.$q = $q;
                          this.$window = $window;
                          this.SatellizerConfig = SatellizerConfig;
              Severity: Major
              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 3 hrs to fix

                Function OAuth1 has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var OAuth1 = (function () {
                        function OAuth1($http, $window, SatellizerConfig, SatellizerPopup) {
                            this.$http = $http;
                            this.$window = $window;
                            this.SatellizerConfig = SatellizerConfig;
                Severity: Major
                Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 2 hrs to fix

                  Function OAuth has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      var OAuth = (function () {
                          function OAuth($http, $window, $timeout, $q, SatellizerConfig, SatellizerPopup, SatellizerStorage, SatellizerShared, SatellizerOAuth1, SatellizerOAuth2) {
                              this.$http = $http;
                              this.$window = $window;
                              this.$timeout = $timeout;
                  Severity: Major
                  Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 2 hrs to fix

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

                        function decodeBase64(str) {
                            var buffer;
                            if (typeof module !== 'undefined' && module.exports) {
                                try {
                                    buffer = require('buffer').Buffer;
                    Severity: Minor
                    Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                      Function polling has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              Popup.prototype.polling = function (redirectUri) {
                                  var _this = this;
                                  return this.$q(function (resolve, reject) {
                                      var redirectUriParser = document.createElement('a');
                                      redirectUriParser.href = redirectUri;
                      Severity: Minor
                      Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                        Function OAuth has 10 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                function OAuth($http, $window, $timeout, $q, SatellizerConfig, SatellizerPopup, SatellizerStorage, SatellizerShared, SatellizerOAuth1, SatellizerOAuth2) {
                        Severity: Major
                        Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                          Function Storage has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              var Storage = (function () {
                                  function Storage($window, SatellizerConfig) {
                                      this.$window = $window;
                                      this.SatellizerConfig = SatellizerConfig;
                                      this.memoryStore = {};
                          Severity: Minor
                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                            Function polling has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                            var polling = _this.$interval(function () {
                                                if (!_this.popup || _this.popup.closed || _this.popup.closed === undefined) {
                                                    _this.$interval.cancel(polling);
                                                    reject(new Error('The popup window was closed'));
                                                }
                            Severity: Minor
                            Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                              Function eventListener has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      Popup.prototype.eventListener = function (redirectUri) {
                                          var _this = this;
                                          return this.$q(function (resolve, reject) {
                                              _this.popup.addEventListener('loadstart', function (event) {
                                                  if (event.url.indexOf(redirectUri) !== 0) {
                              Severity: Minor
                              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                                Function OAuth2 has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        function OAuth2($http, $window, $timeout, $q, SatellizerConfig, SatellizerPopup, SatellizerStorage) {
                                            this.$http = $http;
                                            this.$window = $window;
                                            this.$timeout = $timeout;
                                            this.$q = $q;
                                Severity: Minor
                                Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                                  Function Local has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      var Local = (function () {
                                          function Local($http, SatellizerConfig, SatellizerShared) {
                                              this.$http = $http;
                                              this.SatellizerConfig = SatellizerConfig;
                                              this.SatellizerShared = SatellizerShared;
                                  Severity: Minor
                                  Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                                    Function Interceptor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        var Interceptor = (function () {
                                            function Interceptor(SatellizerConfig, SatellizerShared, SatellizerStorage) {
                                                var _this = this;
                                                this.SatellizerConfig = SatellizerConfig;
                                                this.SatellizerShared = SatellizerShared;
                                    Severity: Minor
                                    Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 1 hr to fix

                                      Function OAuth2 has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              function OAuth2($http, $window, $timeout, $q, SatellizerConfig, SatellizerPopup, SatellizerStorage) {
                                      Severity: Major
                                      Found in examples/ionic/www/lib/satellizer/dist/satellizer.js - About 50 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

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

                                                  angular.forEach((str || '').split('&'), function (keyValue) {
                                                      if (keyValue) {
                                                          value = keyValue.split('=');
                                                          key = decodeURIComponent(value[0]);
                                                          obj[key] = angular.isDefined(value[1]) ? decodeURIComponent(value[1]) : true;
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 3 hrs to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 846..852

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

                                          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

                                              function joinUrl(baseUrl, url) {
                                                  if (/^(?:[a-z]+:)?\/\//i.test(url)) {
                                                      return url;
                                                  }
                                                  var joined = [baseUrl, url].join('/');
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 3 hrs to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 856..872

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

                                          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 getFullUrlPath(location) {
                                                  var isHttps = location.protocol === 'https:';
                                                  return location.protocol + '//' + location.hostname +
                                                      ':' + (location.port || (isHttps ? '443' : '80')) +
                                                      (/^\//.test(location.pathname) ? location.pathname : '/' + location.pathname);
                                          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 831..836

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

                                          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

                                                          facebook: {
                                                              name: 'facebook',
                                                              url: '/auth/facebook',
                                                              authorizationEndpoint: 'https://www.facebook.com/v2.5/dialog/oauth',
                                                              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 34..45

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

                                          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

                                                          live: {
                                                              name: 'live',
                                                              url: '/auth/live',
                                                              authorizationEndpoint: 'https://login.live.com/oauth20_authorize.srf',
                                                              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 117..128

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

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

                                                          linkedin: {
                                                              name: 'linkedin',
                                                              url: '/auth/linkedin',
                                                              authorizationEndpoint: 'https://www.linkedin.com/uas/oauth2/authorization',
                                                              redirectUri: window.location.origin,
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 3 other locations - About 2 hrs to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 95..106
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 85..96
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 105..116

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

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

                                                          twitch: {
                                                              name: 'twitch',
                                                              url: '/auth/twitch',
                                                              authorizationEndpoint: 'https://api.twitch.tv/kraken/oauth2/authorize',
                                                              redirectUri: window.location.origin,
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 3 other locations - About 2 hrs to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 75..86
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 85..96
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 105..116

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

                                          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

                                                          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

                                          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, "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, "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, "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, "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, "storageType", {
                                                      get: function () { return this.SatellizerConfig.storageType; },
                                                      set: function (value) { this.SatellizerConfig.storageType = 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 226..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 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

                                          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, "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, "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, "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

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

                                                          github: {
                                                              name: 'github',
                                                              url: '/auth/github',
                                                              authorizationEndpoint: 'https://github.com/login/oauth/authorize',
                                                              redirectUri: window.location.origin,
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 64..74

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

                                          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

                                                  OAuth1.prototype.buildQueryString = function (obj) {
                                                      var str = [];
                                                      angular.forEach(obj, function (value, key) {
                                                          str.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
                                                      });
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 676..684

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

                                          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

                                                      if (accessToken) {
                                                          if (angular.isObject(accessToken) && angular.isObject(accessToken.data)) {
                                                              response = accessToken;
                                                          }
                                                          else if (angular.isString(accessToken)) {
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 329..335

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

                                          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

                                                          yahoo: {
                                                              name: 'yahoo',
                                                              url: '/auth/yahoo',
                                                              authorizationEndpoint: 'https://api.login.yahoo.com/oauth2/request_auth',
                                                              redirectUri: window.location.origin,
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 129..138

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

                                          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

                                                  Popup.prototype.stringifyOptions = function (options) {
                                                      var parts = [];
                                                      angular.forEach(options, function (value, key) {
                                                          parts.push(key + '=' + value);
                                                      });
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 820..826

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

                                          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

                                                  AuthProvider.prototype.oauth1 = function (options) {
                                                      this.SatellizerConfig.providers[options.name] = angular.extend(options, {
                                                          oauthType: '1.0'
                                                      });
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 289..293

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

                                          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

                                                  AuthProvider.prototype.oauth2 = function (options) {
                                                      this.SatellizerConfig.providers[options.name] = angular.extend(options, {
                                                          oauthType: '2.0'
                                                      });
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 284..288

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

                                          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

                                                          instagram: {
                                                              name: 'instagram',
                                                              url: '/auth/instagram',
                                                              authorizationEndpoint: 'https://api.instagram.com/oauth/authorize',
                                                              redirectUri: window.location.origin,
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 75..84

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

                                          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

                                                          twitter: {
                                                              name: 'twitter',
                                                              url: '/auth/twitter',
                                                              authorizationEndpoint: 'https://api.twitter.com/oauth/authenticate',
                                                              redirectUri: window.location.origin,
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 1 hr to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 97..104

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

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

                                                      var url = this.SatellizerConfig.baseUrl ? joinUrl(this.SatellizerConfig.baseUrl, this.defaults.url) : this.defaults.url;
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 2 other locations - About 45 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 677..677
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 773..775

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

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

                                                      var exchangeForTokenUrl = this.SatellizerConfig.baseUrl ?
                                                          joinUrl(this.SatellizerConfig.baseUrl, this.defaults.url) :
                                                          this.defaults.url;
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 2 other locations - About 45 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 672..672
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 677..677

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

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

                                                      var exchangeForTokenUrl = this.SatellizerConfig.baseUrl ? joinUrl(this.SatellizerConfig.baseUrl, this.defaults.url) : this.defaults.url;
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 2 other locations - About 45 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 672..672
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 773..775

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

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

                                                      options.url = options.url ? options.url : joinUrl(this.SatellizerConfig.baseUrl, this.SatellizerConfig.loginUrl);
                                          Severity: Minor
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 2 other locations - About 35 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 497..497
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 848..848

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

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

                                                      httpOptions.url = httpOptions.url ? httpOptions.url : joinUrl(this.SatellizerConfig.baseUrl, this.SatellizerConfig.unlinkUrl);
                                          Severity: Minor
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 2 other locations - About 35 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 486..486
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 497..497

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

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

                                                      options.url = options.url ? options.url : joinUrl(this.SatellizerConfig.baseUrl, this.SatellizerConfig.signupUrl);
                                          Severity: Minor
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 2 other locations - About 35 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 486..486
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 848..848

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

                                          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

                                                  AuthProvider.prototype.facebook = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.facebook, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  AuthProvider.prototype.github = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.github, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  AuthProvider.prototype.twitch = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.twitch, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  AuthProvider.prototype.twitter = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.twitter, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  AuthProvider.prototype.bitbucket = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.bitbucket, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  AuthProvider.prototype.live = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.live, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  AuthProvider.prototype.spotify = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.spotify, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280

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

                                          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

                                                  AuthProvider.prototype.linkedin = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.linkedin, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  AuthProvider.prototype.yahoo = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.yahoo, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  AuthProvider.prototype.instagram = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.instagram, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  AuthProvider.prototype.google = function (options) {
                                                      angular.extend(this.SatellizerConfig.providers.google, options);
                                                  };
                                          Severity: Major
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                                          examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

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

                                          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

                                                  OAuth2.camelCase = function (name) {
                                                      return name.replace(/([\:\-\_]+(.))/g, function (_, separator, letter, offset) {
                                                          return offset ? letter.toUpperCase() : letter;
                                                      });
                                                  };
                                          Severity: Minor
                                          Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 1 other location - About 30 mins to fix
                                          examples/ionic/www/lib/satellizer/satellizer.js on lines 838..842

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

                                          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

                                          There are no issues that match your filters.

                                          Category
                                          Status