aurelia/aurelia

View on GitHub
packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts

Summary

Maintainability
F
1 wk
Test Coverage

File repeater.unit.spec.ts has 600 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { AccessScopeExpression, ForOfStatement, BindingIdentifier } from '@aurelia/expression-parser';
import { DirtyChecker } from '@aurelia/runtime';
import {
  Scope,
  BindingContext,
Severity: Major
Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts - About 1 day to fix

    Function applyMutations has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function applyMutations(sut: Repeat, specs: MutationSpec[]): void {
        let spec: MutationSpec;
        let i = 0;
        const len = specs.length;
        for (; i < len; ++i) {
    Severity: Minor
    Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts - About 1 hr to fix

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

              if (flush) {
                PLATFORM.domWriteQueue.flush();
      
                assert.strictEqual(host.textContent, expectedText4, 'host.textContent #9');
              } else {
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 4 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 578..590

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 132.

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

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

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

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

              if (flush) {
                PLATFORM.domWriteQueue.flush();
      
                assert.strictEqual(host.textContent, expectedText2, 'host.textContent #3');
              } else {
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 4 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 614..626

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 132.

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

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

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

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

          { t: '65', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'reverse' },
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 1, items: [] },
            { op: 'splice', start: 5, deleteCount: 1, items: [] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 3 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 391..396

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 108.

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

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

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

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

          { t: '63', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 2, items: [] },
            { op: 'splice', start: 5, deleteCount: 1, items: [] },
            { op: 'reverse' },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 3 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 348..353

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 108.

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

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

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

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

          { t: '60', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 1, items: [] },
            { op: 'splice', start: 5, deleteCount: 1, items: [] },
            { op: 'reverse' },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 3 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 364..369

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 108.

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

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

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

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

          { t: '68', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'reverse' },
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 2, items: [] },
            { op: 'splice', start: 5, deleteCount: 1, items: [] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 3 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 375..380

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 108.

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

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

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

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

          { t: '55', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 1, items: [] },
            { op: 'splice', start: 5, deleteCount: 1, items: [] },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 3 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 338..342

      Duplicated Code

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

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

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

          { t: '58', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 2, items: [] },
            { op: 'splice', start: 5, deleteCount: 1, items: [] },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 3 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 325..329

      Duplicated Code

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

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

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

          { t: '61', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 2, items: [] },
            { op: 'splice', start: 3, deleteCount: 1, items: [] },
            { op: 'reverse' },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 2 other locations - About 2 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 343..347
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 359..363

      Duplicated Code

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

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

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

          { t: '62', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 2, items: [] },
            { op: 'reverse' },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 2 other locations - About 2 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 343..347
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 354..358

      Duplicated Code

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

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

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

          { t: '66', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'reverse' },
            { op: 'splice', start: 1, deleteCount: 2, items: [] },
            { op: 'splice', start: 3, deleteCount: 1, items: [] },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 2 other locations - About 2 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 370..374
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 386..390

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 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 3 locations. Consider refactoring.
      Open

          { t: '67', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'reverse' },
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 2, items: [] },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 2 other locations - About 2 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 370..374
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 381..385

      Duplicated Code

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

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

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

          { t: '59', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 1, items: [] },
            { op: 'reverse' },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 2 other locations - About 2 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 354..358
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 359..363

      Duplicated Code

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

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

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

          { t: '64', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'reverse' },
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 1, items: [] },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 2 other locations - About 2 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 381..385
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 386..390

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 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 3 locations. Consider refactoring.
      Open

          { t: '56', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 2, items: [] },
            { op: 'splice', start: 3, deleteCount: 1, items: [] },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 2 other locations - About 2 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 321..324
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 334..337

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 78.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '57', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 2, items: [] },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 2 other locations - About 2 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 321..324
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 330..333

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 78.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '54', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: [] },
            { op: 'splice', start: 3, deleteCount: 1, items: [] },
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 2 other locations - About 2 hrs to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 330..333
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 334..337

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 78.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '06', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'push', items: ['d', 'e', 'f'] },
            { op: 'assign', newItems: [] },
            { op: 'push', items: ['d', 'e', 'f'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 1 hr to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 429..433

      Duplicated Code

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

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

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

          { t: '77', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'unshift', items: ['d', 'e', 'f'] },
            { op: 'assign', newItems: [] },
            { op: 'unshift', items: ['g', 'h', 'i'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 1 hr to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 163..167

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 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

          { t: '80', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'shift', count: 1 },
            { op: 'assign', newItems: ['d', 'e', 'f'] },
            { op: 'shift', count: 1 }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 1 hr to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 434..438

      Duplicated Code

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

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

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

          { t: '78', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'pop', count: 1 },
            { op: 'assign', newItems: ['d', 'e', 'f'] },
            { op: 'pop', count: 1 }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 1 hr to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 444..448

      Duplicated Code

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

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

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

          { t: '03', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'assign', newItems: ['a', 'b', 'c'] },
            { op: 'assign', newItems: ['d', 'e', 'f'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 1 hr to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 159..162

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 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

          { t: '05', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'push', items: ['d', 'e', 'f'] },
            { op: 'push', items: ['d', 'e', 'f'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 1 hr to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 152..155

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 59.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '43', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'shift', count: 1 },
            { op: 'push', items: ['g', 'h'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 281..284
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 285..288

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '44', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'shift', count: 2 },
            { op: 'push', items: ['g', 'h'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 277..280
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 285..288

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '45', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'shift', count: 3 },
            { op: 'push', items: ['g', 'h'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 277..280
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 281..284

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '36', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 3, items: ['x', 'y', 'z'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 211..213
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 223..225
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 241..243

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 56.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '32', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 2, items: ['x', 'y', 'z'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 211..213
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 223..225
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 253..255

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 56.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '26', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 3, items: ['x', 'y', 'z'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 211..213
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 241..243
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 253..255

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 56.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '22', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 2, items: ['x', 'y', 'z'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 223..225
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 241..243
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 253..255

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 56.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '42', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'shift', count: 3 },
            { op: 'push', items: ['g'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 265..268
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 269..272

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 56.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '40', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'shift', count: 1 },
            { op: 'push', items: ['g'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 269..272
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 273..276

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 56.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '41', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'shift', count: 2 },
            { op: 'push', items: ['g'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 265..268
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 273..276

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 56.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '21', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 2, items: ['y', 'z'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 220..222
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 238..240
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 250..252

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 55.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '35', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 3, items: ['y', 'z'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 208..210
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 220..222
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 238..240

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 55.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '25', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 3, items: ['y', 'z'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 208..210
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 238..240
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 250..252

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 55.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '31', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 2, items: ['y', 'z'] }
          ] },
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 208..210
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 220..222
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 250..252

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 55.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '30', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 2, items: ['z'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 199..201
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 205..207
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 217..219
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 229..231
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 247..249

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 54.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '34', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 3, items: ['z'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 199..201
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 205..207
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 217..219
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 229..231
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 235..237

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 54.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '28', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 1, items: ['z'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 199..201
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 205..207
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 217..219
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 235..237
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 247..249

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 54.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '24', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 3, items: ['z'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 199..201
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 205..207
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 229..231
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 235..237
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 247..249

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 54.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '20', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 2, items: ['z'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 199..201
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 217..219
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 229..231
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 235..237
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 247..249

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 54.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '18', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: ['z'] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 205..207
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 217..219
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 229..231
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 235..237
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 247..249

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 54.

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

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

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

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

      Refactorings

      Further Reading

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

          { t: '33', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 3, items: [] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 196..198
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 202..204
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 214..216
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 226..228
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 232..234

      Duplicated Code

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

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

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

          { t: '23', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 3, items: [] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 196..198
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 202..204
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 226..228
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 232..234
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 244..246

      Duplicated Code

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

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

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

          { t: '19', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 2, items: [] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 196..198
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 214..216
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 226..228
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 232..234
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 244..246

      Duplicated Code

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

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

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

          { t: '17', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 1, deleteCount: 1, items: [] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 202..204
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 214..216
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 226..228
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 232..234
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 244..246

      Duplicated Code

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

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

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

          { t: '27', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 1, items: [] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 196..198
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 202..204
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 214..216
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 232..234
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 244..246

      Duplicated Code

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

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

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

          { t: '29', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'splice', start: 2, deleteCount: 2, items: [] }
          ] },
      Severity: Major
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 5 other locations - About 55 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 196..198
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 202..204
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 214..216
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 226..228
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 244..246

      Duplicated Code

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

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

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

          { t: '15', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'splice', start: 0, deleteCount: 1, items: ['b'] }
          ] },
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 50 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 187..189

      Duplicated Code

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

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

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

          { t: '13', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'splice', start: 0, deleteCount: 1, items: ['a'] }
          ] },
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 50 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 190..192

      Duplicated Code

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

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

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

          { t: '81', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'shift', count: 3 },
            { op: 'assign', newItems: ['d', 'e', 'f', 'g', 'h', 'i'] },
            { op: 'shift', count: 3 },
          ] },
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 40 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 439..443

      Duplicated Code

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

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

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

          { t: '79', items: ['a', 'b', 'c', 'd', 'e', 'f'], flush: true, mutations: [
            { op: 'pop', count: 3 },
            { op: 'assign', newItems: ['d', 'e', 'f', 'g', 'h', 'i'] },
            { op: 'pop', count: 3 }
          ] },
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 40 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 449..453

      Duplicated Code

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

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

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

          { t: '71', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'push', items: ['d', 'e', 'f'] }
          ] },
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 40 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 400..402

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 48.

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

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

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

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

          { t: '70', items: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], flush: true, mutations: [
            { op: 'assign', newItems: ['d', 'e', 'f'] }
          ] },
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 40 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 403..405

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 48.

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

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

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

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

          { t: '53', items: ['c', 'b', 'a'], flush: true, mutations: [
            { op: 'sort' },
            { op: 'reverse' },
            { op: 'sort' }
          ] },
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 40 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 296..300

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 48.

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

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

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

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

              case 'shift':
                {
                  let j = 0;
                  for (; j < spec.count; ++j) {
                    sut.items.shift();
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 40 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 104..111

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 48.

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

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

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

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

          { t: '48', items: ['a', 'b', 'c'], flush: true, mutations: [
            { op: 'reverse' },
            { op: 'reverse' },
            { op: 'reverse' }
          ] },
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 40 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 316..320

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 48.

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

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

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

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

              case 'pop':
                {
                  let j = 0;
                  for (; j < spec.count; ++j) {
                    sut.items.pop();
      Severity: Minor
      Found in packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts and 1 other location - About 40 mins to fix
      packages/__tests__/src/3-runtime-html/repeater.unit.spec.ts on lines 112..119

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 48.

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

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

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