codenautas/txt-to-sql

View on GitHub

Showing 405 of 405 total issues

Similar blocks of code found in 35 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 web/js-to-html.js and 34 other locations - About 40 mins to fix
web/js-to-html.js on lines 553..559
web/js-to-html.js on lines 566..572
web/js-to-html.js on lines 573..579
web/js-to-html.js on lines 604..610
web/js-to-html.js on lines 629..635
web/js-to-html.js on lines 666..672
web/js-to-html.js on lines 679..685
web/js-to-html.js on lines 686..692
web/js-to-html.js on lines 707..713
web/js-to-html.js on lines 754..760
web/js-to-html.js on lines 768..774
web/js-to-html.js on lines 775..781
web/js-to-html.js on lines 782..788
web/js-to-html.js on lines 789..795
web/js-to-html.js on lines 829..835
web/js-to-html.js on lines 854..860
web/js-to-html.js on lines 932..938
web/js-to-html.js on lines 959..965
web/js-to-html.js on lines 966..972
web/js-to-html.js on lines 973..979
web/js-to-html.js on lines 992..998
web/js-to-html.js on lines 999..1005
web/js-to-html.js on lines 1006..1012
web/js-to-html.js on lines 1013..1019
web/js-to-html.js on lines 1038..1044
web/js-to-html.js on lines 1051..1057
web/js-to-html.js on lines 1070..1076
web/js-to-html.js on lines 1077..1083
web/js-to-html.js on lines 1090..1096
web/js-to-html.js on lines 1103..1109
web/js-to-html.js on lines 1138..1144
web/js-to-html.js on lines 1187..1193
web/js-to-html.js on lines 1212..1218
web/js-to-html.js on lines 1326..1332

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 35 locations. Consider refactoring.
Open

    "inputmode": {
        "tags": {
            "input": {"description": "Hint for selecting an input modality","value": "\"verbatim\"; \"latin\"; \"latin-name\"; \"latin-prose\"; \"full-width-latin\"; \"kana\"; \"kana-name\"; \"katakana\"; \"numeric\"; \"tel\"; \"email\"; \"url\""},
            "textarea": {"description": "Hint for selecting an input modality","value": "\"verbatim\"; \"latin\"; \"latin-name\"; \"latin-prose\"; \"full-width-latin\"; \"kana\"; \"kana-name\"; \"katakana\"; \"numeric\"; \"tel\"; \"email\"; \"url\""}
        },
Severity: Major
Found in web/js-to-html.js and 34 other locations - About 40 mins to fix
web/js-to-html.js on lines 553..559
web/js-to-html.js on lines 566..572
web/js-to-html.js on lines 573..579
web/js-to-html.js on lines 604..610
web/js-to-html.js on lines 629..635
web/js-to-html.js on lines 666..672
web/js-to-html.js on lines 679..685
web/js-to-html.js on lines 686..692
web/js-to-html.js on lines 707..713
web/js-to-html.js on lines 754..760
web/js-to-html.js on lines 761..767
web/js-to-html.js on lines 768..774
web/js-to-html.js on lines 775..781
web/js-to-html.js on lines 782..788
web/js-to-html.js on lines 789..795
web/js-to-html.js on lines 829..835
web/js-to-html.js on lines 932..938
web/js-to-html.js on lines 959..965
web/js-to-html.js on lines 966..972
web/js-to-html.js on lines 973..979
web/js-to-html.js on lines 992..998
web/js-to-html.js on lines 999..1005
web/js-to-html.js on lines 1006..1012
web/js-to-html.js on lines 1013..1019
web/js-to-html.js on lines 1038..1044
web/js-to-html.js on lines 1051..1057
web/js-to-html.js on lines 1070..1076
web/js-to-html.js on lines 1077..1083
web/js-to-html.js on lines 1090..1096
web/js-to-html.js on lines 1103..1109
web/js-to-html.js on lines 1138..1144
web/js-to-html.js on lines 1187..1193
web/js-to-html.js on lines 1212..1218
web/js-to-html.js on lines 1326..1332

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 35 locations. Consider refactoring.
Open

    "placeholder": {
        "tags": {
            "input": {"description": "User-visible label to be placed within the form control","value": "Text*"},
            "textarea": {"description": "User-visible label to be placed within the form control","value": "Text*"}
        },
Severity: Major
Found in web/js-to-html.js and 34 other locations - About 40 mins to fix
web/js-to-html.js on lines 553..559
web/js-to-html.js on lines 566..572
web/js-to-html.js on lines 573..579
web/js-to-html.js on lines 604..610
web/js-to-html.js on lines 629..635
web/js-to-html.js on lines 666..672
web/js-to-html.js on lines 679..685
web/js-to-html.js on lines 686..692
web/js-to-html.js on lines 707..713
web/js-to-html.js on lines 754..760
web/js-to-html.js on lines 761..767
web/js-to-html.js on lines 768..774
web/js-to-html.js on lines 775..781
web/js-to-html.js on lines 782..788
web/js-to-html.js on lines 789..795
web/js-to-html.js on lines 829..835
web/js-to-html.js on lines 854..860
web/js-to-html.js on lines 932..938
web/js-to-html.js on lines 959..965
web/js-to-html.js on lines 966..972
web/js-to-html.js on lines 973..979
web/js-to-html.js on lines 992..998
web/js-to-html.js on lines 999..1005
web/js-to-html.js on lines 1006..1012
web/js-to-html.js on lines 1013..1019
web/js-to-html.js on lines 1038..1044
web/js-to-html.js on lines 1051..1057
web/js-to-html.js on lines 1070..1076
web/js-to-html.js on lines 1090..1096
web/js-to-html.js on lines 1103..1109
web/js-to-html.js on lines 1138..1144
web/js-to-html.js on lines 1187..1193
web/js-to-html.js on lines 1212..1218
web/js-to-html.js on lines 1326..1332

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 35 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 web/js-to-html.js and 34 other locations - About 40 mins to fix
web/js-to-html.js on lines 553..559
web/js-to-html.js on lines 566..572
web/js-to-html.js on lines 573..579
web/js-to-html.js on lines 604..610
web/js-to-html.js on lines 629..635
web/js-to-html.js on lines 666..672
web/js-to-html.js on lines 679..685
web/js-to-html.js on lines 686..692
web/js-to-html.js on lines 707..713
web/js-to-html.js on lines 754..760
web/js-to-html.js on lines 761..767
web/js-to-html.js on lines 768..774
web/js-to-html.js on lines 775..781
web/js-to-html.js on lines 782..788
web/js-to-html.js on lines 789..795
web/js-to-html.js on lines 829..835
web/js-to-html.js on lines 854..860
web/js-to-html.js on lines 932..938
web/js-to-html.js on lines 959..965
web/js-to-html.js on lines 966..972
web/js-to-html.js on lines 973..979
web/js-to-html.js on lines 992..998
web/js-to-html.js on lines 999..1005
web/js-to-html.js on lines 1006..1012
web/js-to-html.js on lines 1013..1019
web/js-to-html.js on lines 1038..1044
web/js-to-html.js on lines 1051..1057
web/js-to-html.js on lines 1070..1076
web/js-to-html.js on lines 1077..1083
web/js-to-html.js on lines 1090..1096
web/js-to-html.js on lines 1138..1144
web/js-to-html.js on lines 1187..1193
web/js-to-html.js on lines 1212..1218
web/js-to-html.js on lines 1326..1332

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 35 locations. Consider refactoring.
Open

    "headers": {
        "tags": {
            "td": {"description": "The header cells for this cell","value": "Unordered set of unique space-separated tokens, case-sensitive, consisting of IDs*"},
            "th": {"description": "The header cells for this cell","value": "Unordered set of unique space-separated tokens, case-sensitive, consisting of IDs*"}
        },
Severity: Major
Found in web/js-to-html.js and 34 other locations - About 40 mins to fix
web/js-to-html.js on lines 553..559
web/js-to-html.js on lines 566..572
web/js-to-html.js on lines 573..579
web/js-to-html.js on lines 604..610
web/js-to-html.js on lines 629..635
web/js-to-html.js on lines 666..672
web/js-to-html.js on lines 679..685
web/js-to-html.js on lines 686..692
web/js-to-html.js on lines 707..713
web/js-to-html.js on lines 754..760
web/js-to-html.js on lines 761..767
web/js-to-html.js on lines 768..774
web/js-to-html.js on lines 775..781
web/js-to-html.js on lines 782..788
web/js-to-html.js on lines 829..835
web/js-to-html.js on lines 854..860
web/js-to-html.js on lines 932..938
web/js-to-html.js on lines 959..965
web/js-to-html.js on lines 966..972
web/js-to-html.js on lines 973..979
web/js-to-html.js on lines 992..998
web/js-to-html.js on lines 999..1005
web/js-to-html.js on lines 1006..1012
web/js-to-html.js on lines 1013..1019
web/js-to-html.js on lines 1038..1044
web/js-to-html.js on lines 1051..1057
web/js-to-html.js on lines 1070..1076
web/js-to-html.js on lines 1077..1083
web/js-to-html.js on lines 1090..1096
web/js-to-html.js on lines 1103..1109
web/js-to-html.js on lines 1138..1144
web/js-to-html.js on lines 1187..1193
web/js-to-html.js on lines 1212..1218
web/js-to-html.js on lines 1326..1332

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 35 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 web/js-to-html.js and 34 other locations - About 40 mins to fix
web/js-to-html.js on lines 553..559
web/js-to-html.js on lines 566..572
web/js-to-html.js on lines 573..579
web/js-to-html.js on lines 604..610
web/js-to-html.js on lines 629..635
web/js-to-html.js on lines 666..672
web/js-to-html.js on lines 679..685
web/js-to-html.js on lines 686..692
web/js-to-html.js on lines 707..713
web/js-to-html.js on lines 754..760
web/js-to-html.js on lines 761..767
web/js-to-html.js on lines 768..774
web/js-to-html.js on lines 775..781
web/js-to-html.js on lines 782..788
web/js-to-html.js on lines 789..795
web/js-to-html.js on lines 829..835
web/js-to-html.js on lines 854..860
web/js-to-html.js on lines 932..938
web/js-to-html.js on lines 959..965
web/js-to-html.js on lines 966..972
web/js-to-html.js on lines 973..979
web/js-to-html.js on lines 992..998
web/js-to-html.js on lines 999..1005
web/js-to-html.js on lines 1013..1019
web/js-to-html.js on lines 1038..1044
web/js-to-html.js on lines 1051..1057
web/js-to-html.js on lines 1070..1076
web/js-to-html.js on lines 1077..1083
web/js-to-html.js on lines 1090..1096
web/js-to-html.js on lines 1103..1109
web/js-to-html.js on lines 1138..1144
web/js-to-html.js on lines 1187..1193
web/js-to-html.js on lines 1212..1218
web/js-to-html.js on lines 1326..1332

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 35 locations. Consider refactoring.
Open

    "nonce": {
        "tags": {
            "script": {"description": "Cryptographic nonce used in Content Security Policy checks [CSP]","value": "Text"},
            "style": {"description": "Cryptographic nonce used in Content Security Policy checks [CSP]","value": "Text"}
        },
Severity: Major
Found in web/js-to-html.js and 34 other locations - About 40 mins to fix
web/js-to-html.js on lines 553..559
web/js-to-html.js on lines 566..572
web/js-to-html.js on lines 573..579
web/js-to-html.js on lines 604..610
web/js-to-html.js on lines 629..635
web/js-to-html.js on lines 666..672
web/js-to-html.js on lines 679..685
web/js-to-html.js on lines 686..692
web/js-to-html.js on lines 707..713
web/js-to-html.js on lines 754..760
web/js-to-html.js on lines 761..767
web/js-to-html.js on lines 768..774
web/js-to-html.js on lines 775..781
web/js-to-html.js on lines 782..788
web/js-to-html.js on lines 789..795
web/js-to-html.js on lines 829..835
web/js-to-html.js on lines 854..860
web/js-to-html.js on lines 932..938
web/js-to-html.js on lines 959..965
web/js-to-html.js on lines 966..972
web/js-to-html.js on lines 973..979
web/js-to-html.js on lines 992..998
web/js-to-html.js on lines 999..1005
web/js-to-html.js on lines 1006..1012
web/js-to-html.js on lines 1013..1019
web/js-to-html.js on lines 1051..1057
web/js-to-html.js on lines 1070..1076
web/js-to-html.js on lines 1077..1083
web/js-to-html.js on lines 1090..1096
web/js-to-html.js on lines 1103..1109
web/js-to-html.js on lines 1138..1144
web/js-to-html.js on lines 1187..1193
web/js-to-html.js on lines 1212..1218
web/js-to-html.js on lines 1326..1332

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 35 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 web/js-to-html.js and 34 other locations - About 40 mins to fix
web/js-to-html.js on lines 553..559
web/js-to-html.js on lines 566..572
web/js-to-html.js on lines 573..579
web/js-to-html.js on lines 604..610
web/js-to-html.js on lines 629..635
web/js-to-html.js on lines 666..672
web/js-to-html.js on lines 679..685
web/js-to-html.js on lines 686..692
web/js-to-html.js on lines 707..713
web/js-to-html.js on lines 754..760
web/js-to-html.js on lines 761..767
web/js-to-html.js on lines 768..774
web/js-to-html.js on lines 775..781
web/js-to-html.js on lines 782..788
web/js-to-html.js on lines 789..795
web/js-to-html.js on lines 829..835
web/js-to-html.js on lines 854..860
web/js-to-html.js on lines 932..938
web/js-to-html.js on lines 959..965
web/js-to-html.js on lines 966..972
web/js-to-html.js on lines 973..979
web/js-to-html.js on lines 992..998
web/js-to-html.js on lines 999..1005
web/js-to-html.js on lines 1006..1012
web/js-to-html.js on lines 1013..1019
web/js-to-html.js on lines 1038..1044
web/js-to-html.js on lines 1051..1057
web/js-to-html.js on lines 1070..1076
web/js-to-html.js on lines 1077..1083
web/js-to-html.js on lines 1090..1096
web/js-to-html.js on lines 1103..1109
web/js-to-html.js on lines 1138..1144
web/js-to-html.js on lines 1187..1193
web/js-to-html.js on lines 1326..1332

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

function Utf7IMAPDecoder(options, codec) {
    this.iconv = codec.iconv;
    this.inBase64 = false;
    this.base64Accum = '';
}
Severity: Minor
Found in web/iconv-lite.js and 1 other location - About 40 mins to fix
web/iconv-lite.js on lines 4953..4957

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

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

txtToSql.capitalize = function capitalize(str) {
    return str.charAt(0).toUpperCase()+str.slice(1);
};
Severity: Minor
Found in web/txt-to-sql.js and 1 other location - About 40 mins to fix
lib/txt-to-sql.js on lines 834..836

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

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

txtToSql.capitalize = function capitalize(str) {
    return str.charAt(0).toUpperCase()+str.slice(1);
};
Severity: Minor
Found in lib/txt-to-sql.js and 1 other location - About 40 mins to fix
web/txt-to-sql.js on lines 834..836

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

function Utf7Decoder(options, codec) {
    this.iconv = codec.iconv;
    this.inBase64 = false;
    this.base64Accum = '';
}
Severity: Minor
Found in web/iconv-lite.js and 1 other location - About 40 mins to fix
web/iconv-lite.js on lines 5129..5133

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(original===null ||
        !bestGlobals.isPlainObject(original) &&
            !(original instanceof Error) &&
            (!opts.mostlyPlain || typeof original != "object" || !bestGlobals.isPlainObject(changes))
         // && !bestGlobals.changing
Severity: Major
Found in web/best-globals.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

        if(match){
            var integerParts={};
            integerParts.year    = parseInt(match[2],10)
            integerParts.month   = parseInt(match[4],10)
            integerParts.day     = parseInt(match[7],10)
    Severity: Major
    Found in web/best-globals.js - About 40 mins to fix

      Function compare has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
      Severity: Minor
      Found in web/iconv-lite.js - About 35 mins to fix

        Function read has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        exports.read = function (buffer, offset, isLE, mLen, nBytes) {
        Severity: Minor
        Found in web/buffer.js - About 35 mins to fix

          Function writeFloat has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function writeFloat (buf, value, offset, littleEndian, noAssert) {
          Severity: Minor
          Found in web/buffer.js - About 35 mins to fix

            Function writeDouble has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function writeDouble (buf, value, offset, littleEndian, noAssert) {
            Severity: Minor
            Found in web/buffer.js - About 35 mins to fix

              Function moduleName has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                          var moduleName=name.replace(/^(\.\/)?(.*\/)*([^./]+)(\.js)?$/, function(match, fromThisPath, path, moduleName, extJs){
              Severity: Minor
              Found in web/require-bro.js - About 35 mins to fix

                Function arrayIndexOf has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
                Severity: Minor
                Found in web/iconv-lite.js - About 35 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language