librenms/librenms

View on GitHub
lang/fr/settings.php

Summary

Maintainability
F
1 wk
Test Coverage

File settings.php has 1149 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return [
    'readonly' => 'Dejà configuré dans config.php, le supprimer avant de pouvoir l\'éditer ici',
    'groups' => [
Severity: Major
Found in lang/fr/settings.php - About 2 days to fix

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

            'poller_modules' => [
                'unix-agent' => [
                    'description' => 'Unix Agent',
                ],
                'os' => [
    Severity: Major
    Found in lang/fr/settings.php and 2 other locations - About 2 days to fix
    lang/it/settings.php on lines 1032..1171
    lang/uk/settings.php on lines 1023..1162

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

    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

            'discovery_modules' => [
                'arp-table' => [
                    'description' => 'Table ARP',
                ],
                'applications' => [
    Severity: Major
    Found in lang/fr/settings.php and 2 other locations - About 2 days to fix
    lang/it/settings.php on lines 464..592
    lang/uk/settings.php on lines 455..583

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

    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

            'webui' => [
                'availability_map_box_size' => [
                    'description' => 'Largeur',
                    'help' => 'Input desired tile width in pixels for box size in full view',
                ],
    Severity: Major
    Found in lang/fr/settings.php and 4 other locations - About 4 hrs to fix
    lang/de/settings.php on lines 740..785
    lang/uk/settings.php on lines 1485..1530
    lang/zh-CN/settings.php on lines 755..800
    lang/zh-TW/settings.php on lines 931..976

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

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

            'snmp' => [
                'transports' => [
                    'description' => 'Transport (priorité)',
                    'help' => 'Activer et ordonner les transports à utiliser.',
                ],
    Severity: Major
    Found in lang/fr/settings.php and 3 other locations - About 4 hrs to fix
    lang/de/settings.php on lines 645..685
    lang/zh-CN/settings.php on lines 660..700
    lang/zh-TW/settings.php on lines 814..854

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

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

            'graylog' => [
                'base_uri' => [
                    'description' => 'URI Base',
                    'help' => 'Remplace l\'URI de base pour la configuration Graylog.',
                ],
    Severity: Major
    Found in lang/fr/settings.php and 5 other locations - About 3 hrs to fix
    lang/de/settings.php on lines 440..479
    lang/it/settings.php on lines 750..789
    lang/uk/settings.php on lines 741..780
    lang/zh-CN/settings.php on lines 441..480
    lang/zh-TW/settings.php on lines 526..565

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

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

            'alert_rule' => [
                'severity' => [
                    'description' => 'Sévérité',
                    'help' => 'Séverité par défault de l\'alerte',
                ],
    Severity: Major
    Found in lang/fr/settings.php and 3 other locations - About 2 hrs to fix
    lang/it/settings.php on lines 97..130
    lang/uk/settings.php on lines 97..130
    lang/zh-TW/settings.php on lines 89..122

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

    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