28msec/28.io-nodejs

View on GitHub

Showing 51 of 156 total issues

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

    Queries.prototype.removeQuery = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/queries.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 690..767

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

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

    Account.prototype.listSubscriptions = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/account.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Queries.prototype.getQueryPlan = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/queries.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681

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

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

    Account.prototype.getBillingData = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/account.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Account.prototype.confirmAccount = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/account.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Modules.prototype.getModule = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/modules.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Project.prototype.getDefaultMongoDBCredentials = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/project.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Account.prototype.sendResetToken = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/account.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Queries.prototype.listQueries = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/queries.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Datasources.prototype.listCategoryDatasources = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/datasources.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Project.prototype.deleteProject = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/project.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Project.prototype.getProjectMetadata = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/project.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Queries.prototype.getQuery = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/queries.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Account.prototype.getAccountMetadata = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/account.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Project.prototype.upgradeProject = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/project.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1060..1137
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Project.prototype.listCustomDomains = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/project.api.28.io.js and 17 other locations - About 3 days to fix
lib/account.api.28.io.js on lines 225..302
lib/account.api.28.io.js on lines 493..570
lib/account.api.28.io.js on lines 579..656
lib/account.api.28.io.js on lines 761..838
lib/account.api.28.io.js on lines 847..924
lib/account.api.28.io.js on lines 1120..1197
lib/datasources.api.28.io.js on lines 109..186
lib/modules.api.28.io.js on lines 129..206
lib/project.api.28.io.js on lines 378..455
lib/project.api.28.io.js on lines 464..541
lib/project.api.28.io.js on lines 646..723
lib/project.api.28.io.js on lines 732..809
lib/project.api.28.io.js on lines 1336..1413
lib/queries.api.28.io.js on lines 31..108
lib/queries.api.28.io.js on lines 315..392
lib/queries.api.28.io.js on lines 604..681
lib/queries.api.28.io.js on lines 690..767

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

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

    Modules.prototype.removeModule = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/modules.api.28.io.js and 2 other locations - About 3 days to fix
lib/project.api.28.io.js on lines 1521..1598
lib/queries.api.28.io.js on lines 776..853

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

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

    Queries.prototype.compileQuery = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/queries.api.28.io.js and 2 other locations - About 3 days to fix
lib/modules.api.28.io.js on lines 423..500
lib/project.api.28.io.js on lines 1521..1598

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

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

    Project.prototype.removeCustomRewriteRules = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/project.api.28.io.js and 2 other locations - About 3 days to fix
lib/modules.api.28.io.js on lines 423..500
lib/queries.api.28.io.js on lines 776..853

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

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

    Project.prototype.listProjects = function(parameters) {
        if (parameters === undefined) {
            parameters = {};
        }
        var deferred = Q.defer();
Severity: Major
Found in lib/project.api.28.io.js and 1 other location - About 3 days to fix
lib/datasources.api.28.io.js on lines 30..100

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

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