codenautas/js-to-html

View on GitHub

Showing 162 of 180 total issues

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

    "size": {
        "tags": {
            "input": {"description": "Size of the control","value": "Valid non-negative integer greater than zero"},
            "select": {"description": "Size of the control","value": "Valid non-negative integer greater than zero"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "dir": {
        "tags": {
            "HTML elements": {"description": "The text directionality of the element","value": "\"ltr\"; \"rtl\"; \"auto\""},
            "bdo": {"description": "The text directionality of the element","value": "\"ltr\"; \"rtl\""}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "inputmode": {
        "tags": {
            "input": {"description": "Hint for selecting an input modality","value": "\"verbatim\"; \"latin\"; \"latin-name\"; \"latin-prose\"; \"full-width-latin\"; \"kana\"; \"kana-name\"; \"katakana\"; \"numeric\"; \"tel\"; \"email\"; \"url\""},
            "textarea": {"description": "Hint for selecting an input modality","value": "\"verbatim\"; \"latin\"; \"latin-name\"; \"latin-prose\"; \"full-width-latin\"; \"kana\"; \"kana-name\"; \"katakana\"; \"numeric\"; \"tel\"; \"email\"; \"url\""}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "min": {
        "tags": {
            "input": {"description": "Minimum value","value": "Varies*"},
            "meter": {"description": "Lower bound of range","value": "Valid floating-point number*"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "autoplay": {
        "tags": {
            "audio": {"description": "Hint that the media resource can be started automatically when the page is loaded","value": "Boolean attribute"},
            "video": {"description": "Hint that the media resource can be started automatically when the page is loaded","value": "Boolean attribute"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "colspan": {
        "tags": {
            "td": {"description": "Number of columns that the cell is to span","value": "Valid non-negative integer greater than zero"},
            "th": {"description": "Number of columns that the cell is to span","value": "Valid non-negative integer greater than zero"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "formnovalidate": {
        "tags": {
            "button": {"description": "Bypass form control validation for form submission","value": "Boolean attribute"},
            "input": {"description": "Bypass form control validation for form submission","value": "Boolean attribute"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "muted": {
        "tags": {
            "audio": {"description": "Whether to mute the media resource by default","value": "Boolean attribute"},
            "video": {"description": "Whether to mute the media resource by default","value": "Boolean attribute"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "span": {
        "tags": {
            "col": {"description": "Number of columns spanned by the element","value": "Valid non-negative integer greater than zero"},
            "colgroup": {"description": "Number of columns spanned by the element","value": "Valid non-negative integer greater than zero"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "formaction": {
        "tags": {
            "button": {"description": "URL to use for form submission","value": "Valid non-empty URL potentially surrounded by spaces"},
            "input": {"description": "URL to use for form submission","value": "Valid non-empty URL potentially surrounded by spaces"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "mediagroup": {
        "tags": {
            "audio": {"description": "Groups media elements together with an implicit MediaController","value": "Text"},
            "video": {"description": "Groups media elements together with an implicit MediaController","value": "Text"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "multiple": {
        "tags": {
            "input": {"description": "Whether to allow multiple values","value": "Boolean attribute"},
            "select": {"description": "Whether to allow multiple values","value": "Boolean attribute"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "ping": {
        "tags": {
            "a": {"description": "URLs to ping","value": "Set of space-separated tokens consisting of valid non-empty URLs"},
            "area": {"description": "URLs to ping","value": "Set of space-separated tokens consisting of valid non-empty URLs"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "preload": {
        "tags": {
            "audio": {"description": "Hints how much buffering the media resource will likely need","value": "\"none\"; \"metadata\"; \"auto\""},
            "video": {"description": "Hints how much buffering the media resource will likely need","value": "\"none\"; \"metadata\"; \"auto\""}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "headers": {
        "tags": {
            "td": {"description": "The header cells for this cell","value": "Unordered set of unique space-separated tokens, case-sensitive, consisting of IDs*"},
            "th": {"description": "The header cells for this cell","value": "Unordered set of unique space-separated tokens, case-sensitive, consisting of IDs*"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "open": {
        "tags": {
            "details": {"description": "Whether the details are visible","value": "Boolean attribute"},
            "dialog": {"description": "Whether the dialog box is showing","value": "Boolean attribute"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "placeholder": {
        "tags": {
            "input": {"description": "User-visible label to be placed within the form control","value": "Text*"},
            "textarea": {"description": "User-visible label to be placed within the form control","value": "Text*"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "formtarget": {
        "tags": {
            "button": {"description": "Browsing context for form submission","value": "Valid browsing context name or keyword"},
            "input": {"description": "Browsing context for form submission","value": "Valid browsing context name or keyword"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "rowspan": {
        "tags": {
            "td": {"description": "Number of rows that the cell is to span","value": "Valid non-negative integer"},
            "th": {"description": "Number of rows that the cell is to span","value": "Valid non-negative integer"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1526..1532
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    "nonce": {
        "tags": {
            "script": {"description": "Cryptographic nonce used in Content Security Policy checks [CSP]","value": "Text"},
            "style": {"description": "Cryptographic nonce used in Content Security Policy checks [CSP]","value": "Text"}
        },
Severity: Major
Found in src/js-to-html.ts and 33 other locations - About 40 mins to fix
src/js-to-html.ts on lines 1041..1047
src/js-to-html.ts on lines 1054..1060
src/js-to-html.ts on lines 1092..1098
src/js-to-html.ts on lines 1117..1123
src/js-to-html.ts on lines 1154..1160
src/js-to-html.ts on lines 1167..1173
src/js-to-html.ts on lines 1174..1180
src/js-to-html.ts on lines 1195..1201
src/js-to-html.ts on lines 1242..1248
src/js-to-html.ts on lines 1249..1255
src/js-to-html.ts on lines 1256..1262
src/js-to-html.ts on lines 1263..1269
src/js-to-html.ts on lines 1270..1276
src/js-to-html.ts on lines 1277..1283
src/js-to-html.ts on lines 1317..1323
src/js-to-html.ts on lines 1342..1348
src/js-to-html.ts on lines 1420..1426
src/js-to-html.ts on lines 1447..1453
src/js-to-html.ts on lines 1454..1460
src/js-to-html.ts on lines 1461..1467
src/js-to-html.ts on lines 1480..1486
src/js-to-html.ts on lines 1487..1493
src/js-to-html.ts on lines 1494..1500
src/js-to-html.ts on lines 1501..1507
src/js-to-html.ts on lines 1539..1545
src/js-to-html.ts on lines 1558..1564
src/js-to-html.ts on lines 1565..1571
src/js-to-html.ts on lines 1578..1584
src/js-to-html.ts on lines 1591..1597
src/js-to-html.ts on lines 1626..1632
src/js-to-html.ts on lines 1675..1681
src/js-to-html.ts on lines 1700..1706
src/js-to-html.ts on lines 1814..1820

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language