sahat/satellizer

View on GitHub

Showing 562 of 562 total issues

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

        authHeader: {
          get: function() { return config.authHeader; },
          set: function(value) { config.authHeader = value; }
        },
Severity: Major
Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
examples/ionic/www/lib/satellizer/satellizer.js on lines 166..169
examples/ionic/www/lib/satellizer/satellizer.js on lines 170..173
examples/ionic/www/lib/satellizer/satellizer.js on lines 174..177
examples/ionic/www/lib/satellizer/satellizer.js on lines 178..181
examples/ionic/www/lib/satellizer/satellizer.js on lines 182..185
examples/ionic/www/lib/satellizer/satellizer.js on lines 186..189
examples/ionic/www/lib/satellizer/satellizer.js on lines 190..193
examples/ionic/www/lib/satellizer/satellizer.js on lines 198..201
examples/ionic/www/lib/satellizer/satellizer.js on lines 202..205
examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

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

        withCredentials: {
          get: function() { return config.withCredentials; },
          set: function(value) { config.withCredentials = value; }
        },
Severity: Major
Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
examples/ionic/www/lib/satellizer/satellizer.js on lines 166..169
examples/ionic/www/lib/satellizer/satellizer.js on lines 170..173
examples/ionic/www/lib/satellizer/satellizer.js on lines 174..177
examples/ionic/www/lib/satellizer/satellizer.js on lines 178..181
examples/ionic/www/lib/satellizer/satellizer.js on lines 182..185
examples/ionic/www/lib/satellizer/satellizer.js on lines 186..189
examples/ionic/www/lib/satellizer/satellizer.js on lines 190..193
examples/ionic/www/lib/satellizer/satellizer.js on lines 194..197
examples/ionic/www/lib/satellizer/satellizer.js on lines 198..201
examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

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

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

  var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js and 1 other location - About 30 mins to fix
examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js on lines 188..188

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

          user.save(function(err) {
            var token = createJWT(user);
            res.send({ token: token });
          });
Severity: Minor
Found in examples/server/node/server.js and 1 other location - About 30 mins to fix
examples/server/node/server.js on lines 1049..1052

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

        loginUrl: {
          get: function() { return config.loginUrl; },
          set: function(value) { config.loginUrl = value; }
        },
Severity: Major
Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
examples/ionic/www/lib/satellizer/satellizer.js on lines 166..169
examples/ionic/www/lib/satellizer/satellizer.js on lines 174..177
examples/ionic/www/lib/satellizer/satellizer.js on lines 178..181
examples/ionic/www/lib/satellizer/satellizer.js on lines 182..185
examples/ionic/www/lib/satellizer/satellizer.js on lines 186..189
examples/ionic/www/lib/satellizer/satellizer.js on lines 190..193
examples/ionic/www/lib/satellizer/satellizer.js on lines 194..197
examples/ionic/www/lib/satellizer/satellizer.js on lines 198..201
examples/ionic/www/lib/satellizer/satellizer.js on lines 202..205
examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

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

        tokenName: {
          get: function() { return config.tokenName; },
          set: function(value) { config.tokenName = value; }
        },
Severity: Major
Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
examples/ionic/www/lib/satellizer/satellizer.js on lines 166..169
examples/ionic/www/lib/satellizer/satellizer.js on lines 170..173
examples/ionic/www/lib/satellizer/satellizer.js on lines 174..177
examples/ionic/www/lib/satellizer/satellizer.js on lines 178..181
examples/ionic/www/lib/satellizer/satellizer.js on lines 186..189
examples/ionic/www/lib/satellizer/satellizer.js on lines 190..193
examples/ionic/www/lib/satellizer/satellizer.js on lines 194..197
examples/ionic/www/lib/satellizer/satellizer.js on lines 198..201
examples/ionic/www/lib/satellizer/satellizer.js on lines 202..205
examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

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

        signupUrl: {
          get: function() { return config.signupUrl; },
          set: function(value) { config.signupUrl = value; }
        },
Severity: Major
Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
examples/ionic/www/lib/satellizer/satellizer.js on lines 166..169
examples/ionic/www/lib/satellizer/satellizer.js on lines 170..173
examples/ionic/www/lib/satellizer/satellizer.js on lines 178..181
examples/ionic/www/lib/satellizer/satellizer.js on lines 182..185
examples/ionic/www/lib/satellizer/satellizer.js on lines 186..189
examples/ionic/www/lib/satellizer/satellizer.js on lines 190..193
examples/ionic/www/lib/satellizer/satellizer.js on lines 194..197
examples/ionic/www/lib/satellizer/satellizer.js on lines 198..201
examples/ionic/www/lib/satellizer/satellizer.js on lines 202..205
examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

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

  var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
Severity: Minor
Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js and 1 other location - About 30 mins to fix
examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js on lines 177..177

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

      this.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/satellizer.js and 1 other location - About 30 mins to fix
examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 722..726

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

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

        unlinkUrl: {
          get: function() { return config.unlinkUrl; },
          set: function(value) { config.unlinkUrl = value; }
        },
Severity: Major
Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
examples/ionic/www/lib/satellizer/satellizer.js on lines 166..169
examples/ionic/www/lib/satellizer/satellizer.js on lines 170..173
examples/ionic/www/lib/satellizer/satellizer.js on lines 174..177
examples/ionic/www/lib/satellizer/satellizer.js on lines 178..181
examples/ionic/www/lib/satellizer/satellizer.js on lines 182..185
examples/ionic/www/lib/satellizer/satellizer.js on lines 186..189
examples/ionic/www/lib/satellizer/satellizer.js on lines 194..197
examples/ionic/www/lib/satellizer/satellizer.js on lines 198..201
examples/ionic/www/lib/satellizer/satellizer.js on lines 202..205
examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

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

        tokenPrefix: {
          get: function() { return config.tokenPrefix; },
          set: function(value) { config.tokenPrefix = value; }
        },
Severity: Major
Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
examples/ionic/www/lib/satellizer/satellizer.js on lines 166..169
examples/ionic/www/lib/satellizer/satellizer.js on lines 170..173
examples/ionic/www/lib/satellizer/satellizer.js on lines 174..177
examples/ionic/www/lib/satellizer/satellizer.js on lines 178..181
examples/ionic/www/lib/satellizer/satellizer.js on lines 182..185
examples/ionic/www/lib/satellizer/satellizer.js on lines 190..193
examples/ionic/www/lib/satellizer/satellizer.js on lines 194..197
examples/ionic/www/lib/satellizer/satellizer.js on lines 198..201
examples/ionic/www/lib/satellizer/satellizer.js on lines 202..205
examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

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

Severity
Category
Status
Source
Language