ember-cli-deploy/ember-cli-deploy

View on GitHub

Showing 70 of 70 total issues

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

        expect(logLines[ 7]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '|  |');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[10]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '|  +- test-plugin');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[11]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '|');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[16]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '|  +- test-plugin');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[ 2]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + 'Registering hook -> willDeploy[test-plugin]');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[ 4]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + 'Executing pipeline');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[ 1]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + 'Registering hook -> upload[test-plugin]');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[12]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '+- upload');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[13]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '|  |');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[14]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '|  +- test-plugin');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[ 6]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '+- willDeploy');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[15]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '|  |');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 221..221
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 18 locations. Consider refactoring.
Open

        expect(logLines[ 8]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + '|  +- test-plugin');
Severity: Major
Found in node-tests/unit/tasks/pipeline-test.js and 17 other locations - About 1 hr to fix
node-tests/unit/tasks/pipeline-test.js on lines 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
node-tests/unit/tasks/pipeline-test.js on lines 216..216
node-tests/unit/tasks/pipeline-test.js on lines 217..217
node-tests/unit/tasks/pipeline-test.js on lines 218..218
node-tests/unit/tasks/pipeline-test.js on lines 219..219
node-tests/unit/tasks/pipeline-test.js on lines 220..220
node-tests/unit/tasks/pipeline-test.js on lines 222..222
node-tests/unit/tasks/pipeline-test.js on lines 223..223
node-tests/unit/tasks/pipeline-test.js on lines 224..224
node-tests/unit/tasks/pipeline-test.js on lines 225..225
node-tests/unit/tasks/pipeline-test.js on lines 226..226
node-tests/unit/tasks/pipeline-test.js on lines 227..227
node-tests/unit/tasks/pipeline-test.js on lines 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230
node-tests/unit/tasks/pipeline-test.js on lines 231..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 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 2 locations. Consider refactoring.
Open

      testOrder(project, {
        pipeline: {
          runOrder: {
            foo: { after: ['bar', 'baz'] },
            baz: { after: ['bar'] },
Severity: Minor
Found in node-tests/unit/models/plugin-registry-test.js and 1 other location - About 55 mins to fix
node-tests/unit/models/plugin-registry-test.js on lines 402..409

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

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

      testOrder(project, {
        pipeline: {
          runOrder: {
            bar: { after: ['foo', 'baz'] },
            baz: { after: ['foo'] },
Severity: Minor
Found in node-tests/unit/models/plugin-registry-test.js and 1 other location - About 55 mins to fix
node-tests/unit/models/plugin-registry-test.js on lines 393..400

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

      if (instance.runBefore) {
        var befores = self._castArray(instance.runBefore);
        config = self._mergeAuthorProvidedOrderWithConfigOrder('before', instance.name, befores, config, aliasMap);
      }
Severity: Minor
Found in lib/models/plugin-registry.js and 1 other location - About 55 mins to fix
lib/models/plugin-registry.js on lines 187..190

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

      if (instance.runAfter) {
        var afters = self._castArray(instance.runAfter);
        config = self._mergeAuthorProvidedOrderWithConfigOrder('after', instance.name, afters, config, aliasMap);
      }
Severity: Minor
Found in lib/models/plugin-registry.js and 1 other location - About 55 mins to fix
lib/models/plugin-registry.js on lines 182..185

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

  if (environment === 'development') {
    ENV.build = {
      environment: 'development'
    };

Severity: Minor
Found in node-tests/fixtures/config/deploy.js and 1 other location - About 45 mins to fix
node-tests/fixtures/config/deploy.js on lines 15..24

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

  if (environment === 'staging') {
    ENV.build = {
      environment: 'production'
    };

Severity: Minor
Found in node-tests/fixtures/config/deploy.js and 1 other location - About 45 mins to fix
node-tests/fixtures/config/deploy.js on lines 4..13

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

  if (ui.verbose) {
    ui.write(this.logError('|\n'));
    ui.write(this.logError('+- didFail\n'));
  }
Severity: Minor
Found in lib/models/pipeline.js and 1 other location - About 40 mins to fix
lib/models/pipeline.js on lines 133..136

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

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