wyeworks/ember-qunit-nice-errors

View on GitHub

Showing 34 of 34 total issues

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2), 'assert.ok(await Promise.resolve(2))');
node-tests/fixtures/transformed/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/transformed/unit/ok.js on lines 11..29

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

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2), 'assert.ok(await Promise.resolve(2))');
Severity: Major
Found in node-tests/fixtures/transformed/unit/ok.js and 4 other locations - About 1 day to fix
node-tests/fixtures/transformed/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/other-foo.js on lines 11..29

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

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2), 'assert.ok(await Promise.resolve(2))');
node-tests/fixtures/transformed/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/transformed/unit/ok.js on lines 11..29

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

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2), 'assert.ok(await Promise.resolve(2))');
node-tests/fixtures/transformed/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/transformed/unit/ok.js on lines 11..29

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

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2), 'assert.ok(await Promise.resolve(2))');
node-tests/fixtures/transformed/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/unit/ok.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
Severity: Major
Found in node-tests/fixtures/original/unit/ok.js and 10 other locations - About 1 day to fix
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
Severity: Major
Found in node-tests/fixtures/original/integration/exclude/ok-foo.js and 10 other locations - About 1 day to fix
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

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

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

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

Refactorings

Further Reading

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

test('it works', async function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.ok(await Promise.resolve(2));
node-tests/fixtures/original/integration/custom-include/ok-bar.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/default-include/ok-test.js on lines 11..29
node-tests/fixtures/original/integration/exclude/ok-foo.js on lines 11..29
node-tests/fixtures/original/integration/exclude/other-foo.js on lines 11..29
node-tests/fixtures/original/unit/ok.js on lines 11..29
node-tests/fixtures/transformed/integration/custom-include/ok-test.js on lines 11..29
node-tests/fixtures/transformed/integration/default-include/ok-foo.js on lines 11..29
node-tests/fixtures/transformed/integration/exclude/ok-foo.js on lines 11..29

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

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

test('it works', function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.equal(result, true, 'assert.equal(result, true)');
Severity: Major
Found in node-tests/fixtures/transformed/unit/equal.js and 7 other locations - About 1 day to fix
node-tests/fixtures/transformed/unit/deep-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-deep-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-prop-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-strict-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/prop-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/strict-equal.js on lines 11..23

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

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

test('it works', function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.notEqual(result, true, 'assert.notEqual(result, true)');
Severity: Major
Found in node-tests/fixtures/transformed/unit/not-equal.js and 7 other locations - About 1 day to fix
node-tests/fixtures/transformed/unit/deep-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-deep-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-prop-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-strict-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/prop-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/strict-equal.js on lines 11..23

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

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

test('it works', function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.notStrictEqual(result, true, 'assert.notStrictEqual(result, true)');
Severity: Major
Found in node-tests/fixtures/transformed/unit/not-strict-equal.js and 7 other locations - About 1 day to fix
node-tests/fixtures/transformed/unit/deep-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-deep-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-prop-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/prop-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/strict-equal.js on lines 11..23

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

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

test('it works', function(assert) {
  let result = testHelper([42]),
      obj = { a: true, b: false };

  assert.notPropEqual(result, true, 'assert.notPropEqual(result, true)');
Severity: Major
Found in node-tests/fixtures/transformed/unit/not-prop-equal.js and 7 other locations - About 1 day to fix
node-tests/fixtures/transformed/unit/deep-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-deep-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/not-strict-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/prop-equal.js on lines 11..23
node-tests/fixtures/transformed/unit/strict-equal.js on lines 11..23

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

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