codenautas/js-to-html

View on GitHub

Showing 180 of 180 total issues

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

    "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

    "dirname": {
        "tags": {
            "input": {"description": "Name of form field to use for sending the element's directionality in form submission","value": "Text*"},
            "textarea": {"description": "Name of form field to use for sending the element's directionality in form submission","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 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

    "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

    "readonly": {
        "tags": {
            "input": {"description": "Whether to allow the value to be edited by the user","value": "Boolean attribute"},
            "textarea": {"description": "Whether to allow the value to be edited by the user","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 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 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

    "loop": {
        "tags": {
            "audio": {"description": "Whether to loop the media resource","value": "Boolean attribute"},
            "video": {"description": "Whether to loop the media resource","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 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

    "media": {
        "tags": {
            "link": {"description": "Applicable media","value": "Valid media query list"},
            "style": {"description": "Applicable media","value": "Valid media query list"}
        },
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 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

    "controls": {
        "tags": {
            "audio": {"description": "Show user agent controls","value": "Boolean attribute"},
            "video": {"description": "Show user agent controls","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 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

    "minlength": {
        "tags": {
            "input": {"description": "Minimum length of value","value": "Valid non-negative integer"},
            "textarea": {"description": "Minimum length of value","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 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

    "formenctype": {
        "tags": {
            "button": {"description": "Form data set encoding type to use for form submission","value": "\"application/x-www-form-urlencoded\"; \"multipart/form-data\"; \"text/plain\""},
            "input": {"description": "Form data set encoding type to use for form submission","value": "\"application/x-www-form-urlencoded\"; \"multipart/form-data\"; \"text/plain\""}
        },
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 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

    "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

    "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

    "charset": {
        "tags": {
            "meta": {"description": "Character encoding declaration","value": "Encoding label*"},
            "script": {"description": "Character encoding of the external script resource","value": "Encoding label*"}
        },
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 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

    "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

Consider simplifying this complex logical expression.
Open

        if(!domElement || !(
            domElement instanceof Text && htmlElement instanceof HtmlTextNode ||
            'tagName' in domElement && 'tagName' in htmlElement && domElement.tagName.toLowerCase() == htmlElement.tagName 
        ) ){
            var newElement;
Severity: Major
Found in src/js-to-html.ts - About 40 mins to fix

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

        abbr(optsOrContent?:Attr4HTMLElement|Content, content?:Content){ return indirect("abbr", optsOrContent, content) as HtmlTag<HTMLElement>; },
    Severity: Major
    Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
    src/js-to-html.ts on lines 134..134
    src/js-to-html.ts on lines 136..136
    src/js-to-html.ts on lines 137..137
    src/js-to-html.ts on lines 138..138
    src/js-to-html.ts on lines 139..139
    src/js-to-html.ts on lines 141..141
    src/js-to-html.ts on lines 142..142
    src/js-to-html.ts on lines 143..143
    src/js-to-html.ts on lines 144..144
    src/js-to-html.ts on lines 146..146
    src/js-to-html.ts on lines 147..147
    src/js-to-html.ts on lines 148..148
    src/js-to-html.ts on lines 149..149
    src/js-to-html.ts on lines 150..150
    src/js-to-html.ts on lines 152..152
    src/js-to-html.ts on lines 153..153
    src/js-to-html.ts on lines 154..154
    src/js-to-html.ts on lines 155..155
    src/js-to-html.ts on lines 156..156
    src/js-to-html.ts on lines 157..157
    src/js-to-html.ts on lines 158..158
    src/js-to-html.ts on lines 159..159
    src/js-to-html.ts on lines 160..160
    src/js-to-html.ts on lines 161..161
    src/js-to-html.ts on lines 162..162
    src/js-to-html.ts on lines 163..163
    src/js-to-html.ts on lines 165..165
    src/js-to-html.ts on lines 166..166
    src/js-to-html.ts on lines 167..167
    src/js-to-html.ts on lines 168..168
    src/js-to-html.ts on lines 169..169
    src/js-to-html.ts on lines 170..170
    src/js-to-html.ts on lines 171..171
    src/js-to-html.ts on lines 172..172
    src/js-to-html.ts on lines 173..173
    src/js-to-html.ts on lines 174..174
    src/js-to-html.ts on lines 175..175
    src/js-to-html.ts on lines 176..176
    src/js-to-html.ts on lines 177..177
    src/js-to-html.ts on lines 178..178
    src/js-to-html.ts on lines 180..180
    src/js-to-html.ts on lines 181..181
    src/js-to-html.ts on lines 185..185
    src/js-to-html.ts on lines 186..186
    src/js-to-html.ts on lines 187..187
    src/js-to-html.ts on lines 188..188
    src/js-to-html.ts on lines 189..189
    src/js-to-html.ts on lines 191..191
    src/js-to-html.ts on lines 192..192
    src/js-to-html.ts on lines 193..193
    src/js-to-html.ts on lines 194..194
    src/js-to-html.ts on lines 195..195
    src/js-to-html.ts on lines 197..197
    src/js-to-html.ts on lines 198..198
    src/js-to-html.ts on lines 199..199
    src/js-to-html.ts on lines 200..200
    src/js-to-html.ts on lines 201..201
    src/js-to-html.ts on lines 202..202
    src/js-to-html.ts on lines 203..203
    src/js-to-html.ts on lines 204..204
    src/js-to-html.ts on lines 205..205
    src/js-to-html.ts on lines 207..207
    src/js-to-html.ts on lines 208..208
    src/js-to-html.ts on lines 209..209
    src/js-to-html.ts on lines 210..210
    src/js-to-html.ts on lines 211..211
    src/js-to-html.ts on lines 212..212
    src/js-to-html.ts on lines 213..213
    src/js-to-html.ts on lines 214..214
    src/js-to-html.ts on lines 215..215
    src/js-to-html.ts on lines 217..217
    src/js-to-html.ts on lines 218..218
    src/js-to-html.ts on lines 219..219
    src/js-to-html.ts on lines 220..220
    src/js-to-html.ts on lines 222..222
    src/js-to-html.ts on lines 223..223
    src/js-to-html.ts on lines 224..224
    src/js-to-html.ts on lines 225..225
    src/js-to-html.ts on lines 226..226
    src/js-to-html.ts on lines 227..227
    src/js-to-html.ts on lines 228..228
    src/js-to-html.ts on lines 229..229
    src/js-to-html.ts on lines 230..230
    src/js-to-html.ts on lines 231..231
    src/js-to-html.ts on lines 233..233
    src/js-to-html.ts on lines 234..234
    src/js-to-html.ts on lines 235..235
    src/js-to-html.ts on lines 236..236
    src/js-to-html.ts on lines 237..237
    src/js-to-html.ts on lines 238..238
    src/js-to-html.ts on lines 239..239
    src/js-to-html.ts on lines 241..241
    src/js-to-html.ts on lines 242..242
    src/js-to-html.ts on lines 243..243
    src/js-to-html.ts on lines 244..244

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 48.

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

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

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

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

    Refactorings

    Further Reading

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

        html(optsOrContent?:Attr4HTMLHtmlElement|Content, content?:Content){ return indirect("html", optsOrContent, content) as HtmlTag<HTMLHtmlElement>; },
    Severity: Major
    Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
    src/js-to-html.ts on lines 133..133
    src/js-to-html.ts on lines 134..134
    src/js-to-html.ts on lines 136..136
    src/js-to-html.ts on lines 137..137
    src/js-to-html.ts on lines 138..138
    src/js-to-html.ts on lines 139..139
    src/js-to-html.ts on lines 141..141
    src/js-to-html.ts on lines 142..142
    src/js-to-html.ts on lines 143..143
    src/js-to-html.ts on lines 144..144
    src/js-to-html.ts on lines 146..146
    src/js-to-html.ts on lines 147..147
    src/js-to-html.ts on lines 148..148
    src/js-to-html.ts on lines 149..149
    src/js-to-html.ts on lines 150..150
    src/js-to-html.ts on lines 152..152
    src/js-to-html.ts on lines 153..153
    src/js-to-html.ts on lines 154..154
    src/js-to-html.ts on lines 155..155
    src/js-to-html.ts on lines 156..156
    src/js-to-html.ts on lines 157..157
    src/js-to-html.ts on lines 158..158
    src/js-to-html.ts on lines 159..159
    src/js-to-html.ts on lines 160..160
    src/js-to-html.ts on lines 161..161
    src/js-to-html.ts on lines 162..162
    src/js-to-html.ts on lines 163..163
    src/js-to-html.ts on lines 165..165
    src/js-to-html.ts on lines 166..166
    src/js-to-html.ts on lines 167..167
    src/js-to-html.ts on lines 168..168
    src/js-to-html.ts on lines 169..169
    src/js-to-html.ts on lines 170..170
    src/js-to-html.ts on lines 171..171
    src/js-to-html.ts on lines 172..172
    src/js-to-html.ts on lines 173..173
    src/js-to-html.ts on lines 174..174
    src/js-to-html.ts on lines 175..175
    src/js-to-html.ts on lines 176..176
    src/js-to-html.ts on lines 177..177
    src/js-to-html.ts on lines 178..178
    src/js-to-html.ts on lines 181..181
    src/js-to-html.ts on lines 185..185
    src/js-to-html.ts on lines 186..186
    src/js-to-html.ts on lines 187..187
    src/js-to-html.ts on lines 188..188
    src/js-to-html.ts on lines 189..189
    src/js-to-html.ts on lines 191..191
    src/js-to-html.ts on lines 192..192
    src/js-to-html.ts on lines 193..193
    src/js-to-html.ts on lines 194..194
    src/js-to-html.ts on lines 195..195
    src/js-to-html.ts on lines 197..197
    src/js-to-html.ts on lines 198..198
    src/js-to-html.ts on lines 199..199
    src/js-to-html.ts on lines 200..200
    src/js-to-html.ts on lines 201..201
    src/js-to-html.ts on lines 202..202
    src/js-to-html.ts on lines 203..203
    src/js-to-html.ts on lines 204..204
    src/js-to-html.ts on lines 205..205
    src/js-to-html.ts on lines 207..207
    src/js-to-html.ts on lines 208..208
    src/js-to-html.ts on lines 209..209
    src/js-to-html.ts on lines 210..210
    src/js-to-html.ts on lines 211..211
    src/js-to-html.ts on lines 212..212
    src/js-to-html.ts on lines 213..213
    src/js-to-html.ts on lines 214..214
    src/js-to-html.ts on lines 215..215
    src/js-to-html.ts on lines 217..217
    src/js-to-html.ts on lines 218..218
    src/js-to-html.ts on lines 219..219
    src/js-to-html.ts on lines 220..220
    src/js-to-html.ts on lines 222..222
    src/js-to-html.ts on lines 223..223
    src/js-to-html.ts on lines 224..224
    src/js-to-html.ts on lines 225..225
    src/js-to-html.ts on lines 226..226
    src/js-to-html.ts on lines 227..227
    src/js-to-html.ts on lines 228..228
    src/js-to-html.ts on lines 229..229
    src/js-to-html.ts on lines 230..230
    src/js-to-html.ts on lines 231..231
    src/js-to-html.ts on lines 233..233
    src/js-to-html.ts on lines 234..234
    src/js-to-html.ts on lines 235..235
    src/js-to-html.ts on lines 236..236
    src/js-to-html.ts on lines 237..237
    src/js-to-html.ts on lines 238..238
    src/js-to-html.ts on lines 239..239
    src/js-to-html.ts on lines 241..241
    src/js-to-html.ts on lines 242..242
    src/js-to-html.ts on lines 243..243
    src/js-to-html.ts on lines 244..244

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 48.

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

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

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

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

    Refactorings

    Further Reading

    Severity
    Category
    Status
    Source
    Language