codenautas/js-to-html

View on GitHub

Showing 162 of 180 total issues

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

    "alt": {
        "tags": {
            "area": {"description": "Replacement text for use when images are not available","value": "Text*"},
            "img": {"description": "Replacement text for use when images are not available","value": "Text*"},
            "input": {"description": "Replacement text for use when images are not available","value": "Text*"}
Severity: Major
Found in src/js-to-html.ts and 4 other locations - About 1 hr to fix
src/js-to-html.ts on lines 1146..1153
src/js-to-html.ts on lines 1439..1446
src/js-to-html.ts on lines 1598..1605
src/js-to-html.ts on lines 1606..1613

Duplicated Code

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

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

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

Tuning

This issue has a mass of 65.

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

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

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

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

Refactorings

Further Reading

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

    "rel": {
        "tags": {
            "a": {"description": "Relationship between the document containing the hyperlink and the destination resource","value": "Set of space-separated tokens*"},
            "area": {"description": "Relationship between the document containing the hyperlink and the destination resource","value": "Set of space-separated tokens*"},
            "link": {"description": "Relationship between the document containing the hyperlink and the destination resource","value": "Set of space-separated tokens*"}
Severity: Major
Found in src/js-to-html.ts and 4 other locations - About 1 hr to fix
src/js-to-html.ts on lines 1008..1015
src/js-to-html.ts on lines 1146..1153
src/js-to-html.ts on lines 1439..1446
src/js-to-html.ts on lines 1606..1613

Duplicated Code

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

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

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

Tuning

This issue has a mass of 65.

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

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

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

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

Refactorings

Further Reading

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

    "max": {
        "tags": {
            "input": {"description": "Maximum value","value": "Varies*"},
            "meter": {"description": "Upper bound of range","value": "Valid floating-point number*"},
            "progress": {"description": "Upper bound of range","value": "Valid floating-point number*"}
Severity: Major
Found in src/js-to-html.ts and 4 other locations - About 1 hr to fix
src/js-to-html.ts on lines 1008..1015
src/js-to-html.ts on lines 1146..1153
src/js-to-html.ts on lines 1598..1605
src/js-to-html.ts on lines 1606..1613

Duplicated Code

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

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

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

Tuning

This issue has a mass of 65.

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

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

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

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

Refactorings

Further Reading

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

    "required": {
        "tags": {
            "input": {"description": "Whether the control is required for form submission","value": "Boolean attribute"},
            "select": {"description": "Whether the control is required for form submission","value": "Boolean attribute"},
            "textarea": {"description": "Whether the control is required for form submission","value": "Boolean attribute"}
Severity: Major
Found in src/js-to-html.ts and 4 other locations - About 1 hr to fix
src/js-to-html.ts on lines 1008..1015
src/js-to-html.ts on lines 1146..1153
src/js-to-html.ts on lines 1439..1446
src/js-to-html.ts on lines 1598..1605

Duplicated Code

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

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

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

Tuning

This issue has a mass of 65.

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

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

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

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

Refactorings

Further Reading

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

    "datetime": {
        "tags": {
            "del": {"description": "Date and (optionally) time of the change","value": "Valid date string with optional time"},
            "ins": {"description": "Date and (optionally) time of the change","value": "Valid date string with optional time"},
            "time": {"description": "Machine-readable value","value": "Valid month string, valid date string, valid yearless date string, valid time string, valid local date and time string, valid time-zone offset string, valid global date and time string, valid week string, valid non-negative integer, or valid duration string"}
Severity: Major
Found in src/js-to-html.ts and 4 other locations - About 1 hr to fix
src/js-to-html.ts on lines 1008..1015
src/js-to-html.ts on lines 1439..1446
src/js-to-html.ts on lines 1598..1605
src/js-to-html.ts on lines 1606..1613

Duplicated Code

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

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

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

Tuning

This issue has a mass of 65.

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

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

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

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

Refactorings

Further Reading

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

export interface Attr4HTMLMeterElement extends Attr4HTMLElement {value?:any,min?:any,max?:any,low?:any,high?:any,optimum?:any,}
Severity: Major
Found in src/js-to-html.ts and 1 other location - About 1 hr to fix
src/js-to-html.ts on lines 87..87

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

export interface Attr4HTMLScriptElement extends Attr4HTMLElement {src?:any,type?:any,async?:any,defer?:any,crossorigin?:any,integrity?:any,}
Severity: Major
Found in src/js-to-html.ts and 1 other location - About 1 hr to fix
src/js-to-html.ts on lines 76..76

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

    "default": {
        "tags": {
            "menuitem": {"description": "Mark the command as being a default command","value": "Boolean attribute"},
            "track": {"description": "Enable the track if no other text track is more suitable","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 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

    "download": {
        "tags": {
            "a": {"description": "Whether to download the resource instead of navigating to it, and its file name if so","value": "Text"},
            "area": {"description": "Whether to download the resource instead of navigating to it, and its file name if so","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 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

    "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

    "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

    "usemap": {
        "tags": {
            "img": {"description": "Name of image map to use","value": "Valid hash-name reference*"},
            "object": {"description": "Name of image map to use","value": "Valid hash-name reference*"}
        },
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 1700..1706

Duplicated Code

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

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

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

    "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

    "hreflang": {
        "tags": {
            "a": {"description": "Language of the linked resource","value": "Valid BCP 47 language tag"},
            "link": {"description": "Language of the linked resource","value": "Valid BCP 47 language tag"}
        },
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 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

    "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

    "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

    "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

    "formmethod": {
        "tags": {
            "button": {"description": "HTTP method to use for form submission","value": "\"GET\"; \"POST\""},
            "input": {"description": "HTTP method to use for form submission","value": "\"GET\"; \"POST\""}
        },
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 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

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

Severity
Category
Status
Source
Language