aurelia/aurelia

View on GitHub
packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts

Summary

Maintainability
F
1 mo
Test Coverage

File bindable-coercer.spec.ts has 701 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Constructable, DI, noop, Registration } from '@aurelia/kernel';
import { Aurelia, bindable, customElement, CustomElement, IPlatform, coercer, customAttribute, CustomAttribute, StandardConfiguration } from '@aurelia/runtime-html';
import { assert, PLATFORMRegistration, TestContext } from '@aurelia/testing';
import { createSpecFunction, TestExecutionContext, TestFunction } from '../util.js';

Severity: Major
Found in packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts - About 1 day to fix

    Avoid too many return statements within this function.
    Open

          return new this((value as any).name, (value as any).age);
    Severity: Major
    Found in packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return new this(null!, null!);
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts - About 30 mins to fix

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

            for (const type of [/* undefined,  */Person1]) {
              @customElement({ name: 'my-el', template: 'irrelevant' })
              class MyEl {
                @bindable({ type }) public person: Person1;
              }
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 644..735

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

        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

            for (const type of [/* undefined, */ Person2]) {
              @customElement({ name: 'my-el', template: 'irrelevant' })
              class MyEl {
                @bindable({ type }) public person: Person2;
              }
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 543..634

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

        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

          {
            @customElement({ name: 'my-el', template: 'irrelevant' })
            class MyEl {
              @bindable({ type: Object }) public prop: number;
            }
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 825..836

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

        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

          {
            @customElement({ name: 'my-el', template: 'irrelevant' })
            class MyEl {
              @bindable({ set: noop }) public prop: number;
            }
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 813..824

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

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

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

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

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

        Refactorings

        Further Reading

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

              $it(`number - object - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(Number.isNaN(ctx.app.myEl.num), true);
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="{}"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 92..94
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 96..98

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

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

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

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

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

        Refactorings

        Further Reading

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

              $it(`number - non-numeric string literal - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(Number.isNaN(ctx.app.myEl.num), true);
              }, { app: App, template: `<my-el component.ref="myEl" num="forty-two"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 96..98
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 116..118

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

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

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

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

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

        Refactorings

        Further Reading

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

              $it(`number - non-numeric string literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(Number.isNaN(ctx.app.myEl.num), true);
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="'forty-two'"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 92..94
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 116..118

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

        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

              $it(`bigint - boolean true - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, BigInt(1));
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="true"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 422..424
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 426..428
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 430..432
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 438..440

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

        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

              $it(`bigint - boolean false - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, BigInt(0));
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="false"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 422..424
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 426..428
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 430..432
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 434..436

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

        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

              $it(`bigint - numeric string literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, BigInt(42));
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="'42'"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 422..424
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 430..432
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 434..436
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 438..440

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

        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

              $it(`bigint - numeric literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, BigInt(42));
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="42"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 422..424
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 426..428
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 434..436
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 438..440

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

        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

              $it(`bigint - numeric string literal - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, BigInt(42));
              }, { app: App, template: `<my-el component.ref="myEl" num="42"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 426..428
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 430..432
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 434..436
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 438..440

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

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

              $it(`string - string literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, true);
              }, { app: App, template: `<my-el component.ref="myEl" bool.bind="'42'"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 291..293
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 295..297
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 299..301
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 303..305
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 307..309
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 311..313
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 315..317
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 323..325
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 335..337

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

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

              $it(`string - number 1 literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, true);
              }, { app: App, template: `<my-el component.ref="myEl" bool.bind="1"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 291..293
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 295..297
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 299..301
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 303..305
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 311..313
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 315..317
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 319..321
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 323..325
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 335..337

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

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

              $it(`string - boolean false string literal - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, true);
              }, { app: App, template: `<my-el component.ref="myEl" bool="false"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 291..293
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 299..301
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 303..305
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 307..309
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 311..313
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 315..317
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 319..321
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 323..325
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 335..337

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

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

              $it(`string -number 0 literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, false);
              }, { app: App, template: `<my-el component.ref="myEl" bool.bind="0"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 291..293
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 295..297
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 299..301
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 303..305
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 307..309
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 315..317
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 319..321
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 323..325
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 335..337

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

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

              $it(`string - boolean true string literal - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, true);
              }, { app: App, template: `<my-el component.ref="myEl" bool="true"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 295..297
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 299..301
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 303..305
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 307..309
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 311..313
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 315..317
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 319..321
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 323..325
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 335..337

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

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

              $it(`string - boolean true string literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, true);
              }, { app: App, template: `<my-el component.ref="myEl" bool.bind="true"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 291..293
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 295..297
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 303..305
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 307..309
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 311..313
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 315..317
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 319..321
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 323..325
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 335..337

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

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

              $it(`string - boolean false string literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, false);
              }, { app: App, template: `<my-el component.ref="myEl" bool.bind="false"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 291..293
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 295..297
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 299..301
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 307..309
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 311..313
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 315..317
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 319..321
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 323..325
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 335..337

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

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

              $it(`string - numeric string literal - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, true);
              }, { app: App, template: `<my-el component.ref="myEl" bool="42"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 291..293
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 295..297
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 299..301
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 303..305
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 307..309
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 311..313
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 319..321
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 323..325
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 335..337

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

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

              $it(`string - object - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, true);
              }, { app: App, template: `<my-el component.ref="myEl" bool.bind="{}"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 291..293
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 295..297
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 299..301
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 303..305
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 307..309
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 311..313
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 315..317
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 319..321
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 323..325

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

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

              $it(`string - numeric literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.bool, true);
              }, { app: App, template: `<my-el component.ref="myEl" bool.bind="42"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 291..293
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 295..297
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 299..301
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 303..305
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 307..309
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 311..313
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 315..317
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 319..321
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 335..337

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

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

              $it(`string - string literal - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.str, '42');
              }, { app: App, template: `<my-el component.ref="myEl" str="42"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 193..195
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 197..199
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 201..203
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 205..207
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 217..219

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

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

              $it(`string - numeric literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.str, '42');
              }, { app: App, template: `<my-el component.ref="myEl" str.bind="42"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 189..191
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 193..195
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 201..203
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 205..207
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 217..219

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

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

              $it(`string - boolean false - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.str, 'false');
              }, { app: App, template: `<my-el component.ref="myEl" str.bind="false"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 189..191
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 193..195
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 197..199
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 201..203
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 217..219

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

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

              $it(`string - string literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.str, '42');
              }, { app: App, template: `<my-el component.ref="myEl" str.bind="'42'"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 189..191
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 197..199
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 201..203
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 205..207
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 217..219

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

        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

              $it(`number - numeric literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, 42);
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="42"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 80..82
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 84..86
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 100..102
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 104..106

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

        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

              $it(`number - boolean true - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, 1);
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="true"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 80..82
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 84..86
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 88..90
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 104..106

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

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

              $it(`string - object - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.str, '[object Object]');
              }, { app: App, template: `<my-el component.ref="myEl" str.bind="{}"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 189..191
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 193..195
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 197..199
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 201..203
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 205..207

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

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

              $it(`string - boolean true - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.str, 'true');
              }, { app: App, template: `<my-el component.ref="myEl" str.bind="true"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 189..191
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 193..195
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 197..199
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 205..207
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 217..219

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

        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

              $it(`number - numeric string literal - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, 42);
              }, { app: App, template: `<my-el component.ref="myEl" num="42"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 84..86
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 88..90
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 100..102
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 104..106

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

        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

              $it(`number - numeric string literal bind - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, 42);
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="'42'"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 80..82
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 88..90
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 100..102
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 104..106

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

        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

              $it(`number - boolean false - ${getTypeSpecification(type)}`, function (ctx: TestExecutionContext<App>) {
                assert.strictEqual(ctx.app.myEl.num, 0);
              }, { app: App, template: `<my-el component.ref="myEl" num.bind="false"></my-el>`, registrations: [MyEl] });
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 80..82
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 84..86
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 88..90
        packages/__tests__/src/3-runtime-html/bindable-coercer.spec.ts on lines 100..102

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

        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