aurelia/aurelia

View on GitHub
packages/__tests__/src/router-lite/hook-tests.spec.ts

Summary

Maintainability
F
2 mos
Test Coverage

File hook-tests.spec.ts has 4136 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Constructable, DI, ILogConfig, LogLevel, Registration, Writable, onResolve, resolve } from '@aurelia/kernel';
import {
  CustomElement,
  customElement,
  ICustomElementController,
Severity: Major
Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 wk to fix

    Function getTestData has 340 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function* getTestData(): Generator<[hook: HookName, getExpectedErrorLog: (phase: Phase) => any[]]> {
              yield [
                'canLoad',
                (phase: Phase) => {
                  switch (phase) {
    Severity: Major
    Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 day to fix

      Function $ has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
      Open

      function* $(
        prefix: string,
        component: string | string[],
        ticks: number,
        ...calls: (string | Generator<string, void>)[]
      Severity: Minor
      Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 7 hrs to fix

      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 getTestData has 183 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function* getTestData(): Generator<[hook: HookName, getExpectedErrorLog: (phase: Phase) => any[]]> {
                yield [
                  'canLoad',
                  function getExpectedErrorLog(phase: Phase) {
                    switch (phase) {
      Severity: Major
      Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 7 hrs to fix

        Function getTestData has 175 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function* getTestData(): Generator<[hook: HookName, getExpectedErrorLog: (phase: string, currentParent: string, currentChild: string, nextParent: string, nextChild: string) => any[]]> {
                  yield [
                    'canLoad',
                    function getExpectedErrorLog(phase: string, currentParent: string, currentChild: string, nextParent: string, nextChild: string) {
                      return currentParent === nextParent
        Severity: Major
        Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 7 hrs to fix

          Function expected has 85 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  const expected = [...(function* () {
                    yield* $('start', 'root', 0, 'binding', 'bound', 'attaching', 'attached');
          
                    const hookName = hookSpec.toString().slice(0, -3) as typeof hookNames[number];
                    yield* $(phase1, ['a', 'b'], 0, 'canLoad', 'loading', 'binding', 'bound', 'attaching', 'attached');
          Severity: Major
          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 3 hrs to fix

            Function getTestData has 79 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function* getTestData(): Generator<[hook: HookName, getExpectedErrorLog: (phase: string, current: string) => any[]]> {
                      yield [
                        'canLoad',
                        function getExpectedErrorLog(phase: string, current: string) {
                          return [
            Severity: Major
            Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 3 hrs to fix

              Function expected has 70 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                            const expected = [...(function* () {
                              switch (ticks) {
                                case 0:
                                  yield* $('start', 'root2', ticks, 'binding', 'bound', 'attaching', 'attached');
              
              
              Severity: Major
              Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 2 hrs to fix

                TestVM has 24 functions (exceeds 20 allowed). Consider refactoring.
                Open

                abstract class TestVM implements IViewModel {
                  public readonly $controller!: ICustomElementController<this>;
                  public get name(): string { return this.$controller.definition.name; }
                
                  public readonly bindingDI: DelayedInvoker<'binding'>;
                Severity: Minor
                Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 2 hrs to fix

                  Function interleave has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function* interleave(
                    ...generators: Generator<string, void>[]
                  ) {
                    while (generators.length > 0) {
                      for (let i = 0, ii = generators.length; i < ii; ++i) {
                  Severity: Minor
                  Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 2 hrs to fix

                  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 createCes has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          function createCes(hook: string) {
                            const hookSpec = HookSpecs.create(ticks);
                            @customElement({ name: 'gc-11', template: 'gc-11' })
                            class Gc11 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                            @customElement({ name: 'gc-12', template: 'gc-12' })
                  Severity: Major
                  Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 2 hrs to fix

                    Function expected has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                  const expected = [...(function* () {
                                    switch (ticks) {
                                      case 0:
                                        yield* $('start', 'root2', ticks, 'binding', 'bound', 'attaching', 'attached');
                                        yield* $(phase1, t1, ticks, 'canLoad', 'loading', 'binding', 'bound', 'attaching', 'attached');
                    Severity: Minor
                    Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                      Function expected has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              const expected = [...(function* () {
                                yield* $(`start`, 'root', 0, 'binding', 'bound', 'attaching', 'attached');
                                yield* interleave(
                                  $(phase1, 'a1', a1CanLoad, 'canLoad'),
                                  $(phase1, 'b1', b1CanLoad, 'canLoad'),
                      Severity: Minor
                      Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                        Function createFixture has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        async function createFixture<T extends Constructable>(
                          Component: T,
                          deps: Constructable[] = [],
                          level: LogLevel = LogLevel.fatal,
                          restorePreviousRouteTreeOnError: boolean = true,
                        Severity: Minor
                        Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

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

                          function* $(
                            prefix: string,
                            component: string | string[],
                            ticks: number,
                            ...calls: (string | Generator<string, void>)[]
                          Severity: Minor
                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                            Function verifyInvocationsEqual has a Cognitive Complexity of 11 (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[]> = {};
                            Severity: Minor
                            Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                            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 createCes has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function createCes(hook: string) {
                                      const hookSpec = HookSpecs.create(ticks);
                                      @route('a')
                                      @customElement({ name: 'ce-a', template: 'a' })
                                      class A extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                            Severity: Minor
                            Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                              Function createCes has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function createCes(hook: string) {
                                        const hookSpec = HookSpecs.create(ticks);
                                        @route(['', 'a'])
                                        @customElement({ name: 'ce-a', template: 'a' })
                                        class A extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                              Severity: Minor
                              Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

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

                                            function getExpectedErrorLog(phase: Phase) {
                                              switch (phase) {
                                                case 'round#2': return [
                                                  ...$(phase, ['ce-b'], ticks, 'canUnload'),
                                                  ...$(phase, ['ce-c'], ticks, 'canLoad'),
                                Severity: Minor
                                Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

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

                                              function getExpectedErrorLog(phase: Phase) {
                                                switch (phase) {
                                                  case 'round#2': return [
                                                    ...$(phase, ['ce-b'], ticks, 'canUnload'),
                                                    ...$(phase, ['ce-c'], ticks, 'canLoad'),
                                  Severity: Minor
                                  Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

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

                                                function getExpectedErrorLog(phase: Phase) {
                                                  switch (phase) {
                                                    case 'round#2': return [
                                                      ...$(phase, ['ce-b'], ticks, 'canUnload'),
                                                      ...$(phase, ['ce-c'], ticks, 'canLoad'),
                                    Severity: Minor
                                    Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                                      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[]> = {};
                                      Severity: Minor
                                      Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

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

                                                    function getExpectedErrorLog(phase: string) {
                                                      switch (phase) {
                                                        case 'round#2': return [
                                                          ...$(phase, ['ce-b'], ticks, 'canUnload'),
                                                          ...$(phase, ['ce-c'], ticks, 'canLoad'),
                                        Severity: Minor
                                        Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

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

                                            public invoke(vm: TestVM, cb: () => any): any { // TODO(fkleuver): get rid of `any`
                                              if (this.ticks === 0) {
                                                this.mgr[this.name].enter(vm);
                                                const value = cb();
                                                this.mgr[this.name].leave(vm);
                                          Severity: Minor
                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

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

                                              public invoke(vm: TestVM, cb: () => any): any { // TODO(fkleuver): get rid of `any`
                                                if (this.ticks === 0) {
                                                  this.mgr[this.name].enter(vm);
                                                  const value = cb();
                                                  this.mgr[this.name].leave(vm);
                                            Severity: Minor
                                            Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                                            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 runTest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                  function runTest(spec: IErrorSpec) {
                                                    it(`re-throws ${spec} - without recovery`, async function () {
                                                      const components = spec.createCes();
                                                      @route({ routes: components.map(component => ({ path: CustomElement.getDefinition(component).name, component })) })
                                                      @customElement({ name: 'root', template: '<au-viewport></au-viewport>' })
                                            Severity: Minor
                                            Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                                              Function getExpectedErrorLog has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                          function getExpectedErrorLog(phase: Phase) {
                                                            switch (phase) {
                                                              case 'round#2': return [
                                                                ...$(phase, ['ce-b'], ticks, 'canUnload'),
                                                                ...$(phase, ['ce-c'], ticks, 'canLoad'),
                                              Severity: Minor
                                              Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                                                Function expected has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                        const expected = [...(function* () {
                                                          yield* $(`start`, 'root', 0, 'binding', 'bound', 'attaching', 'attached');
                                                
                                                          yield* interleave(
                                                            $(phase1, 'a', aCanLoad, 'canLoad'),
                                                Severity: Minor
                                                Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 1 hr to fix

                                                  Avoid deeply nested control flow statements.
                                                  Open

                                                            if (value.endsWith('>')) {
                                                              yield value.slice(0, -1);
                                                              yield gen.next().value as string;
                                                            } else if (value.endsWith('dispose.enter')) {
                                                              yield value;
                                                  Severity: Major
                                                  Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 45 mins to fix

                                                    Avoid deeply nested control flow statements.
                                                    Open

                                                            if (component.length > 0) {
                                                              if (!call.includes('.')) {
                                                                yield `${prefix}.${component}.${call}.enter`;
                                                                if (call !== 'dispose') {
                                                                  for (let i = 1; i <= ticks; ++i) {
                                                    Severity: Major
                                                    Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 45 mins to fix

                                                      Avoid deeply nested control flow statements.
                                                      Open

                                                                            if ($t1.p === $t2.p) {
                                                                              yield* $(phase, $t1.c, ticks, 'canUnload');
                                                                              yield* $(phase, $t2.c, ticks, 'canLoad');
                                                                              yield* $(phase, $t1.c, ticks, 'unloading');
                                                                              yield* $(phase, $t2.c, ticks, 'loading');
                                                      Severity: Major
                                                      Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 45 mins to fix

                                                        Avoid deeply nested control flow statements.
                                                        Open

                                                                              if ($t1.p === $t2.p) {
                                                                                yield* $(phase, $t1.c, ticks, 'canUnload');
                                                                                yield* $(phase, $t2.c, ticks, 'canLoad');
                                                                                yield* $(phase, $t1.c, ticks, 'unloading');
                                                                                yield* $(phase, $t2.c, ticks, 'loading');
                                                        Severity: Major
                                                        Found in packages/__tests__/src/router-lite/hook-tests.spec.ts - About 45 mins to fix

                                                          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[] = [];
                                                          
                                                          
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 2 days to fix
                                                          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1743..1775

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, ['gc-11', 'gc-12', 'gc-21', 'gc-22', 'p-1', 'p-2'], ticks, 'canUnload'),
                                                                    ...$(phase, ['p-2', 'p-1'], ticks, 'canLoad'),
                                                                    ...$(phase, ['gc-11', 'gc-12', 'p-1', 'gc-21', 'gc-22', 'p-2'], ticks, 'unloading'),
                                                                    ...$(phase, ['p-2', 'p-1'], ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 day to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3154..3173

                                                          Duplicated Code

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

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

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

                                                          Tuning

                                                          This issue has a mass of 269.

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, ['gc-22', 'gc-21', 'gc-12', 'gc-11', 'p-2', 'p-1'], ticks, 'canUnload'),
                                                                    ...$(phase, ['p-1', 'p-2'], ticks, 'canLoad'),
                                                                    ...$(phase, ['gc-22', 'gc-21', 'p-2', 'gc-12', 'gc-11', 'p-1'], ticks, 'unloading'),
                                                                    ...$(phase, ['p-1', 'p-2'], ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 day to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3089..3108

                                                          Duplicated Code

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

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

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

                                                          Tuning

                                                          This issue has a mass of 269.

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                  ...$(phase, ['gc12', 'gc22', 'c1', 'c2'], ticks, 'canUnload'),
                                                                  ...$(phase, ['c2', 'c1'], ticks, 'canLoad'),
                                                                  ...$(phase, ['gc12', 'c1', 'gc22', 'c2'], ticks, 'unloading'),
                                                                  ...$(phase, ['c2', 'c1'], ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 7 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2388..2402

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

                                                          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, [
                                                                  ...$(phase, ['gc21', 'gc11', 'c2', 'c1'], ticks, 'canUnload'),
                                                                  ...$(phase, ['c1', 'c2'], ticks, 'canLoad'),
                                                                  ...$(phase, ['gc21', 'c2', 'gc11', 'c1'], ticks, 'unloading'),
                                                                  ...$(phase, ['c1', 'c2'], ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 7 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2367..2381

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                              for (const [phase, { $t1, $t2 }] of [
                                                                                [phase2, { $t1: t1, $t2: t2 }],
                                                                                [phase3, { $t1: t2, $t2: t3 }],
                                                                                [phase4, { $t1: t3, $t2: t4 }],
                                                                              ] as const) {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 6 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 627..639

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                              for (const [phase, { $t1, $t2 }] of [
                                                                                [phase2, { $t1: t1, $t2: t2 }],
                                                                                [phase3, { $t1: t2, $t2: t3 }],
                                                                                [phase4, { $t1: t3, $t2: t4 }],
                                                                              ] as const) {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 6 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 649..661

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

                                                          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, [
                                                                  ...$(phase, ['gc12', 'c1'], ticks, 'canUnload'),
                                                                  ...$(phase, 'c2', ticks, 'canLoad'),
                                                                  ...$(phase, ['gc12', 'c1'], ticks, 'unloading'),
                                                                  ...$(phase, 'c2', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2546..2559

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

                                                          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,
                                                                    [
                                                                      ...$(phase, ['nf', 'c1'], ticks, 'canUnload'),
                                                                      ...$(phase, 'c2', ticks, 'canLoad'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2179..2189

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

                                                          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;
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 4 hrs to fix
                                                          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1732..1740

                                                          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

                                                                    @route('c')
                                                                    @customElement({ name: 'ce-c', template: 'c' })
                                                                    class C extends TestVM {
                                                                      public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                      public [hook](...args: any[]): any {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4032..4041

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

                                                          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

                                                                    @route('c')
                                                                    @customElement({ name: 'ce-c', template: 'c' })
                                                                    class C extends TestVM {
                                                                      public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                      public [hook](...args: any[]): any {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3245..3254

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                  ...$(phase, ['s1', 's2'], ticks, 'canUnload'),
                                                                  ...$(phase, ['s2', 's1'], ticks, 'canLoad'),
                                                                  ...$(phase, ['s1', 's2'], ticks, 'unloading'),
                                                                  ...$(phase, ['s2', 's1'], ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2278..2287
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2949..2958

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, ['s1', 's3'], ticks, 'canUnload'),
                                                                    ...$(phase, ['s3', 's2'], ticks, 'canLoad'),
                                                                    ...$(phase, ['s1', 's3'], ticks, 'unloading'),
                                                                    ...$(phase, ['s3', 's2'], ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2262..2271
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2278..2287

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                  ...$(phase, ['s2', 's1'], ticks, 'canUnload'),
                                                                  ...$(phase, ['s3', 's2'], ticks, 'canLoad'),
                                                                  ...$(phase, ['s2', 's1'], ticks, 'unloading'),
                                                                  ...$(phase, ['s3', 's2'], ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2262..2271
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2949..2958

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @customElement({ name: 'gc-23', template: 'gc-23' })
                                                                      class Gc23 extends TestVM {
                                                                        public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                        public [hook](...args: any[]): any {
                                                                          return onResolve(super[hook].apply(this, args), () => {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 5 other locations - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3613..3621
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3743..3751
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3758..3766
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3890..3898
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3921..3929

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @customElement({ name: 'gc-23', template: 'gc-23' })
                                                                      class Gc23 extends TestVM {
                                                                        public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                        public [hook](...args: any[]): any {
                                                                          return onResolve(super[hook].apply(this, args), () => {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 5 other locations - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3613..3621
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3628..3636
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3743..3751
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3758..3766
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3890..3898

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @customElement({ name: 'gc-13', template: 'gc-13' })
                                                                      class Gc13 extends TestVM {
                                                                        public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                        public [hook](...args: any[]): any {
                                                                          return onResolve(super[hook].apply(this, args), () => {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 5 other locations - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3613..3621
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3628..3636
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3743..3751
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3758..3766
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3921..3929

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @customElement({ name: 'gc-13', template: 'gc-13' })
                                                                      class Gc13 extends TestVM {
                                                                        public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                        public [hook](...args: any[]): any {
                                                                          return onResolve(super[hook].apply(this, args), () => {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 5 other locations - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3613..3621
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3628..3636
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3758..3766
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3890..3898
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3921..3929

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @customElement({ name: 'gc-23', template: 'gc-23' })
                                                                      class Gc23 extends TestVM {
                                                                        public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                        public [hook](...args: any[]): any {
                                                                          return onResolve(super[hook].apply(this, args), () => {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 5 other locations - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3613..3621
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3628..3636
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3743..3751
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3890..3898
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3921..3929

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @customElement({ name: 'gc-13', template: 'gc-13' })
                                                                      class Gc13 extends TestVM {
                                                                        public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                        public [hook](...args: any[]): any {
                                                                          return onResolve(super[hook].apply(this, args), () => {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 5 other locations - About 4 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3628..3636
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3743..3751
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3758..3766
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3890..3898
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3921..3929

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                    @customElement({ name: 'gc-13', template: 'gc-13' })
                                                                    class Gc13 extends TestVM {
                                                                      public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                      public [hook](...args: any[]): any {
                                                                        return onResolve(super[hook](...args), () => {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4309..4317

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                    @customElement({ name: 'gc-23', template: 'gc-23' })
                                                                    class Gc23 extends TestVM {
                                                                      public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); }
                                                                      public [hook](...args: any[]): any {
                                                                        return onResolve(super[hook](...args), () => {
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4296..4304

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

                                                          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

                                                                    @route({
                                                                      routes: [
                                                                        { path: 'a11', component: PcA11 },
                                                                        { path: 'a12', component: PcA12 },
                                                                        { path: 'a13', component: PcA13 },
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 713..721

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

                                                          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

                                                                    @route({
                                                                      routes: [
                                                                        { path: 'a11', component: PcA11 },
                                                                        { path: 'a12', component: PcA12 },
                                                                        { path: 'a14', component: PcA14 },
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 723..731

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

                                                          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 ($t1.p === $t2.p) {
                                                                                  yield* $(phase, $t1.c, ticks, 'canUnload');
                                                                                  yield* $(phase, $t2.c, ticks, 'canLoad');
                                                                                  yield* $(phase, $t1.c, ticks, 'unloading');
                                                                                  yield* $(phase, $t2.c, ticks, 'loading');
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 856..877

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

                                                          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 ($t1.p === $t2.p) {
                                                                                  yield* $(phase, $t1.c, ticks, 'canUnload');
                                                                                  yield* $(phase, $t2.c, ticks, 'canLoad');
                                                                                  yield* $(phase, $t1.c, ticks, 'unloading');
                                                                                  yield* $(phase, $t2.c, ticks, 'loading');
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 819..839

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'gc-11', component: Gc11 },
                                                                      { path: 'gc-12', component: Gc12 },
                                                                      { path: 'gc-13', component: Gc13 },
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2879..2887
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3017..3025
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4319..4327
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4329..4337

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

                                                          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

                                                                    @route({
                                                                      routes: [
                                                                        { path: 'gc-11', component: Gc11 },
                                                                        { path: 'gc-12', component: Gc12 },
                                                                        { path: 'gc-13', component: Gc13 },
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2879..2887
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3007..3015
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3017..3025
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4329..4337

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 's1', component: S1 },
                                                                      { path: 's2', component: S2 },
                                                                      { path: 's3', component: S3 },
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3007..3015
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3017..3025
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4319..4327
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4329..4337

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'gc-21', component: Gc21 },
                                                                      { path: 'gc-22', component: Gc22 },
                                                                      { path: 'gc-23', component: Gc23 },
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2879..2887
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3007..3015
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4319..4327
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4329..4337

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

                                                          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

                                                                    @route({
                                                                      routes: [
                                                                        { path: 'gc-21', component: Gc21 },
                                                                        { path: 'gc-22', component: Gc22 },
                                                                        { path: 'gc-23', component: Gc23 },
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2879..2887
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3007..3015
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3017..3025
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4319..4327

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

                                                          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,
                                                                    withInitialLoad
                                                                      ? [
                                                                        ...$(phase, 'a', ticks, 'canUnload'),
                                                                        ...$(phase, 'b', ticks, 'canLoad'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1822..1832

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

                                                          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,
                                                                    withInitialLoad
                                                                      ? [
                                                                        ...$(phase, 'a', ticks, 'canUnload'),
                                                                        ...$(phase, 'c', ticks, 'canLoad'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1725..1736

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

                                                          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`);
                                                            }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1803..1807

                                                          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

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

                                                                @route({
                                                                  routes: [
                                                                    { path: 'gc11', component: GC11 },
                                                                    { path: 'gc12', component: GC12 },
                                                                  ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1981..1989
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2086..2094
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2096..2104
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2106..2114
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2323..2331
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2493..2501

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'gc21', component: GC21 },
                                                                      { path: 'gc22', component: GC22 },
                                                                    ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1981..1989
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2086..2094
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2096..2104
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2106..2114
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2313..2321
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2323..2331

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

                                                          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

                                                                @route({
                                                                  routes: [
                                                                    { path: 'gc21', component: GC21 },
                                                                    { path: 'gc22', component: GC22 },
                                                                  ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1981..1989
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2086..2094
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2096..2104
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2106..2114
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2313..2321
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2493..2501

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

                                                          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

                                                                @route({
                                                                  routes: [
                                                                    { path: 'gc21', component: GC21 },
                                                                    { path: 'gc22', component: GC22 },
                                                                  ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1981..1989
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2086..2094
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2106..2114
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2313..2321
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2323..2331
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2493..2501

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

                                                          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

                                                                @route({
                                                                  routes: [
                                                                    { path: 'c1', component: C1 },
                                                                    { path: 'c2', component: C2 },
                                                                  ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1981..1989
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2086..2094
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2096..2104
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2313..2321
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2323..2331
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2493..2501

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

                                                          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

                                                                @route({
                                                                  routes: [
                                                                    { path: 'c1', component: C1 },
                                                                    { path: 'c2', component: C2 },
                                                                  ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2086..2094
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2096..2104
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2106..2114
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2313..2321
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2323..2331
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2493..2501

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

                                                          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

                                                                @route({
                                                                  routes: [
                                                                    { path: 'gc11', component: GC11 },
                                                                    { path: 'gc12', component: GC12 },
                                                                  ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1981..1989
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2096..2104
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2106..2114
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2313..2321
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2323..2331
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2493..2501

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'p', component: P },
                                                                      { path: fallback, component: NF },
                                                                    ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2437..2445

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'p', component: P },
                                                                      { path: fallback, component: NF },
                                                                    ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2515..2523

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'a', component: A },
                                                                      { path: 'b', component: B },
                                                                    ]
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1390..1399

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'a1', component: A1 },
                                                                      { path: 'b1', component: B1 },
                                                                    ]
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1114..1121

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

                                                          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

                                                                const spec: ISiblingTransitionSpec = {
                                                                  a: HookSpecs.create(1, {
                                                                    canLoad: DelayedInvoker.canLoad(aCanLoad),
                                                                    loading: DelayedInvoker.loading(aLoad),
                                                                  }),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1183..1192

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

                                                          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

                                                                const spec: IParentChildTransitionSpec = {
                                                                  a1: HookSpecs.create(1, {
                                                                    canLoad: DelayedInvoker.canLoad(a1CanLoad),
                                                                    loading: DelayedInvoker.loading(a1Load),
                                                                  }),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1095..1104

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

                                                          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})`);
                                                            }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 3 hrs to fix
                                                          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1812..1815

                                                          Duplicated Code

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

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

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

                                                          Tuning

                                                          This issue has a mass of 95.

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'c1', component: C1 },
                                                                      { path: 'c2', component: C2 },
                                                                    ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1930..1937
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2333..2340
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2503..2510

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

                                                          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

                                                                @route({
                                                                  routes: [
                                                                    { path: 's1', component: S1 },
                                                                    { path: 's2', component: S2 },
                                                                  ]
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2333..2340
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2425..2432
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2503..2510

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

                                                          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

                                                                @route({
                                                                  routes: [
                                                                    { path: 'c1', component: C1 },
                                                                    { path: 'c2', component: C2 },
                                                                  ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1930..1937
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2425..2432
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2503..2510

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'c1', component: C1 },
                                                                      { path: 'c2', component: C2 },
                                                                    ],
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1930..1937
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2333..2340
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2425..2432

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

                                                          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}.`));
                                                            }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 2 hrs to fix
                                                          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1902..1905

                                                          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

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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'gc-11', component: Gc11 },
                                                                      { path: 'gc-12', component: Gc12 },
                                                                    ]
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2712..2719
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2721..2731
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3027..3037
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4339..4349

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

                                                          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

                                                                    @route({
                                                                      routes: [
                                                                        { path: 'p1', component: P1 },
                                                                        { path: 'p2', component: P2 },
                                                                      ]
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2703..2710
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2712..2719
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2721..2731
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3027..3037

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'gc-21', component: Gc21 },
                                                                      { path: 'gc-22', component: Gc22 },
                                                                    ]
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2703..2710
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2721..2731
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3027..3037
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4339..4349

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'p1', component: P1 },
                                                                      { path: 'p2', component: P2 },
                                                                    ]
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2703..2710
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2712..2719
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3027..3037
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4339..4349

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

                                                          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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'p1', component: P1 },
                                                                      { path: 'p2', component: P2 },
                                                                    ]
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2703..2710
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2712..2719
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2721..2731
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4339..4349

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

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

                                                          function vp(count: number): string {
                                                            if (count === 1) {
                                                              return `<au-viewport></au-viewport>`;
                                                            }
                                                            let template = '';
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/config-tests.spec.ts on lines 12..21
                                                          packages/__tests__/src/router/config-tests.spec.ts on lines 11..20

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

                                                          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`);
                                                            }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 2 hrs to fix
                                                          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1808..1811

                                                          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

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

                                                                  @route({ routes: [{ path: 'c', component: C }] })
                                                                  @customElement({ name: 'b', template: '<au-viewport></au-viewport>' })
                                                                  class B extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), HookSpecs.create(0)); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 943..945
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 946..948
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1207..1211

                                                          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

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

                                                                  @route({ routes: [{ path: 'b', component: B }] })
                                                                  @customElement({ name: 'a', template: '<au-viewport></au-viewport>' })
                                                                  class A extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), HookSpecs.create(0)); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 940..942
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 946..948
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1207..1211

                                                          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

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

                                                                  @route({ routes: [{ path: 'a', component: A }] })
                                                                  @customElement({ name: 'root', template: '<au-viewport></au-viewport>' })
                                                                  class Root extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), HookSpecs.create(0)); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 940..942
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 943..945
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1207..1211

                                                          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

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

                                                                  @route({ routes: [{ path: 'a1', component: A1 }] })
                                                                  @customElement({ name: 'root', template: '<au-viewport></au-viewport>' })
                                                                  class Root extends TestVM {
                                                                    public constructor() { super(resolve(INotifierManager), resolve(IPlatform), HookSpecs.create(0)); }
                                                                  }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 940..942
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 943..945
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 946..948

                                                          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

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

                                                                @route({
                                                                  routes: [
                                                                    {
                                                                      path: 'p',
                                                                      component: P
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2116..2125
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2485..2491

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  @route({
                                                                    routes: [
                                                                      { path: 'gc1', component: GC1 },
                                                                    ]
                                                                  })
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1991..2000
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2116..2125

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @route({
                                                                        path: ['', 'p1'],
                                                                        routes: [Gc11, Gc12, Gc13]
                                                                      })
                                                                      @customElement({
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3638..3643
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3931..3939

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                @route({
                                                                  routes: [
                                                                    {
                                                                      path: 'p',
                                                                      component: P
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1991..2000
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2485..2491

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @route({
                                                                        path: ['', 'p1'],
                                                                        routes: [Gc11, Gc12, Gc13]
                                                                      })
                                                                      @customElement({ name: 'p-1', template: `p1 <au-viewport></au-viewport>` })
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3768..3782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3931..3939

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @route({
                                                                        path: ['', 'p1'],
                                                                        routes: [Gc11, Gc12, Gc13]
                                                                      })
                                                                      @customElement({
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3638..3643
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3768..3782

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

                                                          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, [
                                                                    ...$(phase, 'b', ticks, 'canUnload'),
                                                                    ...$(phase, 'c', ticks, 'canLoad'),
                                                                    ...$(phase, 'b', ticks, 'unloading'),
                                                                    ...$(phase, 'c', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1882..1889

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

                                                          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, [
                                                                    ...$(phase, 'a', ticks, 'canUnload'),
                                                                    ...$(phase, 'c', ticks, 'canLoad'),
                                                                    ...$(phase, 'a', ticks, 'unloading'),
                                                                    ...$(phase, 'c', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1854..1861

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory,
                                                                    [
                                                                      ...$(phase, 'c', ticks, 'canUnload'),
                                                                      ...$(phase, 'b', ticks, 'canLoad'),
                                                                      ...$(phase, 'c', ticks, 'unloading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, 's2', ticks, 'canUnload'),
                                                                    ...$(phase, 's3', ticks, 'canLoad'),
                                                                    ...$(phase, 's2', ticks, 'unloading'),
                                                                    ...$(phase, 's3', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                  ...$(phase, 'c2', ticks, 'canUnload'),
                                                                  ...$(phase, 'c1', ticks, 'canLoad'),
                                                                  ...$(phase, 'c2', ticks, 'unloading'),
                                                                  ...$(phase, 'c1', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, 'b', ticks, 'canUnload'),
                                                                    ...$(phase, 'a', ticks, 'canLoad'),
                                                                    ...$(phase, 'b', ticks, 'unloading'),
                                                                    ...$(phase, 'a', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, 'a', ticks, 'canUnload'),
                                                                    ...$(phase, 'b', ticks, 'canLoad'),
                                                                    ...$(phase, 'a', ticks, 'unloading'),
                                                                    ...$(phase, 'b', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, 'c', ticks, 'canUnload'),
                                                                    ...$(phase, 'a', ticks, 'canLoad'),
                                                                    ...$(phase, 'c', ticks, 'unloading'),
                                                                    ...$(phase, 'a', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, 'gc-12', ticks, 'canUnload'),
                                                                    ...$(phase, 'gc-11', ticks, 'canLoad'),
                                                                    ...$(phase, 'gc-12', ticks, 'unloading'),
                                                                    ...$(phase, 'gc-11', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                  ...$(phase, 'c2', ticks, 'canUnload'),
                                                                  ...$(phase, 'c1', ticks, 'canLoad'),
                                                                  ...$(phase, 'c2', ticks, 'unloading'),
                                                                  ...$(phase, 'c1', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, 'c', ticks, 'canUnload'),
                                                                    ...$(phase, 'b', ticks, 'canLoad'),
                                                                    ...$(phase, 'c', ticks, 'unloading'),
                                                                    ...$(phase, 'b', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                  ...$(phase, 'c1', ticks, 'canUnload'),
                                                                  ...$(phase, 'c2', ticks, 'canLoad'),
                                                                  ...$(phase, 'c1', ticks, 'unloading'),
                                                                  ...$(phase, 'c2', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2775..2782
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, 'gc-11', ticks, 'canUnload'),
                                                                    ...$(phase, 'gc-12', ticks, 'canLoad'),
                                                                    ...$(phase, 'gc-11', ticks, 'unloading'),
                                                                    ...$(phase, 'gc-12', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 10 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1750..1757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1771..1778
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1839..1847
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1868..1875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1896..1903
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2025..2032
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2039..2046
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2053..2060
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2813..2820
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2923..2930

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @route({
                                                                        path: 'p2',
                                                                        routes: [Gc21, Gc22, Gc23]
                                                                      })
                                                                      @customElement({
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3645..3650
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3784..3797

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @route({
                                                                        path: 'p2',
                                                                        routes: [Gc21, Gc22, Gc23]
                                                                      })
                                                                      @customElement({
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3645..3650
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3941..3948

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @route({
                                                                        path: 'p2',
                                                                        routes: [Gc21, Gc22, Gc23]
                                                                      })
                                                                      @customElement({ name: 'p-2', template: `p2 <au-viewport></au-viewport>` })
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3784..3797
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3941..3948

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

                                                          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

                                                                  @route({ routes: [{ path: 'a2', component: A2 }] })
                                                                  @customElement({ name: 'a1', template: '<au-viewport></au-viewport>' })
                                                                  class A1 extends TestVM {
                                                                    public constructor() { super(resolve(INotifierManager), resolve(IPlatform), a1); }
                                                                  }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 937..939
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1202..1206
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1385..1389

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

                                                          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

                                                                  @route({ routes: [{ path: 'd', component: D }] })
                                                                  @customElement({ name: 'c', template: '<au-viewport></au-viewport>' })
                                                                  class C extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1202..1206
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1376..1380
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1385..1389

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

                                                          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

                                                                  @route({ routes: [{ path: 'a2', component: A2 }] })
                                                                  @customElement({ name: 'a1', template: '<au-viewport></au-viewport>' })
                                                                  class A1 extends TestVM {
                                                                    public constructor() { super(resolve(INotifierManager), resolve(IPlatform), a1); }
                                                                  }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 937..939
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1376..1380
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1385..1389

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

                                                          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

                                                                  @route({ routes: [{ path: 'b2', component: B2 }] })
                                                                  @customElement({ name: 'b1', template: '<au-viewport></au-viewport>' })
                                                                  class B1 extends TestVM {
                                                                    public constructor() { super(resolve(INotifierManager), resolve(IPlatform), b1); }
                                                                  }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 3 other locations - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 937..939
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1202..1206
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1376..1380

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

                                                          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, [
                                                                    ...$(phase, 'ce-a', ticks, 'canUnload'),
                                                                    ...$(phase, 'ce-b', ticks, 'canLoad'),
                                                                    ...$(phase, 'ce-a', ticks, 'unloading'),
                                                                    ...$(phase, 'ce-b', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2627..2634

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

                                                          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, [
                                                                    ...$(phase, 'ce-a', ticks, 'canUnload'),
                                                                    ...$(phase, 'ce-b', ticks, 'canLoad'),
                                                                    ...$(phase, 'ce-a', ticks, 'unloading'),
                                                                    ...$(phase, 'ce-b', ticks, 'loading'),
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 2 hrs to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2679..2686

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

                                                          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

                                                                    @route({
                                                                      routes: [A, B, C]
                                                                    })
                                                                    @customElement({
                                                                      name: 'my-app',
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3256..3268

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

                                                          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

                                                                    @route({
                                                                      routes: [A, B, C]
                                                                    })
                                                                    @customElement({
                                                                      name: 'my-app',
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4043..4055

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @route({
                                                                        routes: [P1, P2]
                                                                      })
                                                                      @customElement({
                                                                        name: 'my-app',
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3652..3666
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3799..3806

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @route({
                                                                        routes: [P1, P2]
                                                                      })
                                                                      @customElement({
                                                                        name: 'my-app',
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3652..3666
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3950..3957

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @route({
                                                                        routes: [P1, P2]
                                                                      })
                                                                      @customElement({
                                                                        name: 'my-app',
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3799..3806
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3950..3957

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

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

                                                                const title = Object.keys(spec).map(key => `${key}:${spec[key]}`).filter(x => x.length > 2).join(',');
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1194..1194
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1369..1369

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

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

                                                                const title = Object.keys(spec).map(key => `${key}:${spec[key]}`).filter(x => x.length > 2).join(',');
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1106..1106
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1369..1369

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

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

                                                                const title = Object.keys(spec).map(key => `${key}:${spec[key]}`).filter(x => x.length > 2).join(',');
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1106..1106
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1194..1194

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

                                                          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);
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1922..1927

                                                          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, () => { return this.$detaching(i, p); }); }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 157..157
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 158..158
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 159..159
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 162..162

                                                          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, () => { return this.$unbinding(i, p); }); }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 157..157
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 158..158
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 159..159
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 161..161

                                                          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, () => { return this.$bound(i, p); }); }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 157..157
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 159..159
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 161..161
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 162..162

                                                          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, () => { return this.$attaching(i, p); }); }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 157..157
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 158..158
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 161..161
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 162..162

                                                          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, () => { return this.$binding(i, p); }); }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 158..158
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 159..159
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 161..161
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 162..162

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

                                                                      @route(['', 'gc-21'])
                                                                      @customElement({
                                                                        name: 'gc-21', template: `
                                                                      <a href="../../p1/gc-11"></a>
                                                                      <a href="../../p1/gc-12"></a>
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3869..3879

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

                                                          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

                                                                      @route(['', 'gc-11'])
                                                                      @customElement({
                                                                        name: 'gc-11', template: `
                                                                      <a href="../gc-11"></a>
                                                                      <a href="../gc-12"></a>
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3900..3910

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

                                                          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

                                                            protected $canLoad(_p: P, _n: RN, _c: RN | null): boolean | NI | NI[] | Promise<boolean | NI | NI[]> { return true; }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/_shared/view-models.ts on lines 308..314

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

                                                          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);
                                                                  }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1871..1875

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

                                                                      (function* () {
                                                                        yield* $(phase1, 'a1', 1, 'binding', 'bound', 'attaching', 'attached');
                                                          
                                                                        yield* $(phase1, 'a2', a2CanLoad, 'canLoad');
                                                                        yield* $(phase1, 'a2', a2Load, 'loading');
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1430..1436

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

                                                          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

                                                                      (function* () {
                                                                        yield* $(phase1, 'b1', 1, 'binding', 'bound', 'attaching', 'attached');
                                                          
                                                                        yield* $(phase1, 'b2', b2CanLoad, 'canLoad');
                                                                        yield* $(phase1, 'b2', b2Load, 'loading');
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1423..1429

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

                                                          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

                                                                      @route(['', 'gc-21'])
                                                                      @customElement({ name: 'gc-21', template: 'gc-21' })
                                                                      class Gc21 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3237..3239
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3608..3610
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3738..3740
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3753..3755

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

                                                          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

                                                                      @route(['', 'gc-11'])
                                                                      @customElement({ name: 'gc-11', template: 'gc-11' })
                                                                      class Gc11 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3237..3239
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3623..3625
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3738..3740
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3753..3755

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

                                                          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

                                                                      @route(['', 'gc-11'])
                                                                      @customElement({ name: 'gc-11', template: 'gc-11' })
                                                                      class Gc11 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3237..3239
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3608..3610
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3623..3625
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3753..3755

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

                                                          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

                                                                    @route(['', 'a'])
                                                                    @customElement({ name: 'ce-a', template: 'a' })
                                                                    class A extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3608..3610
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3623..3625
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3738..3740
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3753..3755

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

                                                          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

                                                                      @route(['', 'gc-21'])
                                                                      @customElement({ name: 'gc-21', template: 'gc-21' })
                                                                      class Gc21 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 4 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3237..3239
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3608..3610
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3623..3625
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3738..3740

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

                                                          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

                                                                @route({
                                                                  routes: [
                                                                    { path: 'a01', component: A01 },
                                                                    { path: 'a02', component: A02 },
                                                                    { path: 'a03', component: A03 },
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/lifecycle-hooks.spec.ts on lines 1666..1673

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                    @route('a')
                                                                    @customElement({ name: 'ce-a', template: 'a' })
                                                                    class A extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3241..3243
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4028..4030

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                    @route('b')
                                                                    @customElement({ name: 'ce-b', template: 'b' })
                                                                    class B extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3241..3243
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4024..4026

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                    @route('b')
                                                                    @customElement({ name: 'ce-b', template: 'b' })
                                                                    class B extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4024..4026
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4028..4030

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

                                                          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, [
                                                                  ...$(phase, ['gc21', 'c2', 'p', 'root'], ticks, 'detaching'),
                                                                  ...$(phase, ['gc21', 'c2', 'p', 'root'], ticks, 'unbinding'),
                                                                  ...$(phase, ['root', 'p', 'c2', 'gc21'], ticks, 'dispose'),
                                                                ]);
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2565..2569

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

                                                          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, [
                                                                    ...$(phase, ['gc22', 'c2', 'p', 'root'], ticks, 'detaching'),
                                                                    ...$(phase, ['gc22', 'c2', 'p', 'root'], ticks, 'unbinding'),
                                                                    ...$(phase, ['root', 'p', 'c2', 'gc22'], ticks, 'dispose'),
                                                                  ]);
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2209..2213

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @customElement({
                                                                        name: 'gc-12', template: `
                                                                      <a href="../gc-11"></a>
                                                                      <a href="../gc-12"></a>
                                                                      <a href="../gc-13"></a>
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3911..3920

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

                                                          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, [
                                                                    ...$(phase, ['s1', 's2'], ticks, 'canLoad'),
                                                                    ...$(phase, ['s1', 's2'], ticks, 'loading'),
                                                                    ...$(phase, ['s1', 's2'], ticks, 'binding', 'bound', 'attaching', 'attached'),
                                                                  ]);
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2251..2255

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

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                      @customElement({
                                                                        name: 'gc-22', template: `
                                                                      <a href="../../p1/gc-11"></a>
                                                                      <a href="../../p1/gc-12"></a>
                                                                      <a href="../../p1/gc-13"></a>
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3880..3889

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

                                                          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, [
                                                                  ...$(phase, ['s1', 's2'], ticks, 'canLoad'),
                                                                  ...$(phase, ['s1', 's2'], ticks, 'loading'),
                                                                  ...$(phase, ['s1', 's2'], ticks, 'binding', 'bound', 'attaching', 'attached'),
                                                                ]);
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2897..2901

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

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

                                                                      const target1 = CustomElement.define({ name: 'a', template: null }, class Target1 {
                                                                        public async [hookName]() {
                                                                          throw new Error(`error in ${hookName}`);
                                                                        }
                                                                      });
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1555..1559
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1627..1631

                                                          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

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

                                                                      const target1 = CustomElement.define({ name: 'a', template: null }, class Target1 {
                                                                        public async [hookName]() {
                                                                          throw new Error(`error in ${hookName}`);
                                                                        }
                                                                      });
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1593..1597
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1627..1631

                                                          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

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

                                                                      const target1 = CustomElement.define({ name: 'a', template: null }, class Target1 {
                                                                        public async [hookName]() {
                                                                          throw new Error(`error in ${hookName}`);
                                                                        }
                                                                      });
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1555..1559
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1593..1597

                                                          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

                                                                    @customElement({ name: 'a14', template: vp(1) })
                                                                    class PcA14 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 554..555
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 556..557
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 558..559
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 560..561
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 575..576
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 577..578

                                                          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

                                                                @customElement({ name: 'a11', template: vp(1) })
                                                                class A11 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 556..557
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 558..559
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 560..561
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 575..576
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 577..578
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 710..711

                                                          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

                                                                @customElement({ name: 'a22', template: vp(2) })
                                                                class A22 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 554..555
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 556..557
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 558..559
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 560..561
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 575..576
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 710..711

                                                          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

                                                                @customElement({ name: 'a12', template: vp(1) })
                                                                class A12 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 554..555
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 558..559
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 560..561
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 575..576
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 577..578
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 710..711

                                                          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

                                                                @customElement({ name: 'a13', template: vp(1) })
                                                                class A13 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 554..555
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 556..557
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 560..561
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 575..576
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 577..578
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 710..711

                                                          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

                                                                @customElement({ name: 'a21', template: vp(2) })
                                                                class A21 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 554..555
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 556..557
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 558..559
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 560..561
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 577..578
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 710..711

                                                          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

                                                                @customElement({ name: 'a14', template: vp(1) })
                                                                class A14 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 6 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 554..555
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 556..557
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 558..559
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 575..576
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 577..578
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 710..711

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

                                                                  verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                    ...$(phase, ['nf', 'p', 'root'], ticks, 'detaching'),
                                                                    ...$(phase, ['nf', 'p', 'root'], ticks, 'unbinding'),
                                                                    ...$(phase, ['root', 'p', 'nf'], ticks, 'dispose'),
                                                                  ]);
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2066..2070
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2293..2297

                                                          Duplicated Code

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

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

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

                                                          Tuning

                                                          This issue has a mass of 55.

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                  ...$(phase, ['c1', 'p', 'root'], ticks, 'detaching'),
                                                                  ...$(phase, ['c1', 'p', 'root'], ticks, 'unbinding'),
                                                                  ...$(phase, ['root', 'p', 'c1'], ticks, 'dispose'),
                                                                ]);
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2293..2297
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2468..2472

                                                          Duplicated Code

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

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

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

                                                          Tuning

                                                          This issue has a mass of 55.

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                verifyInvocationsEqual(mgr.fullNotifyHistory, [
                                                                  ...$(phase, ['s3', 's2', 'root'], ticks, 'detaching'),
                                                                  ...$(phase, ['s3', 's2', 'root'], ticks, 'unbinding'),
                                                                  ...$(phase, ['root', 's3', 's2'], ticks, 'dispose'),
                                                                ]);
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 1 hr to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2066..2070
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2468..2472

                                                          Duplicated Code

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

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

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

                                                          Tuning

                                                          This issue has a mass of 55.

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                    @customElement({ name: 'a02', template: null })
                                                                    class PcA02 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 's3', template: null })
                                                                class S3 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'a', template: null })
                                                                  class A extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'gc12', template: null })
                                                                class GC12 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 's1', template: null })
                                                                class S1 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'a01', template: null })
                                                                class A01 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'a2', template: null })
                                                                  class A2 extends TestVM {
                                                                    public constructor() { super(resolve(INotifierManager), resolve(IPlatform), a2); }
                                                                  }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'gc11', template: null })
                                                                class GC11 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'c1', template: null })
                                                                class C1 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'gc22', template: null })
                                                                class GC22 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'gc21', template: null })
                                                                class GC21 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'gc12', template: null })
                                                                class GC12 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'a2', template: null })
                                                                  class A2 extends TestVM {
                                                                    public constructor() { super(resolve(INotifierManager), resolve(IPlatform), a2); }
                                                                  }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'b2', template: null })
                                                                  class B2 extends TestVM {
                                                                    public constructor() { super(resolve(INotifierManager), resolve(IPlatform), b2); }
                                                                  }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'c', template: null })
                                                                  class C extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 's1', template: null })
                                                                class S1 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'gc21', template: null })
                                                                class GC21 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'a03', template: null })
                                                                class A03 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'b', template: null })
                                                                  class B extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), b); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'b', template: null })
                                                                  class B extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 's2', template: null })
                                                                class S2 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                    @customElement({ name: 'a01', template: null })
                                                                    class PcA01 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'a', template: null })
                                                                  class A extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), a); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'c2', template: null })
                                                                class C2 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'gc11', template: null })
                                                                class GC11 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'gc22', template: null })
                                                                class GC22 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'a04', template: null })
                                                                class A04 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'a', template: null })
                                                                  class A extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 's2', template: null })
                                                                class S2 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                @customElement({ name: 'a02', template: null })
                                                                class A02 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'b', template: null })
                                                                  class B extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'gc22', template: null })
                                                                  class GC22 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482

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

                                                                  @customElement({ name: 'gc21', template: null })
                                                                  class GC21 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'ce-a', template: 'a' })
                                                                  class A extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-21', template: 'gc-21' })
                                                                  class Gc21 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                      @customElement({ name: 'gc-22', template: 'gc-22' })
                                                                      class Gc22 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                    @customElement({ name: 'gc-12', template: 'gc-12' })
                                                                    class Gc12 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                    @customElement({ name: 'gc-21', template: 'gc-21' })
                                                                    class Gc21 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc1', template: null })
                                                                  class GC1 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 's1', template: 's1' })
                                                                  class S1 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-21', template: 'gc-21' })
                                                                  class Gc21 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-12', template: 'gc-12' })
                                                                  class Gc12 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-23', template: 'gc-23' })
                                                                  class Gc23 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                    @customElement({ name: 'gc-22', template: 'gc-22' })
                                                                    class Gc22 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306

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

                                                                      @customElement({ name: 'gc-12', template: 'gc-12' })
                                                                      class Gc12 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                    @customElement({ name: 'gc-11', template: 'gc-11' })
                                                                    class Gc11 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'c1', template: null })
                                                                  class C1 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2422..2423
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'c2', template: null })
                                                                  class C2 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 35 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 540..541
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 542..543
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 544..545
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 546..547
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 682..683
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 684..685
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1109..1110
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1111..1112
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1198..1201
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1372..1375
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1381..1384
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1693..1694
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1695..1696
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1795..1796
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1797..1798
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1799..1800
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1925..1926
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1927..1928
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1976..1977
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1978..1979
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2077..2078
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2079..2080
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2081..2082
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2083..2084
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2220..2221
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2222..2223
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2224..2225
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2304..2305
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2306..2307
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2308..2309
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2310..2311
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2420..2421
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2479..2480
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2481..2482
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2483..2484

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

                                                                  @customElement({ name: 'ce-b', template: 'b' })
                                                                  class B extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-11', template: 'gc-11' })
                                                                  class Gc11 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-13', template: 'gc-13' })
                                                                  class Gc13 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-22', template: 'gc-22' })
                                                                  class Gc22 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                      @customElement({ name: 'gc-12', template: 'gc-12' })
                                                                      class Gc12 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                      @customElement({ name: 'gc-22', template: 'gc-22' })
                                                                      class Gc22 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 's2', template: 's2' })
                                                                  class S2 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-11', template: 'gc-11' })
                                                                  class Gc11 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-22', template: 'gc-22' })
                                                                  class Gc22 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 's3', template: 's3' })
                                                                  class S3 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2696..2697
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

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

                                                                  @customElement({ name: 'gc-12', template: 'gc-12' })
                                                                  class Gc12 extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 22 other locations - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2580..2581
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2582..2583
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2694..2695
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2698..2699
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2700..2701
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2872..2873
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2874..2875
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2876..2877
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2994..2995
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2996..2997
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2998..2999
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3000..3001
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3002..3003
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3004..3005
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3611..3612
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3626..3627
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3741..3742
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3756..3757
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4292..4293
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4294..4295
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4305..4306
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4307..4308

                                                          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, [
                                                                    ...$(phase, ['b', 'root'], ticks, 'detaching'),
                                                                    ...$(phase, ['b', 'root'], ticks, 'unbinding'),
                                                                    ...$(phase, ['root', 'b'], ticks, 'dispose'),
                                                                  ]);
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1784..1788

                                                          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, [
                                                                    ...$(phase, ['b', 'root'], ticks, 'detaching'),
                                                                    ...$(phase, ['b', 'root'], ticks, 'unbinding'),
                                                                    ...$(phase, ['root', 'b'], ticks, 'dispose'),
                                                                  ]);
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 50 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1913..1917

                                                          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,
                                                                    [
                                                                      ...$(phase, 'root', ticks, 'binding', 'bound', 'attaching', 'attached'),
                                                                      ...(withInitialLoad ? $(phase, 'a', ticks, 'canLoad', 'loading', 'binding', 'bound', 'attaching', 'attached') : [])
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 45 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1809..1815

                                                          Duplicated Code

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

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

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

                                                          Tuning

                                                          This issue has a mass of 50.

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  verifyInvocationsEqual(
                                                                    mgr.fullNotifyHistory,
                                                                    [
                                                                      ...$(phase, 'root', ticks, 'binding', 'bound', 'attaching', 'attached'),
                                                                      ...(withInitialLoad ? $(phase, 'a', ticks, 'canLoad', 'loading', 'binding', 'bound', 'attaching', 'attached') : [])
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 45 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 1705..1711

                                                          Duplicated Code

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

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

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

                                                          Tuning

                                                          This issue has a mass of 50.

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

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

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

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

                                                          Refactorings

                                                          Further Reading

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

                                                                  @customElement({ name: 'nf' })
                                                                  class NF extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2434..2435

                                                          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

                                                                  @customElement({ name: 'nf' })
                                                                  class NF extends TestVM { public constructor() { super(resolve(INotifierManager), resolve(IPlatform), hookSpec); } }
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2512..2513

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

                                                                  try {
                                                                    await router.load('p1@$1/(gc-11@$1+gc-12@$2)+p2@$2/(gc-21@$1+unconfigured@$2)');
                                                                    assert.fail(`${phase} - expected error`);
                                                                  } catch { /* noop */ }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 8 other locations - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2750..2753
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2788..2791
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2826..2829
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2849..2852
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3064..3067
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3179..3182
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4791..4794
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4808..4811

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

                                                          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

                                                                  try {
                                                                    await router.load('p2@$1/(gc-21@$1+gc-22@$2)+unconfigured@$2');
                                                                    assert.fail(`${phase} - expected error`);
                                                                  } catch { /* noop */ }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 8 other locations - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2750..2753
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2788..2791
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2826..2829
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2849..2852
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3064..3067
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3114..3117
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4791..4794
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4808..4811

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

                                                          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

                                                                  try {
                                                                    await router.load('unconfigured');
                                                                    assert.fail(`${phase} - expected error`);
                                                                  } catch { /* noop */ }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 8 other locations - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2750..2753
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2788..2791
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2826..2829
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2849..2852
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3114..3117
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3179..3182
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4791..4794
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4808..4811

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

                                                          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

                                                                  try {
                                                                    await router.load('p2/unconfigured');
                                                                    assert.fail(`${phase} - expected error`);
                                                                  } catch { /* noop */ }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 8 other locations - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2750..2753
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2788..2791
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2849..2852
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3064..3067
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3114..3117
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3179..3182
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4791..4794
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4808..4811

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

                                                          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

                                                                  try {
                                                                    await router.load('p2/gc-21');
                                                                    assert.fail(`${phase} - expected error`);
                                                                  } catch { /* noop */ }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 8 other locations - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2750..2753
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2788..2791
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2826..2829
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3064..3067
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3114..3117
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3179..3182
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4791..4794
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4808..4811

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

                                                          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

                                                                      try {
                                                                        await router.load('p1@$1/(gc-11@$1+gc-13@$2)+p2@$2/(gc-21@$1+gc-22@$2)');
                                                                        assert.fail(`${phase} - expected error`);
                                                                      } catch { /* noop */ }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 8 other locations - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2750..2753
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2788..2791
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2826..2829
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2849..2852
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3064..3067
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3114..3117
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3179..3182
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4808..4811

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

                                                          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

                                                                  try {
                                                                    await router.load('unconfigured');
                                                                    assert.fail(`${phase} - expected error`);
                                                                  } catch { /* noop */ }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 8 other locations - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2788..2791
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2826..2829
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2849..2852
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3064..3067
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3114..3117
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3179..3182
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4791..4794
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4808..4811

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

                                                          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

                                                                      try {
                                                                        await router.load('p1@$1/(gc-11@$1+gc-12@$2)+p2@$2/(gc-21@$1+gc-23@$2)');
                                                                        assert.fail(`${phase} - expected error`);
                                                                      } catch { /* noop */ }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 8 other locations - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2750..2753
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2788..2791
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2826..2829
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2849..2852
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3064..3067
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3114..3117
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3179..3182
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4791..4794

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

                                                          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

                                                                  try {
                                                                    await router.load('p1/unconfigured');
                                                                    assert.fail(`${phase} - expected error`);
                                                                  } catch { /* noop */ }
                                                          Severity: Major
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 8 other locations - About 35 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2750..2753
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2826..2829
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2849..2852
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3064..3067
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3114..3117
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3179..3182
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4791..4794
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 4808..4811

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

                                                          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(); }); }
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 1 other location - About 30 mins to fix
                                                          packages/__tests__/src/3-runtime-html/controller.hook-timings.integration.spec.ts on lines 1724..1724

                                                          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

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

                                                                  const { router, mgr, tearDown, host, platform } = await createFixture(Root, [A, B]/* , LogLevel.trace */);
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 30 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2733..2733
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3039..3039

                                                          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

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

                                                                  const { router, mgr, tearDown, host, platform } = await createFixture(Root, [P1, Gc11]/* , LogLevel.trace */);
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 30 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2602..2602
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 3039..3039

                                                          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

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

                                                                  const { router, mgr, tearDown, host, platform } = await createFixture(Root, [P1, Gc11]/* , LogLevel.trace */);
                                                          Severity: Minor
                                                          Found in packages/__tests__/src/router-lite/hook-tests.spec.ts and 2 other locations - About 30 mins to fix
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2602..2602
                                                          packages/__tests__/src/router-lite/hook-tests.spec.ts on lines 2733..2733

                                                          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