mangroveorg/datawinners

View on GitHub
datawinners/media/javascript/home/country_networks_fr.js

Summary

Maintainability
F
5 days
Test Coverage

File country_networks_fr.js has 1191 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var country = new Array();
country["Abkhazie"] = new Array("Aquafon");
country["Afghanistan"] = new Array("Areeba (MTN Afghanistan)",
    "AWCC (Afghan Wireless Communication Company)",
    "Etisalat Afghanistan",
Severity: Major
Found in datawinners/media/javascript/home/country_networks_fr.js - About 3 days to fix

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

    country["Inde"] = new Array("Aircel (Dishnet Wireless Ltd) / Andhra Pradesh",
        "Aircel (Dishnet Wireless Ltd) / Assam",
        "Aircel (Dishnet Wireless Ltd) / Bihar and Jharkhand",
        "Aircel (Dishnet Wireless Ltd) / Chennai",
        "Aircel (Dishnet Wireless Ltd) / Delhi",
    Severity: Major
    Found in datawinners/media/javascript/home/country_networks_fr.js and 1 other location - About 1 day to fix
    datawinners/media/javascript/home/country_networks_en.js on lines 415..611

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

    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

    country["Brésil"] = new Array("aeiou (Unicel do Brasil) / SP Sao Paulo",
        "Claro (Americel S.A.) / AC Rio Branco",
        "Claro (Americel S.A.) / DF Brasilia",
        "Claro (Americel S.A.) / GO Goiania",
        "Claro (Americel S.A.) / MS Campo Grande",
    Severity: Major
    Found in datawinners/media/javascript/home/country_networks_fr.js and 1 other location - About 5 hrs to fix
    datawinners/media/javascript/home/country_networks_en.js on lines 79..216

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

    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

    country["Suède"] = new Array("3 (Hi3G Access AB)",
       "42 Telecom AB",
       "ACN Communications",
       "Animatele Inc.",
       "Beepsend AB",
    Severity: Major
    Found in datawinners/media/javascript/home/country_networks_fr.js and 1 other location - About 1 hr to fix
    datawinners/media/javascript/home/country_networks_en.js on lines 970..1029

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

    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

    country["États-Unis"] = new Array("Advantage Cellular Systems",
       "Airadigm Communications",
       "Alltel (CDMA)",
       "ASTAC (Arctic Slope Cellular)",
       "AT&T Mobility (fka Cingular Wireless)",
    Severity: Major
    Found in datawinners/media/javascript/home/country_networks_fr.js and 1 other location - About 1 hr to fix
    datawinners/media/javascript/home/country_networks_en.js on lines 1108..1161

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

    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

    country["Fédération de Russie"] = new Array("AKOS (Rostelecom)",
        "Altaysvyaz (ETK)",
        "Arkhangelsk Mobile Network (Tele2)",
        "Astrakhan GSM-900 (SMARTS)",
        "Baykalwestcom",
    Severity: Major
    Found in datawinners/media/javascript/home/country_networks_fr.js and 1 other location - About 1 hr to fix
    datawinners/media/javascript/home/country_networks_en.js on lines 846..893

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

    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

    There are no issues that match your filters.

    Category
    Status