ember-cli-deploy/ember-cli-deploy

View on GitHub
node-tests/unit/tasks/pipeline-test.js

Summary

Maintainability
D
2 days
Test Coverage

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[ 9]).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 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[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[18]).to.eq(chalk.styles.blue.close + chalk.styles.blue.open + 'Pipeline complete');
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 229..229
node-tests/unit/tasks/pipeline-test.js on lines 230..230

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[ 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 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[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[ 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[ 3]).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 214..214
node-tests/unit/tasks/pipeline-test.js on lines 215..215
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[ 5]).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 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[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[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[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[ 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[ 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[17]).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 228..228
node-tests/unit/tasks/pipeline-test.js on lines 229..229
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

        task._pluginInstances = function() {
          return [{
            name: 'test-plugin',
            willDeploy: function() {},
            upload: function() {},
Severity: Minor
Found in node-tests/unit/tasks/pipeline-test.js and 1 other location - About 35 mins to fix
node-tests/unit/tasks/pipeline-test.js on lines 123..129

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

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

          task._pluginInstances = function() {
            return [{
              name: 'test-plugin',
              upload: function() {},
              willDeploy: function() {},
Severity: Minor
Found in node-tests/unit/tasks/pipeline-test.js and 1 other location - About 35 mins to fix
node-tests/unit/tasks/pipeline-test.js on lines 71..77

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

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

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

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

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

Refactorings

Further Reading

There are no issues that match your filters.

Category
Status