librenms/librenms

View on GitHub
lang/de/settings.php

Summary

Maintainability
F
4 days
Test Coverage

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

<?php

return [
    'readonly' => 'Ist in config.php konfiguriert. Zur Aktivierung entfernen Sie den Eintrag aus der config.php.',
    'groups' => [
Severity: Major
Found in lang/de/settings.php - About 1 day to fix

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

            'alert' => [
                'ack_until_clear' => [
                    'description' => 'Standard Meldung bis der Alarm abklingt',
                    'help' => 'Standard Meldung bis der Alarm abklingt',
                ],
    Severity: Major
    Found in lang/de/settings.php and 4 other locations - About 6 hrs to fix
    lang/it/settings.php on lines 131..186
    lang/uk/settings.php on lines 131..186
    lang/zh-CN/settings.php on lines 70..125
    lang/zh-TW/settings.php on lines 123..178

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

    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' => 'Verfügbarkeit box width',
                    'help' => 'Eingabe gibt die Breite in Pixel für die Boxgröße in voller Ansicht an',
                ],
    Severity: Major
    Found in lang/de/settings.php and 4 other locations - About 4 hrs to fix
    lang/fr/settings.php on lines 1084..1129
    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ät)',
                    'help' => 'Sortiere aktivierte Transports nach der gewünschten Priorität.',
                ],
    Severity: Major
    Found in lang/de/settings.php and 3 other locations - About 4 hrs to fix
    lang/fr/settings.php on lines 975..1015
    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' => 'Base URI',
                    'help' => 'Überschreibt die base uri falls Sie den Graylog Standardwert geändert haben.',
                ],
    Severity: Major
    Found in lang/de/settings.php and 5 other locations - About 3 hrs to fix
    lang/fr/settings.php on lines 610..649
    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

    There are no issues that match your filters.

    Category
    Status