aurelia/aurelia

View on GitHub
packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts

Summary

Maintainability
F
3 wks
Test Coverage

File controller.hook-timings.integration.spec.ts has 1727 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Registration, Writable, DI, resolve } from '@aurelia/kernel';
import {
  Aurelia,
  customElement,
  ICustomElementController,

    Function $ has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function $(prefix: 'start' | 'stop') {
          switch (prefix) {
            case 'start': return function (component: 'app' | 'a-1') {
              return function (hook?: HookName) {
                switch (hook) {

      Function verifyInvocationsEqual has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function verifyInvocationsEqual(actual: string[], expected: string[]): void {
        const groupNames = new Set<string>();
        actual.forEach(x => groupNames.add(x.slice(0, x.indexOf('.'))));
        expected.forEach(x => groupNames.add(x.slice(0, x.indexOf('.'))));
        const expectedGroups: Record<string, string[]> = {};

        Function invoke has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

          public invoke(vm: TestVM, cb: () => void): void | Promise<void> {
            if (this.ticks === null) {
              this.mgr[this.name].enter(vm);
              cb();
              this.mgr[this.name].leave(vm);

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function verifyInvocationsEqual has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

        function verifyInvocationsEqual(actual: string[], expected: string[]): void {
          const groupNames = new Set<string>();
          actual.forEach(x => groupNames.add(x.slice(0, x.indexOf('.'))));
          expected.forEach(x => groupNames.add(x.slice(0, x.indexOf('.'))));
          const expectedGroups: Record<string, string[]> = {};

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function invoke has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          public invoke(vm: TestVM, cb: () => void): void | Promise<void> {
            if (this.ticks === null) {
              this.mgr[this.name].enter(vm);
              cb();
              this.mgr[this.name].leave(vm);

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

          class Notifier {
            public readonly p: IPlatform;
            public readonly entryHistory: string[] = [];
            public readonly fullHistory: string[] = [];
          
          
          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 189..221

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

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

                it(`app ${app}, a-1 portal ${a1}`, async function () {
                  const { mgr, p, au, host } = createFixture();
          
                  @customElement({ name: 'a-1', template: null })
                  class A1 extends TestVM { public constructor() { super(mgr, p, a1); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 712..730
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 732..750
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 752..770
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 772..790
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 792..810
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 812..830
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 832..850
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 852..870

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

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

                it(`app ${app}, a-1 else ${a1}`, async function () {
                  const { mgr, p, au, host } = createFixture();
          
                  @customElement({ name: 'a-1', template: null })
                  class A1 extends TestVM { public constructor() { super(mgr, p, a1); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 712..730
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 732..750
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 772..790
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 792..810
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 812..830
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 832..850
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 852..870
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 872..890

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

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

                it(`app ${app}, a-1 repeat.for ${a1}`, async function () {
                  const { mgr, p, au, host } = createFixture();
          
                  @customElement({ name: 'a-1', template: null })
                  class A1 extends TestVM { public constructor() { super(mgr, p, a1); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 712..730
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 732..750
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 752..770
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 772..790
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 812..830
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 832..850
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 852..870
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 872..890

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

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

                it(`app ${app}, a-1 flags ${a1}`, async function () {
                  const { mgr, p, au, host } = createFixture();
          
                  @customElement({ name: 'a-1', template: null })
                  class A1 extends TestVM { public constructor() { super(mgr, p, a1); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 712..730
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 732..750
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 752..770
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 772..790
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 792..810
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 812..830
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 832..850
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 872..890

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

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

                it(`app ${app}, a-1 with ${a1}`, async function () {
                  const { mgr, p, au, host } = createFixture();
          
                  @customElement({ name: 'a-1', template: null })
                  class A1 extends TestVM { public constructor() { super(mgr, p, a1); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 712..730
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 732..750
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 752..770
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 792..810
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 812..830
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 832..850
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 852..870
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 872..890

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

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

                it(`app ${app}, a-1 ${a1}`, async function () {
                  const { mgr, p, au, host } = createFixture();
          
                  @customElement({ name: 'a-1', template: null })
                  class A1 extends TestVM { public constructor() { super(mgr, p, a1); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 732..750
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 752..770
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 772..790
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 792..810
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 812..830
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 832..850
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 852..870
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 872..890

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

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

                it(`app ${app}, a-1 if.bind ${a1}`, async function () {
                  const { mgr, p, au, host } = createFixture();
          
                  @customElement({ name: 'a-1', template: null })
                  class A1 extends TestVM { public constructor() { super(mgr, p, a1); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 712..730
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 752..770
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 772..790
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 792..810
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 812..830
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 832..850
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 852..870
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 872..890

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

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

                it(`app ${app}, a-1 switch.bind default-case ${a1}`, async function () {
                  const { mgr, p, au, host } = createFixture();
          
                  @customElement({ name: 'a-1', template: null })
                  class A1 extends TestVM { public constructor() { super(mgr, p, a1); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 712..730
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 732..750
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 752..770
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 772..790
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 792..810
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 812..830
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 852..870
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 872..890

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

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

                it(`app ${app}, a-1 switch.bind case.bind ${a1}`, async function () {
                  const { mgr, p, au, host } = createFixture();
          
                  @customElement({ name: 'a-1', template: null })
                  class A1 extends TestVM { public constructor() { super(mgr, p, a1); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 712..730
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 732..750
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 752..770
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 772..790
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 792..810
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 832..850
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 852..870
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 872..890

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

          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

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

            protected $dispose(this: Partial<Writable<this>>): void {
              this.bindingDI = void 0;
              this.boundDI = void 0;
              this.attachingDI = void 0;
              this.attachedDI = void 0;
          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 179..187

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

          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

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

            public enter(vm: TestVM, tracker: Notifier): void {
              const label = `${this.prefix}.${vm.name}.${tracker.name}`;
              this.entryNotifyHistory.push(label);
              this.fullNotifyHistory.push(`${label}.enter`);
            }
          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 253..257

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

          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

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

            public tick(vm: TestVM, tracker: Notifier, i: number): void {
              const label = `${this.prefix}.${vm.name}.${tracker.name}`;
              this.fullNotifyHistory.push(`${label}.tick(${i})`);
            }
          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 262..265

          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

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

            for (const groupName of groupNames) {
              expectedGroups[groupName] = expected.filter(x => x.startsWith(`${groupName}.`));
              actualGroups[groupName] = actual.filter(x => x.startsWith(`${groupName}.`));
            }
          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 365..368

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

          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

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

            public leave(vm: TestVM, tracker: Notifier): void {
              const label = `${this.prefix}.${vm.name}.${tracker.name}`;
              this.fullNotifyHistory.push(`${label}.leave`);
            }
          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 258..261

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

          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

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

            if (errors.some(e => e.startsWith('N'))) {
              throw new Error(`Failed assertion: invocation mismatch\n  - ${errors.join('\n  - ')})`);
            } else {
              // fallback just to make sure there's no bugs in this function causing false positives
              assert.deepStrictEqual(actual, expected);
          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 385..390

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

          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

            public detaching(i: HC, p: HPC): void | Promise<void> { return this.detachingDI.invoke(this, () => { this.$detaching(i, p); }); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1718..1718
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1719..1719
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1720..1720
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1723..1723

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

          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

            public attaching(i: HC, p: HPC): void | Promise<void> { return this.attachingDI.invoke(this, () => { this.$attaching(i, p); }); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1718..1718
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1719..1719
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1722..1722
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1723..1723

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

          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

            public bound(i: HC, p: HPC): void | Promise<void> { return this.boundDI.invoke(this, () => { this.$bound(i, p); }); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1718..1718
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1720..1720
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1722..1722
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1723..1723

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

          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

            public binding(i: HC, p: HPC): void | Promise<void> { return this.bindingDI.invoke(this, () => { this.$binding(i, p); }); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1719..1719
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1720..1720
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1722..1722
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1723..1723

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

          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

            public unbinding(i: HC, p: HPC): void | Promise<void> { return this.unbindingDI.invoke(this, () => { this.$unbinding(i, p); }); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1718..1718
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1719..1719
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1720..1720
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1722..1722

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

          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

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

                  if (++i === 0) {
                    this.mgr[this.name].enter(vm);
                  } else {
                    this.mgr[this.name].tick(vm, i);
                  }
          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 334..338

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

          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

                  app: {
                    ...allSyncSpecs,
                    detaching: (mgr, p) => DelayedInvoker.detaching(mgr, p, 1),
                    unbinding: (mgr, p) => DelayedInvoker.unbinding(mgr, p, 1),
                    toString() { return 'async_detaching+unbinding'; },
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 546..551
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 567..572
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 595..600
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 628..633
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 656..661
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 679..684
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 685..690

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

          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

                  a1: {
                    ...allSyncSpecs,
                    detaching: (mgr, p) => DelayedInvoker.detaching(mgr, p, 1),
                    unbinding: (mgr, p) => DelayedInvoker.unbinding(mgr, p, 1),
                    toString() { return 'async_detaching+unbinding'; },
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 523..528
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 567..572
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 595..600
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 628..633
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 656..661
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 679..684
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 685..690

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

          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

                  app: {
                    ...allSyncSpecs,
                    detaching: (mgr, p) => DelayedInvoker.detaching(mgr, p, 1),
                    unbinding: (mgr, p) => DelayedInvoker.unbinding(mgr, p, 1),
                    toString() { return 'async_detaching+unbinding'; },
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 523..528
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 546..551
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 567..572
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 628..633
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 656..661
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 679..684
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 685..690

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

          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

                  app: {
                    ...allSyncSpecs,
                    detaching: (mgr, p) => DelayedInvoker.detaching(mgr, p, 1),
                    unbinding: (mgr, p) => DelayedInvoker.unbinding(mgr, p, 1),
                    toString() { return 'async_detaching+unbinding'; },
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 523..528
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 546..551
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 595..600
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 628..633
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 656..661
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 679..684
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 685..690

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

          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

                  a1: {
                    ...allSyncSpecs,
                    detaching: (mgr, p) => DelayedInvoker.detaching(mgr, p, 1),
                    unbinding: (mgr, p) => DelayedInvoker.unbinding(mgr, p, 1),
                    toString() { return 'async_detaching+unbinding'; },
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 523..528
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 546..551
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 567..572
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 595..600
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 628..633
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 679..684
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 685..690

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

          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

                  a1: {
                    ...allSyncSpecs,
                    detaching: (mgr, p) => DelayedInvoker.detaching(mgr, p, 1),
                    unbinding: (mgr, p) => DelayedInvoker.unbinding(mgr, p, 1),
                    toString() { return 'async_detaching+unbinding'; },
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 523..528
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 546..551
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 567..572
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 595..600
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 656..661
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 679..684
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 685..690

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

          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

                  a1: {
                    ...allSyncSpecs,
                    detaching: (mgr, p) => DelayedInvoker.detaching(mgr, p, 1),
                    unbinding: (mgr, p) => DelayedInvoker.unbinding(mgr, p, 1),
                    toString() { return 'async_detaching+unbinding'; },
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 523..528
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 546..551
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 567..572
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 595..600
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 628..633
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 656..661
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 679..684

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

          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

                  app: {
                    ...allSyncSpecs,
                    detaching: (mgr, p) => DelayedInvoker.detaching(mgr, p, 1),
                    unbinding: (mgr, p) => DelayedInvoker.unbinding(mgr, p, 1),
                    toString() { return 'async_detaching+unbinding'; },
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 523..528
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 546..551
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 567..572
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 595..600
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 628..633
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 656..661
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 685..690

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

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

            public static attached(mgr: INotifierManager, p: IPlatform, ticks: number | null = null): DelayedInvoker<'attached'> { return new DelayedInvoker(mgr, p, 'attached', ticks); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1851..1851
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1852..1852
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1853..1853
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1855..1855
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1856..1856
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1857..1857

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

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

            public static dispose(mgr: INotifierManager, p: IPlatform, ticks: number | null = null): DelayedInvoker<'dispose'> { return new DelayedInvoker(mgr, p, 'dispose', ticks); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1851..1851
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1852..1852
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1853..1853
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1854..1854
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1855..1855
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1856..1856

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

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

            public static bound(mgr: INotifierManager, p: IPlatform, ticks: number | null = null): DelayedInvoker<'bound'> { return new DelayedInvoker(mgr, p, 'bound', ticks); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1851..1851
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1853..1853
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1854..1854
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1855..1855
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1856..1856
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1857..1857

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

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

            public static attaching(mgr: INotifierManager, p: IPlatform, ticks: number | null = null): DelayedInvoker<'attaching'> { return new DelayedInvoker(mgr, p, 'attaching', ticks); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1851..1851
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1852..1852
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1854..1854
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1855..1855
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1856..1856
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1857..1857

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

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

            public static binding(mgr: INotifierManager, p: IPlatform, ticks: number | null = null): DelayedInvoker<'binding'> { return new DelayedInvoker(mgr, p, 'binding', ticks); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1852..1852
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1853..1853
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1854..1854
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1855..1855
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1856..1856
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1857..1857

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

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

            public static detaching(mgr: INotifierManager, p: IPlatform, ticks: number | null = null): DelayedInvoker<'detaching'> { return new DelayedInvoker(mgr, p, 'detaching', ticks); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1851..1851
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1852..1852
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1853..1853
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1854..1854
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1856..1856
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1857..1857

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

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

            public static unbinding(mgr: INotifierManager, p: IPlatform, ticks: number | null = null): DelayedInvoker<'unbinding'> { return new DelayedInvoker(mgr, p, 'unbinding', ticks); }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1851..1851
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1852..1852
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1853..1853
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1854..1854
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1855..1855
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1857..1857

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

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

                const componentSpec: IDelayedInvokerSpec = {
                  ...allSyncSpecs,
                  attaching: () => DelayedInvoker.attaching(mgr, p, 3),
                  detaching: () => DelayedInvoker.detaching(mgr, p, 3),
                };
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 980..984
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1091..1095
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1148..1152

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 53.

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

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

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

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

          Refactorings

          Further Reading

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

                const hookSpec: IDelayedInvokerSpec = {
                  ...allSyncSpecs,
                  detaching: () => DelayedInvoker.detaching(mgr, p, 2),
                  unbinding: () => DelayedInvoker.unbinding(mgr, p, 2),
                };
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 980..984
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1091..1095
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1541..1545

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 53.

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

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

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

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

          Refactorings

          Further Reading

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

                const childSpec: IDelayedInvokerSpec = {
                  ...allSyncSpecs,
                  attaching: () => DelayedInvoker.attaching(mgr, p, 1),
                  attached: () => DelayedInvoker.attached(mgr, p, 1),
                };
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1091..1095
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1148..1152
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1541..1545

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 53.

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

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

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

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

          Refactorings

          Further Reading

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

                const hookSpec: IDelayedInvokerSpec = {
                  ...allSyncSpecs,
                  binding: () => DelayedInvoker.binding(mgr, p, 1),
                  bound: () => DelayedInvoker.bound(mgr, p, 1),
                };
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 980..984
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1148..1152
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1541..1545

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 53.

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

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

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

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

          Refactorings

          Further Reading

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

                @customElement({ name: 'app', template: '<p-1></p-1><p-2></p-2>', dependencies: [P1, P2] })class App extends TestVM { public constructor() { super(mgr, p, hookSpec); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1237..1237

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

          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

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

                @customElement({ name: 'app', template: '<p-1></p-1><p-2></p-2>', dependencies: [P1, P2] })class App extends TestVM { public constructor() { super(mgr, p, hookSpec); } }
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1373..1373

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

          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

                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                  'start.app.binding.enter',
                  'start.app.binding.leave',
                  'start.app.bound.enter',
                  'start.app.bound.leave',
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1107..1142

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 47.

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

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

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

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

          Refactorings

          Further Reading

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

                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                  'start.app.binding.enter',
                  'start.app.binding.tick(1)',
                  'start.app.binding.leave',
                  'start.app.bound.enter',
          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1050..1085

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 47.

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

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

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

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

          Refactorings

          Further Reading

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

            public dispose(): void { void this.disposeDI.invoke(this, () => { this.$dispose(); }); }
          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 167..167

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

          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