failmap/admin

View on GitHub

Showing 141 of 577 total issues

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

    assert data["results"]["calculated_results"]["mail_legacy_mail_non_sending_domain"]["status"] == "info"
Severity: Major
Found in websecmap/scanners/tests/test_internet_nl_v2.py and 6 other locations - About 35 mins to fix
websecmap/scanners/tests/test_internet_nl_v2.py on lines 919..919
websecmap/scanners/tests/test_internet_nl_v2.py on lines 934..934
websecmap/scanners/tests/test_internet_nl_v2.py on lines 940..940
websecmap/scanners/tests/test_internet_nl_v2.py on lines 942..942
websecmap/scanners/tests/test_internet_nl_v2.py on lines 943..943
websecmap/scanners/tests/test_internet_nl_v2.py on lines 952..952

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 33.

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

    {
        "name": "dns_clean_wildcards",
        "verbose name": "Clean Wildcard addresses.",
        "description": "Remove domains that have the same content as the wildcard.",
        "can discover endpoints": False,
Severity: Major
Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
websecmap/scanners/__init__.py on lines 263..277
websecmap/scanners/__init__.py on lines 295..309
websecmap/scanners/__init__.py on lines 530..544
websecmap/scanners/__init__.py on lines 546..560
websecmap/scanners/__init__.py on lines 562..576
websecmap/scanners/__init__.py on lines 578..592

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 33.

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

    {
        "name": "autoexplain_no_https_microsoft",
        "verbose name": "Allows certain microsoft services that don't require https to result in a high risk issue.",
        "description": "",
        "can discover endpoints": False,
Severity: Major
Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
websecmap/scanners/__init__.py on lines 263..277
websecmap/scanners/__init__.py on lines 279..293
websecmap/scanners/__init__.py on lines 295..309
websecmap/scanners/__init__.py on lines 530..544
websecmap/scanners/__init__.py on lines 546..560
websecmap/scanners/__init__.py on lines 562..576

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 33.

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

    assert data["results"]["calculated_results"]["mail_legacy_mail_sending_domain"]["status"] == "failed"
Severity: Major
Found in websecmap/scanners/tests/test_internet_nl_v2.py and 6 other locations - About 35 mins to fix
websecmap/scanners/tests/test_internet_nl_v2.py on lines 919..919
websecmap/scanners/tests/test_internet_nl_v2.py on lines 934..934
websecmap/scanners/tests/test_internet_nl_v2.py on lines 939..939
websecmap/scanners/tests/test_internet_nl_v2.py on lines 942..942
websecmap/scanners/tests/test_internet_nl_v2.py on lines 943..943
websecmap/scanners/tests/test_internet_nl_v2.py on lines 952..952

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 33.

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

    assert data["results"]["calculated_results"]["mail_legacy_dkim"]["status"] == "passed"
Severity: Major
Found in websecmap/scanners/tests/test_internet_nl_v2.py and 6 other locations - About 35 mins to fix
websecmap/scanners/tests/test_internet_nl_v2.py on lines 934..934
websecmap/scanners/tests/test_internet_nl_v2.py on lines 939..939
websecmap/scanners/tests/test_internet_nl_v2.py on lines 940..940
websecmap/scanners/tests/test_internet_nl_v2.py on lines 942..942
websecmap/scanners/tests/test_internet_nl_v2.py on lines 943..943
websecmap/scanners/tests/test_internet_nl_v2.py on lines 952..952

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 33.

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

    assert data["results"]["calculated_results"]["mail_legacy_mail_non_sending_domain"]["status"] == "not_applicable"
Severity: Major
Found in websecmap/scanners/tests/test_internet_nl_v2.py and 6 other locations - About 35 mins to fix
websecmap/scanners/tests/test_internet_nl_v2.py on lines 919..919
websecmap/scanners/tests/test_internet_nl_v2.py on lines 934..934
websecmap/scanners/tests/test_internet_nl_v2.py on lines 939..939
websecmap/scanners/tests/test_internet_nl_v2.py on lines 940..940
websecmap/scanners/tests/test_internet_nl_v2.py on lines 943..943
websecmap/scanners/tests/test_internet_nl_v2.py on lines 952..952

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 33.

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

    assert len(fifth_report.calculation["endpoints"][0]["ratings"]) == 1
Severity: Minor
Found in websecmap/reporting/tests/test_create_url_report.py and 1 other location - About 35 mins to fix
websecmap/reporting/tests/test_create_url_report.py on lines 148..148

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 33.

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

    user = User.objects.create_user(
        username="game_user_%s" % game_user_number,
Severity: Minor
Found in websecmap/app/admin.py and 1 other location - About 35 mins to fix
websecmap/app/admin.py on lines 588..589

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 33.

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

                "tests": {
                    "web_ipv6_ns_address": {
                        "status": "passed",
                        "verdict": "good",
                        "technical_details": [
Severity: Minor
Found in websecmap/scanners/tests/test_internet_nl_v2.py and 1 other location - About 35 mins to fix
websecmap/scanners/tests/test_internet_nl_v2.py on lines 252..434

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 33.

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

    assert len(fourth_report.calculation["endpoints"][0]["ratings"]) == 1
Severity: Minor
Found in websecmap/reporting/tests/test_create_url_report.py and 1 other location - About 35 mins to fix
websecmap/reporting/tests/test_create_url_report.py on lines 242..242

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 33.

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

    {
        "name": "autoexplain_microsoft_neighboring_services",
        "verbose name": "Explains new neighboring services of endpoints already explained by trust microsoft.",
        "description": "",
        "can discover endpoints": False,
Severity: Major
Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
websecmap/scanners/__init__.py on lines 263..277
websecmap/scanners/__init__.py on lines 279..293
websecmap/scanners/__init__.py on lines 295..309
websecmap/scanners/__init__.py on lines 530..544
websecmap/scanners/__init__.py on lines 546..560
websecmap/scanners/__init__.py on lines 578..592

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 33.

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

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

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

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

Refactorings

Further Reading

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

                "low": old_measurement[scan_type].get("low", 0) - new_measurement[scan_type].get("low", 0),
Severity: Minor
Found in websecmap/map/logic/improvements.py and 2 other locations - About 35 mins to fix
websecmap/map/logic/improvements.py on lines 166..166
websecmap/map/logic/improvements.py on lines 167..167

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 33.

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

    assert data["results"]["calculated_results"]["mail_legacy_mail_sending_domain"]["status"] == "passed"
Severity: Major
Found in websecmap/scanners/tests/test_internet_nl_v2.py and 6 other locations - About 35 mins to fix
websecmap/scanners/tests/test_internet_nl_v2.py on lines 919..919
websecmap/scanners/tests/test_internet_nl_v2.py on lines 934..934
websecmap/scanners/tests/test_internet_nl_v2.py on lines 939..939
websecmap/scanners/tests/test_internet_nl_v2.py on lines 940..940
websecmap/scanners/tests/test_internet_nl_v2.py on lines 942..942
websecmap/scanners/tests/test_internet_nl_v2.py on lines 952..952

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 33.

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

    {
        "name": "autoexplain_dutch_untrusted_cert",
        "verbose name": "Explains specific TLS certificates that are not trusted by default.",
        "description": "",
        "can discover endpoints": False,
Severity: Major
Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
websecmap/scanners/__init__.py on lines 263..277
websecmap/scanners/__init__.py on lines 279..293
websecmap/scanners/__init__.py on lines 295..309
websecmap/scanners/__init__.py on lines 546..560
websecmap/scanners/__init__.py on lines 562..576
websecmap/scanners/__init__.py on lines 578..592

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 33.

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

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

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

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

Refactorings

Further Reading

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

                "medium": old_measurement[scan_type].get("medium", 0) - new_measurement[scan_type].get("medium", 0),
Severity: Minor
Found in websecmap/map/logic/improvements.py and 2 other locations - About 35 mins to fix
websecmap/map/logic/improvements.py on lines 166..166
websecmap/map/logic/improvements.py on lines 168..168

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 33.

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

    assert data["results"]["calculated_results"]["web_legacy_tls_available"]["status"] == "error"
Severity: Major
Found in websecmap/scanners/tests/test_internet_nl_v2.py and 6 other locations - About 35 mins to fix
websecmap/scanners/tests/test_internet_nl_v2.py on lines 919..919
websecmap/scanners/tests/test_internet_nl_v2.py on lines 934..934
websecmap/scanners/tests/test_internet_nl_v2.py on lines 939..939
websecmap/scanners/tests/test_internet_nl_v2.py on lines 940..940
websecmap/scanners/tests/test_internet_nl_v2.py on lines 942..942
websecmap/scanners/tests/test_internet_nl_v2.py on lines 943..943

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 33.

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

    {
        "name": "dns_known_subdomains",
        "verbose name": "Subdomain discovery using known subdomains",
        "description": "Attempts to contact the list of known subdomains on other domains. ",
        "can discover endpoints": False,
Severity: Major
Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
websecmap/scanners/__init__.py on lines 279..293
websecmap/scanners/__init__.py on lines 295..309
websecmap/scanners/__init__.py on lines 530..544
websecmap/scanners/__init__.py on lines 546..560
websecmap/scanners/__init__.py on lines 562..576
websecmap/scanners/__init__.py on lines 578..592

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 33.

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

                "tests": {
                    "web_ipv6_ns_address": {
                        "status": "passed",
                        "verdict": "good",
                        "technical_details": [
Severity: Minor
Found in websecmap/scanners/tests/test_internet_nl_v2.py and 1 other location - About 35 mins to fix
websecmap/scanners/tests/test_internet_nl_v2.py on lines 136..232

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 33.

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

        user = User.objects.create_user(
            username="Volunteer%s" % volunteer_number,
Severity: Minor
Found in websecmap/app/admin.py and 1 other location - About 35 mins to fix
websecmap/app/admin.py on lines 530..531

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 33.

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

        scans = list(
            EndpointGenericScan.objects.all().filter(
                endpoint__url__urlsubmission__added_by_team=team.id,
                endpoint__url__urlsubmission__has_been_accepted=True,
                rating_determined_on__lte=contest.until_moment,
Severity: Minor
Found in websecmap/game/views.py and 1 other location - About 30 mins to fix
websecmap/game/views.py on lines 194..198

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 32.

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