Microsoft/fast-dna

View on GitHub
packages/web-components/fast-element/src/templating/compiler.spec.ts

Summary

Maintainability
F
2 wks
Test Coverage

File compiler.spec.ts has 586 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { expect } from "chai";
import { customElement, FASTElement } from "../components/fast-element.js";
import { Markup } from './markup.js';
import { css } from "../styles/css.js";
import { createTrackableDOMPolicy, toHTML } from "../__test__/helpers.js";
Severity: Major
Found in packages/web-components/fast-element/src/templating/compiler.spec.ts - About 1 day to fix

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

            scenarios.forEach(x => {
                policies.forEach(y => {
                    it(`handles ${x.type} binding expression(s) with ${y.name} policy`, () => {
                        const { fragment, factories } = compile(x.html, x.directives(), y.provided);
    
    
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 565..599

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 377.

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

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

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

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

            scenarios.forEach(x => {
                policies.forEach(y => {
                    it(`handles ${x.type} binding expression(s) with ${y.name} policy`, () => {
                        const { fragment, factories } = compile(x.html, x.directives(), y.provided);
    
    
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 394..428

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 377.

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

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

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

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

    Refactorings

    Further Reading

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

            const add = (factory: CompiledViewBehaviorFactory): string => {
                const id = `${++nextId}`;
                ids.push(id);
                factory.id = id;
                factories[id] = factory;
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 240..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 77.

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

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

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

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

    Refactorings

    Further Reading

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

                const add = (factory: CompiledViewBehaviorFactory): string => {
                    const id = `${++nextId}`;
                    ids.push(id);
                    factory.id = id;
                    factories[id] = factory;
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 30..36

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 77.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "separated ending",
                    html: `beginning ${inline(0)}separator${inline(1)}`,
                    directives: () => [binding(), binding()],
                    fragment: `beginning  separator `,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 114..121
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 122..129
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 130..137
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 138..145
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 146..153
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 154..161
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 162..169

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 73.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "back-to-back starting",
                    html: `${inline(0)}${inline(1)} end`,
                    directives: () => [binding(), binding()],
                    fragment: `   end`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 114..121
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 130..137
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 138..145
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 146..153
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 154..161
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 162..169
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 170..177

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 73.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "back-to-back middle",
                    html: `beginning ${inline(0)}${inline(1)} end`,
                    directives: () => [binding(), binding()],
                    fragment: `beginning    end`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 114..121
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 122..129
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 138..145
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 146..153
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 154..161
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 162..169
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 170..177

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 73.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "back-to-back",
                    html: `${inline(0)}${inline(1)}`,
                    directives: () => [binding(), binding()],
                    fragment: `  `,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 122..129
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 130..137
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 138..145
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 146..153
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 154..161
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 162..169
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 170..177

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 73.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "separated starting",
                    html: `${inline(0)}separator${inline(1)} end`,
                    directives: () => [binding(), binding()],
                    fragment: ` separator  end`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 114..121
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 122..129
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 130..137
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 138..145
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 146..153
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 162..169
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 170..177

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 73.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "separated",
                    html: `${inline(0)}separator${inline(1)}`,
                    directives: () => [binding(), binding()],
                    fragment: ` separator `,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 114..121
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 122..129
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 130..137
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 138..145
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 154..161
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 162..169
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 170..177

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 73.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "separated middle",
                    html: `beginning ${inline(0)}separator${inline(1)} end`,
                    directives: () => [binding(), binding()],
                    fragment: `beginning  separator  end`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 114..121
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 122..129
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 130..137
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 138..145
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 146..153
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 154..161
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 170..177

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 73.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "back-to-back ending",
                    html: `start ${inline(0)}${inline(1)}`,
                    directives: () => [binding(), binding()],
                    fragment: `start   `,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 114..121
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 122..129
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 130..137
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 146..153
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 154..161
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 162..169
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 170..177

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 73.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "back-to-back starting",
                    html: `<template class="${inline(0)}${inline(1)} end"></template>`,
                    directives: () => [binding(), binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "separated starting",
                    html: `<a href="${inline(0)}separator${inline(1)} end">Link</a>`,
                    directives: () => [binding(), binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "separated ending",
                    html: `<a href="beginning ${inline(0)}separator${inline(1)}">Link</a>`,
                    directives: () => [binding(), binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "separated",
                    html: `<a href="${inline(0)}separator${inline(1)}">Link</a>`,
                    directives: () => [binding(), binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "back-to-back",
                    html: `<template class="${inline(0)}${inline(1)}"></template>`,
                    directives: () => [binding(), binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "separated starting",
                    html: `<template class="${inline(0)}separator${inline(1)} end"></template>`,
                    directives: () => [binding(), binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "separated ending",
                    html: `<template class="beginning ${inline(0)}separator${inline(1)}"></template>`,
                    directives: () => [binding(), binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547

    Duplicated Code

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

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

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

                {
                    type: "back-to-back",
                    html: `<a href="${inline(0)}${inline(1)}">Link</a>`,
                    directives: () => [binding(), binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "back-to-back middle",
                    html: `<template class="beginning ${inline(0)}${inline(1)} end"></template>`,
                    directives: () => [binding(), binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "separated",
                    html: `<template class="${inline(0)}separator${inline(1)}"></template>`,
                    directives: () => [binding(), binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "separated middle",
                    html: `<template class="beginning ${inline(0)}separator${inline(
                        1
                    )} end"></template>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "back-to-back ending",
                    html: `<a href="start ${inline(0)}${inline(1)}">Link</a>`,
                    directives: () => [binding(), binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "back-to-back ending",
                    html: `<template class="start ${inline(0)}${inline(1)}"></template>`,
                    directives: () => [binding(), binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "back-to-back starting",
                    html: `<a href="${inline(0)}${inline(1)} end">Link</a>`,
                    directives: () => [binding(), binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "back-to-back middle",
                    html: `<a href="beginning ${inline(0)}${inline(1)} end">Link</a>`,
                    directives: () => [binding(), binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 347..356
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "separated middle",
                    html: `<a href="beginning ${inline(0)}separator${inline(
                        1
                    )} end">Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 299..306
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 307..314
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 315..322
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 323..330
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 331..338
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 339..346
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 357..364
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 490..497
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 498..505
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 506..513
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 514..521
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 522..529
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 530..537
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 538..547
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 548..555

    Duplicated Code

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

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

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

                {
                    type: "attributes on different elements with",
                    html: `<a href="${inline(0)}">Link</a><a href="${inline(1)}">Link</a>`,
                    directives: () => [binding(), binding()],
                    fragment: `<a>Link</a><a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 365..371
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 556..562

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 68.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "multiple attributes on the same element with",
                    html: `<template class="${inline(0)}" role="${inline(1)}"></template>`,
                    directives: () => [binding(), binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 365..371
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 372..378

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 68.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "multiple attributes on the same element with",
                    html: `<a href="${inline(0)}" target="${inline(1)}">Link</a>`,
                    directives: () => [binding(), binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 372..378
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 556..562

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 68.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single ending",
                    html: `<a href="${inline(0)} end">Link</a>`,
                    directives: () => [binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 267..274
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 275..282
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 283..290
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 458..465
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 466..473
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 474..481
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 482..489

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single middle",
                    html: `<template class="beginning ${inline(0)} end"></template>`,
                    directives: () => [binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 267..274
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 275..282
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 283..290
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 291..298
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 458..465
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 466..473
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 482..489

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single starting",
                    html: `<template class="${inline(0)} end"></template>`,
                    directives: () => [binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 267..274
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 275..282
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 283..290
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 291..298
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 458..465
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 474..481
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 482..489

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single starting",
                    html: `<a href="${inline(0)} end">Link</a>`,
                    directives: () => [binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 267..274
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 283..290
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 291..298
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 458..465
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 466..473
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 474..481
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 482..489

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single",
                    html: `<template class="${inline(0)}"></template>`,
                    directives: () => [binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 267..274
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 275..282
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 283..290
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 291..298
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 466..473
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 474..481
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 482..489

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single",
                    html: `<a href="${inline(0)}">Link</a>`,
                    directives:() => [binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 275..282
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 283..290
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 291..298
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 458..465
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 466..473
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 474..481
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 482..489

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single middle",
                    html: `<a href="beginning ${inline(0)} end">Link</a>`,
                    directives: () => [binding()],
                    fragment: `<a>Link</a>`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 267..274
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 275..282
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 291..298
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 458..465
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 466..473
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 474..481
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 482..489

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single ending",
                    html: `<template class="${inline(0)} end"></template>`,
                    directives: () => [binding()],
                    fragment: ``,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 267..274
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 275..282
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 283..290
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 291..298
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 458..465
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 466..473
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 474..481

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single",
                    html: `${inline(0)}`,
                    directives: () => [binding()],
                    fragment: ` `,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 90..97
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 98..105
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 106..113

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single middle",
                    html: `beginning ${inline(0)} end`,
                    directives: () => [binding()],
                    fragment: `beginning   end`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 82..89
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 90..97
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 106..113

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single ending",
                    html: `${inline(0)} end`,
                    directives: () => [binding()],
                    fragment: `  end`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 82..89
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 90..97
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 98..105

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

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

                {
                    type: "a single starting",
                    html: `${inline(0)} end`,
                    directives: () => [binding()],
                    fragment: `  end`,
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 82..89
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 98..105
    packages/web-components/fast-element/src/templating/compiler.spec.ts on lines 106..113

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 60.

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status