owncloud/core

View on GitHub

Showing 1,268 of 4,503 total issues

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

        if ($minValue === 'auto' && $maxValue === 'auto') {
            // Default: Keep for 30 days but delete anytime if space needed
            $this->minAge = self::DEFAULT_RETENTION_OBLIGATION;
            $this->maxAge = self::NO_OBLIGATION;
            $this->canPurgeToSaveSpace = true;
Severity: Major
Found in apps/files_trashbin/lib/Expiration.php and 1 other location - About 7 hrs to fix
apps/files_versions/lib/Expiration.php on lines 168..194

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

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

OC.L10N.register(
    "settings",
    {
    "Authentication error" : "Ralat pengesahan",
    "Create" : "Buat",
Severity: Major
Found in settings/l10n/ms_MY.js and 2 other locations - About 7 hrs to fix
apps/files/l10n/km.js on lines 1..39
apps/files_sharing/l10n/hr.js on lines 1..39

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

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

OC.L10N.register(
    "files",
    {
    "Unknown error" : "មិន​ស្គាល់​កំហុស",
    "Close" : "បិទ",
Severity: Major
Found in apps/files/l10n/km.js and 2 other locations - About 7 hrs to fix
apps/files_sharing/l10n/hr.js on lines 1..39
settings/l10n/ms_MY.js on lines 1..39

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

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

OC.L10N.register(
    "files_sharing",
    {
    "Server to server sharing is not enabled on this server" : "Dijeljenje resursa s poslužitelja na poslužitelj s ovog poslužitelja nije omogućeno.",
    "Shared with you" : "Podijeljeno s vama",
Severity: Major
Found in apps/files_sharing/l10n/hr.js and 2 other locations - About 7 hrs to fix
apps/files/l10n/km.js on lines 1..39
settings/l10n/ms_MY.js on lines 1..39

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

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

        if ($syncToken) {
            $query = 'SELECT `uri`, `operation` FROM `*PREFIX*calendarchanges` WHERE `synctoken` >= ? AND `synctoken` < ? AND `calendarid` = ? ORDER BY `synctoken`';

            // Fetching all changes
            $stmt = $this->db->prepare($query, $limit ?: null, $limit ? 0 : null);
Severity: Major
Found in apps/dav/lib/CalDAV/CalDavBackend.php and 1 other location - About 7 hrs to fix
apps/dav/lib/CardDAV/CardDavBackend.php on lines 732..767

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

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

        if ($syncToken) {
            $query = 'SELECT `uri`, `operation` FROM `*PREFIX*addressbookchanges` WHERE `synctoken` >= ? AND `synctoken` < ? AND `addressbookid` = ? ORDER BY `synctoken`';

            // Fetching all changes
            $stmt = $this->db->prepare($query, $limit ?: null, $limit ? 0 : null);
Severity: Major
Found in apps/dav/lib/CardDAV/CardDavBackend.php and 1 other location - About 7 hrs to fix
apps/dav/lib/CalDAV/CalDavBackend.php on lines 1144..1179

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

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

OC.L10N.register(
    "files_sharing",
    {
    "Server to server sharing is not enabled on this server" : "এই সার্ভারে সার্ভার হতে সার্ভারে ভাগাভাগি কার্যকর নয়",
    "Shared with you" : "আপনার সাথে ভাগাভাগি করেছেন",
Severity: Major
Found in apps/files_sharing/l10n/bn_BD.js and 1 other location - About 7 hrs to fix
apps/files/l10n/ka_GE.js on lines 1..38

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

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

OC.L10N.register(
    "files",
    {
    "Unknown error" : "უცნობი შეცდომა",
    "Close" : "დახურვა",
Severity: Major
Found in apps/files/l10n/ka_GE.js and 1 other location - About 7 hrs to fix
apps/files_sharing/l10n/bn_BD.js on lines 1..38

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

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

    protected function execute(InputInterface $input, OutputInterface $output): int {
        $retentionEnabled = $this->trashExpiryManager->retentionEnabled();
        if (!$retentionEnabled) {
            $output->writeln("Auto expiration is configured - expiration will be handled automatically.");
            return 1;
Severity: Major
Found in apps/files_trashbin/lib/Command/ExpireTrash.php and 1 other location - About 7 hrs to fix
apps/files_versions/lib/Command/ExpireVersions.php on lines 71..100

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

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

    protected function execute(InputInterface $input, OutputInterface $output): int {
        $maxAge = $this->expiration->getMaxAgeAsTimestamp();
        if (!$maxAge) {
            $output->writeln("Auto expiration is configured - expiration will be handled automatically.");
            return 1;
Severity: Major
Found in apps/files_versions/lib/Command/ExpireVersions.php and 1 other location - About 7 hrs to fix
apps/files_trashbin/lib/Command/ExpireTrash.php on lines 70..99

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Ndarje e federuar",
    "Add to" : "Shtoje te",
Severity: Major
Found in apps/federatedfilesharing/l10n/sq.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/ru_RU.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "聯合分享",
    "Add to" : "增加到",
Severity: Major
Found in apps/federatedfilesharing/l10n/zh_TW.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/ru_RU.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Federated-Sharing",
    "Add to" : "Hinzufügen",
Severity: Major
Found in apps/federatedfilesharing/l10n/de.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/ru_RU.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Compartido federado",
    "Add to" : "Añadir a ",
Severity: Major
Found in apps/federatedfilesharing/l10n/es.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/ru_RU.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Федеративно споделяне",
    "Add to" : "Добавяне към",
Severity: Major
Found in apps/federatedfilesharing/l10n/bg_BG.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/ru_RU.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Общий доступ из объединенного общего хранилища",
    "Add to" : "Добавить к",
Severity: Major
Found in apps/federatedfilesharing/l10n/ru.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru_RU.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Federated sharing",
    "Add to" : "Ajouter à",
Severity: Major
Found in apps/federatedfilesharing/l10n/fr.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/ru_RU.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Общий доступ из объединенного общего хранилища",
    "Add to" : "Добавить к",
Severity: Major
Found in apps/federatedfilesharing/l10n/ru_RU.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

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

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

OC.L10N.register(
    "lib",
    {
    "Unknown filetype" : "نامەلۇم ھۆججەت تىپى",
    "Invalid image" : "سۈرەت ئىناۋەتسىز",
Severity: Major
Found in lib/l10n/ug.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/pt_BR.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/ru_RU.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Compartilhamento federado",
    "Add to" : "Adicionar para ",
Severity: Major
Found in apps/federatedfilesharing/l10n/pt_BR.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/bg_BG.js on lines 1..36
apps/federatedfilesharing/l10n/de.js on lines 1..36
apps/federatedfilesharing/l10n/de_DE.js on lines 1..36
apps/federatedfilesharing/l10n/el.js on lines 1..36
apps/federatedfilesharing/l10n/en_GB.js on lines 1..36
apps/federatedfilesharing/l10n/es.js on lines 1..36
apps/federatedfilesharing/l10n/fr.js on lines 1..36
apps/federatedfilesharing/l10n/it.js on lines 1..36
apps/federatedfilesharing/l10n/ko.js on lines 1..36
apps/federatedfilesharing/l10n/ru.js on lines 1..36
apps/federatedfilesharing/l10n/ru_RU.js on lines 1..36
apps/federatedfilesharing/l10n/sq.js on lines 1..36
apps/federatedfilesharing/l10n/th_TH.js on lines 1..36
apps/federatedfilesharing/l10n/tr.js on lines 1..36
apps/federatedfilesharing/l10n/ug.js on lines 1..36
apps/federatedfilesharing/l10n/zh_CN.js on lines 1..36
apps/federatedfilesharing/l10n/zh_TW.js on lines 1..36
apps/files_external/l10n/lv.js on lines 1..36
lib/l10n/ug.js on lines 1..36

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

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