aurelia/aurelia

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

Summary

Maintainability
F
3 mos
Test Coverage

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

import { LogLevel, Constructable, kebabCase, ILogConfig, Registration, noop, IModule, inject, resolve } from '@aurelia/kernel';
import { assert, MockBrowserHistoryLocation, TestContext } from '@aurelia/testing';
import { RouterConfiguration, IRouter, NavigationInstruction, IRouteContext, RouteNode, Params, route, INavigationModel, IRouterOptions, IRouteViewModel, IRouteConfig, Router, HistoryStrategy, IRouterEvents, ITypedNavigationInstruction_string, IViewportInstruction, RouteConfig, Routeable, RouterOptions, RouteContext } from '@aurelia/router-lite';
import { Aurelia, valueConverter, customElement, CustomElement, ICustomElementViewModel, IHistory, IHydratedController, ILocation, INode, IPlatform, IWindow, watch } from '@aurelia/runtime-html';

Severity: Major
Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts - About 2 wks to fix

    Function getNavBarCe has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function getNavBarCe(
          hasAsyncRouteConfig: boolean = false,
        ) {
          @valueConverter('firstNonEmpty')
          class FirstNonEmpty {
    Severity: Minor
    Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts - About 1 hr to fix

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

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

        Function assertIsActive has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          router: IRouter,
          instruction: NavigationInstruction,
          context: IRouteContext,
          expected: boolean,
          assertId: number,
        Severity: Minor
        Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts - About 35 mins to fix

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

              (isNode() ? it.skip : it)('explicit history strategy can be used for individual navigation - configured: replace', async function () {
                @customElement({ name: 'ce-three', template: 'ce3' })
                class CeThree implements IRouteViewModel { }
                @customElement({ name: 'ce-two', template: 'ce2' })
                class CeTwo implements IRouteViewModel { }
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 5 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6083..6168

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 873.

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

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

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

          See codeclimate-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

              (isNode() ? it.skip : it)('explicit history strategy can be used for individual navigation - configured: push', async function () {
                @customElement({ name: 'ce-three', template: 'ce3' })
                class CeThree implements IRouteViewModel { }
                @customElement({ name: 'ce-two', template: 'ce2' })
                class CeTwo implements IRouteViewModel { }
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 5 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6170..6255

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 873.

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

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

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

          See codeclimate-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

              it('transitionPlan function #3 - parent-child - parent:replace,child:invoke-lifecycles', async function () {
          
                @customElement({ name: 'ce-two', template: 'ce2 ${id1} ${id2}' })
                class CeTwo implements IRouteViewModel {
                  private static id1: number = 0;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5804..5869

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 576.

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

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

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

          See codeclimate-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

              it('transitionPlan function #3 - parent-child - parent:invoke-lifecycles,child:replace', async function () {
          
                @customElement({ name: 'ce-two', template: 'ce2 ${id1} ${id2}' })
                class CeTwo implements IRouteViewModel {
                  private static id1: number = 0;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5737..5802

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 576.

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

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

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

          See codeclimate-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

              it('replace - inherited', async function () {
                @customElement({ name: 'ce-one', template: 'ce1 ${id1} ${id2}' })
                class CeOne implements IRouteViewModel {
                  private static id1: number = 0;
                  private static id2: number = 0;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5952..5995

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 409.

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

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

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

          See codeclimate-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

              it('replace - different paths for same component', async function () {
                @customElement({ name: 'ce-one', template: 'ce1 ${id1} ${id2}' })
                class CeOne implements IRouteViewModel {
                  private static id1: number = 0;
                  private static id2: number = 0;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5304..5347

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 409.

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

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

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

          See codeclimate-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

            it('querystring, added to the fragment, can be parsed correctly, when hash-based routing is used - with fragment (nested fragment JFF)', async function () {
              @customElement({ name: 'c-1', template: `c1 params: \${id} query: \${query} fragment: \${fragment}` })
              class C1 implements IRouteViewModel {
          
                private id: string;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3705..3738

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 408.

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

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

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

          See codeclimate-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

            it('querystring, added to the fragment, can be parsed correctly, when hash-based routing is used', async function () {
              @customElement({ name: 'c-1', template: `c1 params: \${id} query: \${query} fragment: \${fragment}` })
              class C1 implements IRouteViewModel {
          
                private id: string;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3740..3773

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 408.

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

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

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

          See codeclimate-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 (let i = 0, ii = $2vpsKeys.length; i < ii; ++i) {
              const key21 = $2vpsKeys[i];
              const value21 = $2vps[key21];
          
              it(`root2 can load ${key21}`, async function () {
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 541..582

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 399.

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

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

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

          See codeclimate-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 (let i = 0, ii = $1vpKeys.length; i < ii; ++i) {
              const key11 = $1vpKeys[i];
              const value11 = $1vp[key11];
          
              it(`root1 can load ${key11}`, async function () {
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 days to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 605..646

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 399.

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

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

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                abstract class BaseRouteViewModel implements IRouteViewModel {
                  public static paramsLog: Map<string, [Params, URLSearchParams]> = new Map<string, [Params, URLSearchParams]>();
                  public static assertAndClear(message: string, ...expected: [key: string, value: [Params, URLSearchParams]][]) {
                    const paramsLog = this.paramsLog;
                    assert.deepStrictEqual(paramsLog, new Map(expected), message);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 day to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5070..5080

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 206.

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

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

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

                abstract class BaseRouteViewModel implements IRouteViewModel {
                  public static paramsLog: Map<string, [Params, URLSearchParams]> = new Map<string, [Params, URLSearchParams]>();
                  public static assertAndClear(message: string, ...expected: [key: string, value: [Params, URLSearchParams]][]) {
                    const paramsLog = this.paramsLog;
                    assert.deepStrictEqual(paramsLog, new Map(expected), message);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 day to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5175..5185

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 206.

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

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

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

          See codeclimate-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, transitionPlan: 'invoke-lifecycles' },
                { path: 'a02', component: A02, transitionPlan: 'invoke-lifecycles' },
                { path: 'b01', component: B01, transitionPlan: 'invoke-lifecycles' },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 7 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 158..175

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 183.

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

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

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

          See codeclimate-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, transitionPlan: 'invoke-lifecycles' },
                { path: 'a02', component: A02, transitionPlan: 'invoke-lifecycles' },
                { path: 'b01', component: B01, transitionPlan: 'invoke-lifecycles' },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 7 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 139..156

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 183.

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

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

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

          See codeclimate-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

            it(`root1 correctly handles canUnload with load b11/b02,b11/a02 in order`, async function () {
              const { router, host, tearDown } = await createFixture(Root1, Z);
          
              let result = await router.load(`b11/b02`);
              assertComponentsVisible(host, [Root1, B11, [B02]]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 400..412

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 154.

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

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

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

          See codeclimate-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

            it(`root1 correctly handles canUnload with load b12/b01,b11/b01 in order`, async function () {
              const { router, host, tearDown } = await createFixture(Root1, Z);
          
              let result = await router.load(`b12/b01`);
              assertComponentsVisible(host, [Root1, B12, [B01]]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 386..398

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 154.

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

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

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

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

          Refactorings

          Further Reading

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

              it('fragment - #2 - fragment in navigation options', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectFragmentInNavOpt();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('fragment - #6 - sibling viewport', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectFragmentSiblingViewport();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('query and fragment', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectWithQueryAndFragment();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('queryString - #1 - query string in string routing instruction', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectToPath();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('queryString - #2 - structured query string object', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectWithQueryObj();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('queryString - #3 - multi-valued query string - value from both string path and structured query params', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectWithMultivaluedQuery();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('queryString - #4 - structured query string along with path parameter', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectWithRouteParamAndQueryObj();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('queryString - #5 - structured query string with class as routing instruction', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectWithClassAndQueryObj();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('fragment - #3 - fragment in path always wins over the fragment in navigation options', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectFragmentInPathAndNavOpt();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('query and fragment - sibling viewport', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectWithQueryAndFragmentSiblingViewport();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('fragment - #4 - with viewport instruction', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectFragmentWithVpInstrc();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('queryString - #6 - structured query string with viewport instruction', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectVpInstrcAndQueryObj();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('queryString - #8 - sibling viewports', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectSiblingViewport();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('queryString - #7 - structured query string with viewport instruction - route-id and multi-valued key', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectVpInstrcRouteIdAndQueryObj();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('fragment - #1 - raw fragment in path', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectFragment();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3591..3601
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

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

          Refactorings

          Further Reading

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

              it('fragment - #5 - with viewport instruction - raw url', async function () {
                const { host, au, container } = await start();
                const vmb = CustomElement.for<VmB>(host.querySelector('vm-b')).viewModel;
          
                await vmb.redirectFragmentWithVpInstrcRawUrl();
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 15 other locations - About 5 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3447..3457
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3459..3469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3471..3481
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3483..3493
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3495..3505
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3507..3517
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3519..3529
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3531..3541
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3543..3553
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3555..3565
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3567..3577
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3579..3589
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3603..3613
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3615..3625
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3627..3637

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 149.

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

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

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

          See codeclimate-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: 'ce-one', template: 'ce1 ${id1} ${id2} ${id}' })
                class CeOne implements IRouteViewModel {
                  private static id1: number = 0;
                  private static id2: number = 0;
                  private readonly id1: number = ++CeOne.id1;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5873..5885

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 130.

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

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

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

          See codeclimate-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: 'ce-two', template: 'ce2 ${id1} ${id2} ${id}' })
                class CeTwo implements IRouteViewModel {
                  private static id1: number = 0;
                  private static id2: number = 0;
                  private readonly id1: number = ++CeTwo.id1;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5887..5899

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 130.

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

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

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

          See codeclimate-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: [
                  { id: 'gc21', path: ['', 'gc-21'], component: GrandChildTwoOne },
                  { id: 'gc22', path: 'gc-22/:id?', component: GrandChildTwoTwo },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2641..2656
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2741..2756
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3011..3026
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3162..3177

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 122.

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

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

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

          See codeclimate-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: [
                  { id: 'gc21', path: ['', 'gc-21'], component: GrandChildTwoOne },
                  { id: 'gc22', path: 'gc-22/:id?', component: GrandChildTwoTwo },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2641..2656
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2741..2756
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2873..2888
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3011..3026

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 122.

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

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

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

          See codeclimate-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: [
                  { id: 'gc21', path: ['', 'gc-21'], component: GrandChildTwoOne },
                  { id: 'gc22', path: 'gc-22/:id?', component: GrandChildTwoTwo },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2641..2656
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2741..2756
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2873..2888
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3162..3177

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 122.

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

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

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

          See codeclimate-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: [
                  { id: 'gc21', path: ['', 'gc-21'], component: GrandChildTwoOne },
                  { id: 'gc22', path: 'gc-22/:id?', component: GrandChildTwoTwo },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2641..2656
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2873..2888
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3011..3026
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3162..3177

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 122.

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

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

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

          See codeclimate-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: [
                  { id: 'gc21', path: ['', 'gc21'], component: GrandChildTwoOne },
                  { id: 'gc22', path: 'gc22', component: GrandChildTwoTwo },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2741..2756
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2873..2888
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3011..3026
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3162..3177

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 122.

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

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

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

          See codeclimate-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: [
                  { id: 'r1', path: ['', 'p1'], component: P1 },
                  { id: 'r2', path: ['p2'], component: P2 },
                  { id: 'r3', path: ['nf1'], component: NF1 },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1420..1432
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1907..1919
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2108..2120
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2215..2227

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 121.

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

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

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

          See codeclimate-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: [
                  { id: 'r1', path: ['', 'p1'], component: P1 },
                  { id: 'r2', path: ['p2'], component: P2 },
                  { id: 'r3', path: ['nf1'], component: NF1 },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1420..1432
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1907..1919
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2014..2026
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2215..2227

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 121.

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

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

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

          See codeclimate-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: [
                  { id: 'r1', path: ['', 'p1'], component: P1 },
                  { id: 'r2', path: ['p2'], component: P2 },
                  { id: 'r3', path: ['nf1'], component: NF1 },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1907..1919
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2014..2026
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2108..2120
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2215..2227

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 121.

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

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

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

          See codeclimate-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: [
                  { id: 'r1', path: ['', 'p1'], component: P1 },
                  { id: 'r2', path: ['p2'], component: P2 },
                  { id: 'r3', path: ['nf1'], component: NF1 },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1420..1432
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1907..1919
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2014..2026
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2108..2120

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 121.

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

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

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

          See codeclimate-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: [
                  { id: 'r1', path: ['', 'p1'], component: P1 },
                  { id: 'r2', path: ['p2'], component: P2 },
                  { id: 'r3', path: ['nf1'], component: NF1 },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 4 other locations - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1420..1432
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2014..2026
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2108..2120
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2215..2227

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 121.

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

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

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

          See codeclimate-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

            it(`root2 can load a01+a02,a02+a01 in order`, async function () {
              const { router, host, tearDown } = await createFixture(Root2, Z);
          
              await router.load(`a01+a02`);
              assertComponentsVisible(host, [Root2, A01, A02]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 446..456

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 116.

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

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

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

          See codeclimate-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

            it(`root1 can load a11/a01,a11/a02 in order`, async function () {
              const { router, host, tearDown } = await createFixture(Root1, Z);
          
              await router.load(`a11/a01`);
              assertComponentsVisible(host, [Root1, A11, A01]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 494..504

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 116.

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

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

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

          See codeclimate-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({ path: 'p2/:id', routes: [CeOne], transitionPlan: 'invoke-lifecycles' })
                @customElement({ name: 'p-two', template: 'p2 ${id1} ${id2} <au-viewport></au-viewport>' })
                class ParentTwo {
                  private static id1: number = 0;
                  private static id2: number = 0;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5564..5574

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                @route({ path: 'p1/:id', routes: [CeTwo], transitionPlan: 'replace' })
                @customElement({ name: 'p-one', template: 'p1 ${id1} ${id2} <au-viewport></au-viewport>' })
                class ParentOne {
                  private static id1: number = 0;
                  private static id2: number = 0;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 4 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5576..5586

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                @route({ path: 'c2/:id', transitionPlan: 'invoke-lifecycles' })
                @customElement({ name: 'ce-two', template: 'ce2 ${id1} ${id2}' })
                class CeTwo implements IRouteViewModel {
                  private static id1: number = 0;
                  private static id2: number = 0;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5540..5550

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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({ path: 'c1/:id', transitionPlan: 'replace' })
                @customElement({ name: 'ce-one', template: 'ce1 ${id1} ${id2}' })
                class CeOne implements IRouteViewModel {
                  private static id1: number = 0;
                  private static id2: number = 0;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5552..5562

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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: '', redirectTo: 'p1' },
                    { path: 'p1', component: P1, title: 'P1' },
                    { path: 'p2', component: P2, title: 'P2' },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4466..4475

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 107.

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

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

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

          See codeclimate-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: '', redirectTo: 'p1' },
                    { path: 'p1', component: P1, title: 'P1' },
                    { path: 'p2', component: P2, title: 'P2' },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4367..4376

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 107.

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

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

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

              @route({ id: 'product', path: 'product/:id{{^\\d+$}}' })
              @customElement({ name: 'pro-duct', template: `product \${id}` })
              class Product {
                public id: unknown;
                public canLoad(params: Params, _next: RouteNode, _current: RouteNode): boolean {
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 3 hrs to fix
          packages/__tests__/src/router-lite/resources/href.spec.ts on lines 327..335
          packages/__tests__/src/router-lite/resources/load.spec.ts on lines 1242..1250

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

            @customElement({ name: 'b02', template: `b02${vp(0)}` })
            class B02 {
              public async canUnload(
                _next: RouteNode | null,
                _current: RouteNode,
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 117..126

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: 'a', component: A, transitionPlan: 'invoke-lifecycles' },
                  { id: 'r2', path: 'b', component: B, transitionPlan: 'invoke-lifecycles' },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1100..1112

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

            @customElement({ name: 'b01', template: `b01${vp(0)}` })
            class B01 {
              public async canUnload(
                _next: RouteNode | null,
                _current: RouteNode,
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 127..136

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: 'a', component: A, transitionPlan: 'invoke-lifecycles' },
                  { id: 'r2', path: 'b', component: B, transitionPlan: 'invoke-lifecycles' },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1153..1165

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                @route({
                  routes: [
                    { id: 'gc11', path: ['', 'gc11'], component: GrandChildOneOne },
                    { id: 'gc12', path: 'gc12', component: GrandChildOneTwo },
                  ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2280..2298

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 97.

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

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

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

          See codeclimate-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: [
                    { id: 'gc21', path: ['', 'gc21'], component: GrandChildTwoOne },
                    { id: 'gc22', path: 'gc22', component: GrandChildTwoTwo },
                  ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2254..2272

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 97.

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

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

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

          See codeclimate-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: [
                  { id: 'rc1', path: 'ac01', component: Ac01, transitionPlan: 'invoke-lifecycles' },
                  { id: 'rc2', path: 'ac02', component: Ac02, transitionPlan: 'invoke-lifecycles' },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1021..1029
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1090..1098

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'a'], component: A },
                  { id: 'r2', path: ['nf1'], component: NF1 },
                  { id: 'r3', path: ['nf2'], component: NF2 },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1945..1960
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2146..2161

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'a'], component: A },
                  { id: 'r2', path: ['nf1'], component: NF1 },
                  { id: 'r3', path: ['nf2'], component: NF2 },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1334..1349
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1945..1960

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'a'], component: A },
                  { id: 'r2', path: ['nf1'], component: NF1 },
                  { id: 'r3', path: ['nf2'], component: NF2 },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1334..1349
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2146..2161

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'rc1', path: 'bc01', component: Bc01, transitionPlan: 'invoke-lifecycles' },
                  { id: 'rc2', path: 'bc02', component: Bc02, transitionPlan: 'invoke-lifecycles' },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1021..1029
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1076..1084

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'rc1', path: 'ac01', component: Ac01, transitionPlan: 'invoke-lifecycles' },
                  { id: 'rc2', path: 'ac02', component: Ac02, transitionPlan: 'invoke-lifecycles' },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 3 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1076..1084
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1090..1098

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
          Open

                @customElement({ name: 'ce-two', template: 'ce2 ${id1} ${id2}' })
                class CeTwo implements IRouteViewModel {
                  private static id1: number = 0;
                  private static id2: number = 0;
                  private readonly id1: number = ++CeTwo.id1;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5412..5421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5459..5468

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
          Open

                @customElement({ name: 'ce-one', template: 'ce1 ${id1} ${id2}' })
                class CeOne implements IRouteViewModel {
                  private static id1: number = 0;
                  private static id2: number = 0;
                  private readonly id1: number = ++CeOne.id1;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5412..5421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5470..5479

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
          Open

                @customElement({ name: 'ce-one', template: 'ce1 ${id1} ${id2}' })
                class CeOne implements IRouteViewModel {
                  private static id1: number = 0;
                  private static id2: number = 0;
                  private readonly id1: number = ++CeOne.id1;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5459..5468
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5470..5479

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { path: 'b2/:d', component: B2, transitionPlan: 'invoke-lifecycles' },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2408..2422

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { path: 'b1/:b', component: B1, transitionPlan: 'invoke-lifecycles' },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2423..2437

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

              @customElement({
                name: 'a2',
                template: '',
              })
              class A2 implements IRouteViewModel {
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2506..2515

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 92.

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

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

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

          See codeclimate-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: 'a1',
                template: '',
              })
              class A1 implements IRouteViewModel {
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2517..2526

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 92.

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

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

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

          See codeclimate-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: 'a', component: A, transitionPlan: 'invoke-lifecycles' },
                  { path: 'b', component: B, transitionPlan: 'invoke-lifecycles' },
                ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 701..712
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2438..2449

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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: 'a1/:a', component: A1, transitionPlan: 'invoke-lifecycles' },
                  { path: 'a2/:c', component: A2, transitionPlan: 'invoke-lifecycles' },
                ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 653..664
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 701..712

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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: 'a', component: A, transitionPlan: 'invoke-lifecycles' },
                  { path: 'b', component: B, transitionPlan: 'invoke-lifecycles' },
                ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 653..664
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2438..2449

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

            it(`root1 can load a11/a01 as a string`, async function () {
              const { router, host, tearDown } = await createFixture(Root1, Z);
          
              await router.load(`a11/a01`);
              assertComponentsVisible(host, [Root1, A11, A01]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 458..465

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                @route('p2')
                @customElement({ name: 'p-2', template: '<au-viewport></au-viewport>' })
                class P2 implements IRouteViewModel {
                  public getRouteConfig(_parentConfig: IRouteConfig, _routeNode: RouteNode): IRouteConfig | Promise<IRouteConfig> {
                    return {
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6672..6680

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                @route('p1')
                @customElement({ name: 'p-1', template: '<au-viewport></au-viewport>' })
                class P1 implements IRouteViewModel {
                  public getRouteConfig(_parentConfig: IRouteConfig, _routeNode: RouteNode): IRouteConfig | Promise<IRouteConfig> {
                    return {
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6682..6690

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

            it(`root2 can load a01+a02 as a string`, async function () {
              const { router, host, tearDown } = await createFixture(Root2, Z);
          
              await router.load(`a01+a02`);
              assertComponentsVisible(host, [Root2, A01, A02]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 428..435

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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: '', redirectTo: 'c11' },
                    { path: 'c11', component: C11, title: 'C11' },
                    { path: 'c12', component: C12, title: 'C12' },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4345..4353
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4355..4363
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4454..4462

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 85.

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

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

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

          See codeclimate-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: '', redirectTo: 'c22' },
                    { path: 'c21', component: C21, title: 'C21' },
                    { path: 'c22', component: C22, title: 'C22' },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4345..4353
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4355..4363
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4444..4452

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 85.

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

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

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

          See codeclimate-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: '', redirectTo: 'c22' },
                    { path: 'c21', component: C21, title: 'C21' },
                    { path: 'c22', component: C22, title: 'C22' },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4345..4353
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4444..4452
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4454..4462

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 85.

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

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

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

          See codeclimate-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: '', redirectTo: 'c11' },
                    { path: 'c11', component: C11, title: 'C11' },
                    { path: 'c12', component: C12, title: 'C12' },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4355..4363
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4444..4452
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4454..4462

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 85.

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

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

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

          See codeclimate-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({
                  transitionPlan: 'replace',
                  routes: [
                    {
                      id: 'ce1',
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5481..5497

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 84.

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

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

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

          See codeclimate-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({
                  transitionPlan: 'invoke-lifecycles',
                  routes: [
                    {
                      id: 'ce1',
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5374..5390

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 84.

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

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

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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(config as IRouteConfig)
                  @customElement({ name: 'c-1', template: '${parent}/c1' })
                  class C1 {
                    private readonly parent: string;
                    public constructor() {
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6503..6510

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                  @route(config as IRouteConfig)
                  @customElement({ name: 'c-1', template: '${parent}/c1' })
                  class C1 {
                    private readonly parent: string;
                    public constructor() {
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6552..6559

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                @route({
                  routes: [
                    { id: '23', path: ['23/:id', '23/:id/tt/:a'], component: CeL23 },
                    { id: '24', path: ['24/:id'], component: CeL24 },
                  ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5199..5206

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                @route({
                  routes: [
                    { id: '21', path: ['21/:id', '21/:id/to/:a'], component: CeL21 },
                    { id: '22', path: ['22/:id'], component: CeL22 },
                  ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5208..5215

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                @route({
                  routes: [
                    { path: ['', 'c11'], component: C11, title: 'C11' },
                    { path: ['c12/:id', 'c12'], component: C12, title: 'C12' },
                  ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4262..4269

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                @route({
                  routes: [
                    { path: ['', 'p1'], component: P1, title: 'P1' },
                    { path: ['p2/:id', 'p2'], component: P2, title: 'P2' },
                  ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4244..4251

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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({
                routes: [
                  { id: 'r1', path: ['', 'a'], component: A },
                  { id: 'r2', path: ['nf1'], component: NF },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1849..1861
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5217..5227

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 77.

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

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

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

          See codeclimate-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: [
                  { id: 'r1', path: ['', 'a'], component: A },
                  { id: 'r2', path: ['nf1'], component: NF },
                ],
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2050..2062
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5217..5227

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 77.

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

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

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

          See codeclimate-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: [
                    { id: '11', path: ['11/:id', '11/:id/oo/:a'], component: CeL11 },
                    { id: '12', path: ['12/:id'], component: CeL12 },
                  ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 2 hrs to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1849..1861
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2050..2062

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 77.

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

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

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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

          function getText(spec: CSpec): string {
            return spec.map(function (x) {
              if (x instanceof Array) {
                return getText(x);
              }
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router/smoke-tests.spec.ts on lines 48..55

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2094..2102

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2084..2092

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                assert.strictEqual(
                  await router.load({
                    component: CeL11,
                    params: { id: '1', a: '3' },
                    children: [{ component: CeL21, params: { id: '2', a: '4' } }]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5283..5289

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                assert.strictEqual(
                  await router.load({
                    component: '11',
                    params: { id: '1', a: '3' },
                    children: [{ component: '21', params: { id: '2', a: '4' } }]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5262..5268

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                assert.strictEqual(
                  await router.load({
                    component: CeL12,
                    params: { id: '1', a: '3' },
                    children: [{ component: CeL24, params: { id: '2', a: '4' } }]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5273..5279

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                assert.strictEqual(
                  await router.load({
                    component: '12',
                    params: { id: '1', a: '3' },
                    children: [{ component: '24', params: { id: '2', a: '4' } }]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5252..5258

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                @route({
                  routes: [
                    { id: 'r1', path: 'a', component: A, transitionPlan: 'invoke-lifecycles' },
                  ],
                  fallback,
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 926..936

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 71.

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

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

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

          See codeclimate-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: [
                    { id: 'r1', path: 'a', component: A, transitionPlan: 'invoke-lifecycles' },
                  ],
                  fallback,
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 882..892

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 71.

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

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

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

          See codeclimate-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: ['', 'p1'], component: P1, title: 'P1' },
                  { path: 'p2', component: P2, title: 'P2' },
                ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3915..3922

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 70.

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

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

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

          See codeclimate-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: ['', 'c11'], component: C11, title: 'C11' },
                    { path: 'c12', component: C12, title: 'C12' },
                  ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4686..4701

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 70.

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

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

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ 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: 'c-1', template: 'c1 ${id}' })
              class CeOne {
                private id: string;
                public loading(params: Params, _next: RouteNode, _current: RouteNode): void | Promise<void> {
                  this.id = params.id;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4849..4855

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

              @customElement({ name: 'ce-p2', template: `p2 \${id}` })
              class P2 implements IRouteViewModel {
                private id: string;
                public loading(params: Params, _next: RouteNode, _current: RouteNode): void | Promise<void> {
                  this.id = params.id;
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 7042..7048

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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({
                  routes: [
                    { path: '', component: C1, title: 'p2c1', data: { awesome: 'possum' } }
                  ]
                })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6455..6461

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                    return {
                      routes: [
                        { path: ['', 'p1'], component: P1, title: 'P1' },
                        { path: 'p2', component: P2, title: 'P2' },
                        { path: 'p3', component: P3, title: 'P3', nav: false },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3935..3941

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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({
                  routes: [
                    { path: ['', 'p1'], component: P1, title: 'P1' },
                    { path: 'p2', component: P2, title: 'P2' },
                    { path: 'p3', component: P3, title: 'P3', nav: false },
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4048..4054

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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({
                  routes: [
                    { path: '', component: C1, title: 'p1c1', data: { foo: 'bar' } }
                  ]
                })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6463..6469

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 13 locations. Consider refactoring.
          Open

                @route({
                  routes: [
                    { path: ['', 'p1'], component: P1 },
                    { path: 'p2', component: P2 },
                  ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 12 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/events.spec.ts on lines 128..135
          packages/__tests__/src/router-lite/events.spec.ts on lines 174..181
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 20..27
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 124..131
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 135..142
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 336..343
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 345..352
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 451..458
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2658..2671
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6471..6478
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6529..6536
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6576..6583

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                  @route({
                    routes: [
                      { path: ['', 'p1'], component: P1 },
                      { path: 'p2', component: P2 },
                    ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 12 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/events.spec.ts on lines 128..135
          packages/__tests__/src/router-lite/events.spec.ts on lines 174..181
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 20..27
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 124..131
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 135..142
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 336..343
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 345..352
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 451..458
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2658..2671
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6471..6478
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6529..6536
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6635..6642

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
          Open

              @customElement({ name: 'gc-22', template: 'gc22 ${id}' })
              class GrandChildTwoTwo {
                private id: string;
                public loading(params: Params) {
                  this.id = params.id ?? 'NA';
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2865..2871
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3003..3009
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3154..3160

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

              @route({
                routes: [
                  {
                    path: ['', 'c1'],
                    component: ChildOne,
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 12 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/events.spec.ts on lines 128..135
          packages/__tests__/src/router-lite/events.spec.ts on lines 174..181
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 20..27
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 124..131
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 135..142
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 336..343
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 345..352
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 451..458
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6471..6478
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6529..6536
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6576..6583
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6635..6642

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
          Open

              @customElement({ name: 'gc-22', template: 'gc22 ${id}' })
              class GrandChildTwoTwo {
                private id: string;
                public loading(params: Params) {
                  this.id = params.id ?? 'NA';
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2733..2739
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3003..3009
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3154..3160

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
          Open

              @customElement({ name: 'gc-22', template: 'gc22 ${id}' })
              class GrandChildTwoTwo {
                private id: string;
                public loading(params: Params) {
                  this.id = params.id ?? 'NA';
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2733..2739
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2865..2871
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3154..3160

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
          Open

              @customElement({ name: 'gc-22', template: 'gc22 ${id}' })
              class GrandChildTwoTwo {
                private id: string;
                public loading(params: Params) {
                  this.id = params.id ?? 'NA';
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2733..2739
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2865..2871
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3003..3009

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                @route({
                  routes: [
                    { path: ['', 'p1'], component: P1 },
                    { path: 'p2', component: P2 },
                  ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 12 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/events.spec.ts on lines 128..135
          packages/__tests__/src/router-lite/events.spec.ts on lines 174..181
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 20..27
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 124..131
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 135..142
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 336..343
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 345..352
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 451..458
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2658..2671
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6529..6536
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6576..6583
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6635..6642

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                  @route({
                    routes: [
                      { path: ['', 'p1'], component: P1 },
                      { path: 'p2', component: P2 },
                    ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 12 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/events.spec.ts on lines 128..135
          packages/__tests__/src/router-lite/events.spec.ts on lines 174..181
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 20..27
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 124..131
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 135..142
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 336..343
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 345..352
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 451..458
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2658..2671
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6471..6478
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6576..6583
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6635..6642

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                try {
                  await router.load([{ component: 'foo', params: { id: '3' } }, { component: 'bar', params: { x: '1' } }]);
                  assert.fail('expected error1');
                } catch (er) {
                  assert.match((er as Error).message, /AUR3401.+bar/);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5134..5139

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 65.

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

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

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

          See codeclimate-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

                try {
                  await router.load([{ component: Foo, params: { id: '3' } }, { component: Bar, params: { x: '1' } }]);
                  assert.fail('expected error1');
                } catch (er) {
                  assert.match((er as Error).message, /No value for the required parameter 'id'/);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5157..5165

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 65.

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

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

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

          See codeclimate-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

                try {
                  await router.load([{ component: 'foo', params: { id: '3' } }, { component: 'fizz', params: { id: '1' } }]);
                  assert.fail('expected error2');
                } catch (er) {
                  assert.match((er as Error).message, /AUR3401.+fizz/);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5127..5132

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 65.

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

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

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

          See codeclimate-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

                try {
                  await router.load([{ component: Foo, params: { id: '3' } }, { component: Fizz, params: { id: '1' } }]);
                  assert.fail('expected error2');
                } catch (er) {
                  assert.match(
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5150..5155

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 65.

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

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

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

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

          Refactorings

          Further Reading

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

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 7 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1406..1414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1883..1891
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1893..1901
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1990..1998
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2000..2008
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2191..2199
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2201..2209

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 64.

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

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

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

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

          Refactorings

          Further Reading

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

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 7 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1396..1404
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1406..1414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1883..1891
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1893..1901
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1990..1998
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2000..2008
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2201..2209

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 64.

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

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

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

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

          Refactorings

          Further Reading

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

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 7 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1396..1404
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1406..1414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1883..1891
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1893..1901
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1990..1998
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2000..2008
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2191..2199

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 64.

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

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

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

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

          Refactorings

          Further Reading

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

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 7 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1396..1404
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1406..1414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1883..1891
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1893..1901
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2000..2008
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2191..2199
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2201..2209

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 64.

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

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

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

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

          Refactorings

          Further Reading

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

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 7 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1396..1404
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1406..1414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1883..1891
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1893..1901
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1990..1998
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2191..2199
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2201..2209

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 64.

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

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

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

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

          Refactorings

          Further Reading

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

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 7 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1396..1404
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1406..1414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1883..1891
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1990..1998
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2000..2008
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2191..2199
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2201..2209

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 64.

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

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

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

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

          Refactorings

          Further Reading

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

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 7 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1396..1404
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1883..1891
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1893..1901
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1990..1998
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2000..2008
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2191..2199
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2201..2209

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 64.

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

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

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

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

          Refactorings

          Further Reading

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

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 7 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1396..1404
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1406..1414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1893..1901
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1990..1998
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2000..2008
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2191..2199
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2201..2209

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 7 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { path: 'c1', component: C1 },
                  { path: 'c2', component: C2 },
                ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 6 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/lifecycle-hooks.spec.ts on lines 1565..1572
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 238..245
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 354..361
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 462..469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6351..6358
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6876..6883

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 7 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { path: '', component: C1 },
                  { path: 'c2', component: C2 },
                ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 6 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/lifecycle-hooks.spec.ts on lines 1565..1572
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 238..245
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 354..361
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 462..469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6876..6883
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6909..6916

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 7 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { path: 'c1', component: C1 },
                  { path: 'c2', component: C2 },
                ]
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 6 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/lifecycle-hooks.spec.ts on lines 1565..1572
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 238..245
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 354..361
          packages/__tests__/src/router-lite/location-manager.spec.ts on lines 462..469
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6351..6358
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6909..6916

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                BaseRouteViewModel.assertAndClear('params1', ['foo', [{ id: '1', a: '3' }, new URLSearchParams({ b: '3' })]], ['bar', [{ id: '1' }, new URLSearchParams({ b: '3' })]]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5144..5144

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                BaseRouteViewModel.assertAndClear('params3', ['foo', [{ id: '1', a: '3' }, new URLSearchParams({ b: '3' })]], ['bar', [{ id: '1' }, new URLSearchParams({ b: '3' })]]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5121..5121

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1256..1262
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1264..1270
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1506..1512
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1602..1608
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1610..1616
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1694..1700
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1702..1708
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1790..1796
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1798..1804

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1264..1270
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1506..1512
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1514..1520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1602..1608
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1610..1616
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1694..1700
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1702..1708
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1790..1796
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1798..1804

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1256..1262
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1506..1512
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1514..1520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1602..1608
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1610..1616
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1694..1700
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1702..1708
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1790..1796
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1798..1804

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1256..1262
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1264..1270
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1506..1512
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1514..1520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1602..1608
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1610..1616
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1702..1708
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1790..1796
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1798..1804

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1256..1262
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1264..1270
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1506..1512
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1514..1520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1610..1616
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1694..1700
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1702..1708
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1790..1796
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1798..1804

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1256..1262
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1264..1270
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1506..1512
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1514..1520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1602..1608
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1610..1616
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1694..1700
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1702..1708
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1798..1804

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1256..1262
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1264..1270
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1506..1512
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1514..1520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1602..1608
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1610..1616
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1694..1700
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1702..1708
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1790..1796

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C1 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1256..1262
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1264..1270
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1514..1520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1602..1608
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1610..1616
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1694..1700
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1702..1708
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1790..1796
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1798..1804

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1256..1262
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1264..1270
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1506..1512
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1514..1520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1602..1608
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1610..1616
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1694..1700
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1790..1796
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1798..1804

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 10 locations. Consider refactoring.
          Open

              @route({
                routes: [
                  { id: 'r1', path: ['', 'c'], component: C2 },
                ]
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 9 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1256..1262
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1264..1270
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1506..1512
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1514..1520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1602..1608
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1694..1700
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1702..1708
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1790..1796
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 1798..1804

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
          Open

                try {
                  await router.load('c-b');
                  assert.fail('expected error 4');
                } catch (er) {
                  assert.match((er as Error).message, /AUR3401.+c-b/);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6831..6836
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6838..6843
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6845..6850

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
          Open

                try {
                  await router.load('c-1');
                  assert.fail('expected error 1');
                } catch (er) {
                  assert.match((er as Error).message, /AUR3401.+c-1/);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6838..6843
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6845..6850
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6852..6857

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
          Open

                try {
                  await router.load('c-a');
                  assert.fail('expected error 2');
                } catch (er) {
                  assert.match((er as Error).message, /AUR3401.+c-a/);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6831..6836
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6845..6850
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6852..6857

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 4 locations. Consider refactoring.
          Open

                try {
                  await router.load('c-2');
                  assert.fail('expected error 3');
                } catch (er) {
                  assert.match((er as Error).message, /AUR3401.+c-2/);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6831..6836
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6838..6843
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6852..6857

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                @route({
                  routes: [
                    { path: ['', 'p1'], component: P1, title: 'P1' },
                  ]
                })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4592..4598

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                @route({
                  routes: [
                    { path: ['', 'c11'], component: C11, title: 'C11' },
                  ]
                })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4600..4606

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

                      assert.strictEqual(anchor.href.endsWith(item.href), true, `${message} - #${i} href - actual: ${anchor.href} - expected: ${item.href}`);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 3 other locations - About 1 hr to fix
          packages/__tests__/src/router-lite/resources/load.spec.ts on lines 15..15
          packages/__tests__/src/router-lite/resources/load.spec.ts on lines 129..129
          packages/__tests__/src/router-lite/resources/load.spec.ts on lines 181..181

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                BaseRouteViewModel.assertAndClear('params2', ['cel12', [{ id: '1' }, new URLSearchParams([['a', '3']])]], ['cel24', [{ id: '2' }, new URLSearchParams([['a', '3'], ['a', '4']])]]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5291..5291

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                BaseRouteViewModel.assertAndClear('params4', ['cel12', [{ id: '1' }, new URLSearchParams([['a', '3']])]], ['cel24', [{ id: '2' }, new URLSearchParams([['a', '3'], ['a', '4']])]]);
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5270..5270

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

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

          function assertComponentsVisible(host: HTMLElement, spec: CSpec, msg: string = ''): void {
            assert.strictEqual(host.textContent, getText(spec), msg);
          }
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 1 hr to fix
          packages/__tests__/src/router/smoke-tests.spec.ts on lines 56..58

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                BaseRouteViewModel.assertAndClear('params1', ['cel11', [{ id: '1', a: '3' }, new URLSearchParams()]], ['cel21', [{ id: '2', a: '4' }, new URLSearchParams()]]);
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 55 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5281..5281

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 53.

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

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

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

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

          Refactorings

          Further Reading

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

                BaseRouteViewModel.assertAndClear('params3', ['cel11', [{ id: '1', a: '3' }, new URLSearchParams()]], ['cel21', [{ id: '2', a: '4' }, new URLSearchParams()]]);
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 55 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5260..5260

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 53.

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

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

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

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

          Refactorings

          Further Reading

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

                  @route({
                    routes: [
                      { path: '', redirectTo: 'c1' },
                      C1,
                    ]
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 50 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6511..6518

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                  @route({
                    routes: [
                      { path: '', redirectTo: 'c1' },
                      C1,
                    ]
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 50 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 6520..6527

          Duplicated Code

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

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

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 3 locations. Consider refactoring.
          Open

              @route({ routes: [Product, NotFound], fallback: 'nf' })
              @customElement({
                name: 'ro-ot',
                template: `<au-viewport></au-viewport>`
              })
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 2 other locations - About 50 mins to fix
          packages/__tests__/src/router-lite/resources/href.spec.ts on lines 337..346
          packages/__tests__/src/router-lite/resources/load.spec.ts on lines 1252..1262

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 51.

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

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

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

          See codeclimate-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: 'b2', template: null })
              class B2 {
                public loading(params: Params) {
                  b2Params.push(params);
                }
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 50 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2396..2401

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 51.

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

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

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

          See codeclimate-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: 'b1', template: null })
              class B1 {
                public loading(params: Params) {
                  b1Params.push(params);
                }
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 50 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 2402..2407

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 51.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c21', text: 'C21', active: false }, { href: 'c22', text: 'C22', active: true }], 'round#1 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c11', text: 'C11', active: false }, { href: 'c12', text: 'C12', active: true }], 'round#2 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c21', text: 'C21', active: true }, { href: 'c22', text: 'C22', active: false }], 'round#3 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c21', text: 'C21', active: true }, { href: 'c22', text: 'C22', active: false }], 'round#3 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c11', text: 'C11', active: true }, { href: 'c12/:id', text: 'C12', active: false }], 'start child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c11', text: 'C11', active: false }, { href: 'c12', text: 'C12', active: true }], 'round#2 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c21', text: 'C21', active: true }, { href: 'c22', text: 'C22', active: false }], 'round#3 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                rootNavbar.assert([{ href: 'p1/:id', text: 'P1', active: false }, { href: 'p2/:id', text: 'P2', active: false }], 'start root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c11', text: 'C11', active: true }, { href: 'c12', text: 'C12', active: false }], 'start child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c11', text: 'C11', active: true }, { href: 'c12', text: 'C12', active: false }], 'start child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 49.

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

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

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

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

          Refactorings

          Further Reading

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

                childNavBar.assert([{ href: 'c11', text: 'C11', active: true }, { href: 'c12', text: 'C12', active: false }], 'start child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c21', text: 'C21', active: false }, { href: 'c22', text: 'C22', active: true }], 'round#1 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c21', text: 'C21', active: false }, { href: 'c22', text: 'C22', active: true }], 'round#1 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c11', text: 'C11', active: false }, { href: 'c12/:id', text: 'C12', active: true }], 'round#4 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c11', text: 'C11', active: false }, { href: 'c12', text: 'C12', active: true }], 'round#2 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c21', text: 'C21', active: false }, { href: 'c22', text: 'C22', active: true }], 'round#1 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c11', text: 'C11', active: true }, { href: 'c12', text: 'C12', active: false }], 'start child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c21', text: 'C21', active: false }, { href: 'c22', text: 'C22', active: true }], 'round#1 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c21', text: 'C21', active: false }, { href: 'c22', text: 'C22', active: true }], 'round#1 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c21', text: 'C21', active: true }, { href: 'c22', text: 'C22', active: false }], 'round#3 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1/:id', text: 'P1', active: false }, { href: 'p2/:id', text: 'P2', active: true }], 'round#1 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c11', text: 'C11', active: true }, { href: 'c12', text: 'C12', active: false }], 'start child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c11', text: 'C11', active: false }, { href: 'c12', text: 'C12', active: true }], 'round#2 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c21', text: 'C21', active: true }, { href: 'c22', text: 'C22', active: false }], 'round#3 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c11', text: 'C11', active: false }, { href: 'c12', text: 'C12', active: true }], 'round#2 navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c11', text: 'C11', active: false }, { href: 'c12/:id', text: 'C12', active: true }], 'round#2 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4316..4316
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 27 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c21', text: 'C21', active: false }, { href: 'c22', text: 'C22', active: true }], 'round#3 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 26 other locations - About 40 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3976..3976
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3983..3983
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3990..3990
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3997..3997
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4089..4089
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4096..4096
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4103..4103
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4110..4110
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4202..4202
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4209..4209
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4216..4216
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4223..4223
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4295..4295
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4302..4302
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4309..4309
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4323..4323
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4402..4402
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4409..4409
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4416..4416
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4423..4423
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4501..4501
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4508..4508
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4515..4515
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4522..4522
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4573..4573
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4578..4578

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 49.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2/:id', text: 'P2', active: false }], 'start root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2/:id', text: 'P2', active: true }], 'round#3 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#3 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2/:id', text: 'P2', active: true }], 'round#1 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#3 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'start root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#1 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#3 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#1 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1/:id', text: 'P1', active: true }, { href: 'p2/:id', text: 'P2', active: false }], 'round#2 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'round#2 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'start root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: false }], 'round#4 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: false }], 'round#4 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#3 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#1 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'round#2 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'round#2 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'start root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#1 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'round#2 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'start root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: false }], 'round#4 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#1 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: false }], 'round#4 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2/:id', text: 'P2', active: false }], 'round#2 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                childNavBar.assert([{ href: 'c21', text: 'C21', active: true }, { href: 'c22', text: 'C22', active: false }], 'round#5 child navbar');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: true }], 'round#3 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2/:id', text: 'P2', active: true }], 'round#5 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'round#2 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2', text: 'P2', active: false }], 'start root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: false }, { href: 'p2', text: 'P2', active: false }], 'round#4 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4321..4321
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 33 locations. Consider refactoring.
          Open

                rootNavbar.assert([{ href: 'p1', text: 'P1', active: true }, { href: 'p2/:id', text: 'P2', active: false }], 'round#4 root');
          Severity: Major
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 32 other locations - About 35 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3974..3974
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3981..3981
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3988..3988
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3995..3995
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4002..4002
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4087..4087
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4094..4094
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4101..4101
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4108..4108
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4115..4115
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4200..4200
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4207..4207
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4214..4214
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4221..4221
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4228..4228
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4293..4293
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4300..4300
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4307..4307
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4314..4314
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4328..4328
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4330..4330
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4400..4400
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4407..4407
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4414..4414
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4421..4421
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4428..4428
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4499..4499
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4506..4506
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4513..4513
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4520..4520
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4527..4527
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4583..4583

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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

                      assert.strictEqual(anchor.classList.contains('active'), !!item.active, `${message} - #${i} active`);
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 35 mins to fix
          packages/__tests__/src/router-lite/resources/load.spec.ts on lines 17..17

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                try {
                  await router.load({ component: Fizz, params: { id: '1' } });
                  assert.fail('expected error2');
                } catch (er) {
                  assert.match(
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 30 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5045..5050

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                try {
                  await router.load({ component: 'bar', params: { x: '1' } });
                  assert.fail('expected error1');
                } catch (er) {
                  assert.match((er as Error).message, /AUR3401.+bar/);
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 30 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5029..5034

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                    return {
                      routes: [
                        { path: 'c21', component: C21, title: 'C21' },
                        { path: ['', 'c22'], component: C22, title: 'C22' },
                      ]
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 30 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 3924..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 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 2 locations. Consider refactoring.
          Open

                @route({
                  routes: [
                    { path: 'c21', component: C21, title: 'C21' },
                    { path: ['', 'c22'], component: C22, title: 'C22' },
                  ]
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 30 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 4033..4038

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                try {
                  await router.load({ component: 'fizz', params: { id: '1' } });
                  assert.fail('expected error2');
                } catch (er) {
                  assert.match((er as Error).message, /AUR3401.+fizz/);
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 30 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5022..5027

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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 2 locations. Consider refactoring.
          Open

                try {
                  await router.load({ component: Bar, params: { x: '1' } });
                  assert.fail('expected error1');
                } catch (er) {
                  assert.match((er as Error).message, /No value for the required parameter 'id'/);
          Severity: Minor
          Found in packages/__tests__/src/router-lite/smoke-tests.spec.ts and 1 other location - About 30 mins to fix
          packages/__tests__/src/router-lite/smoke-tests.spec.ts on lines 5052..5060

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both 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