owncloud/core

View on GitHub

Showing 1,269 of 4,504 total issues

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

<?php
/**
 * @author Viktar Dubiniuk <dubiniuk@owncloud.com>
 *
 * @copyright Copyright (c) 2019, ownCloud GmbH
apps/federatedfilesharing/appinfo/Migrations/Version20190410160725.php on lines 1..42
apps/files_trashbin/appinfo/Migrations/Version20170804201253.php on lines 1..24

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

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 ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ) {
            prev = $( "<a>" )
                .attr( {
                    "class": "ui-datepicker-prev ui-corner-all",
                    "data-handler": "prev",
Severity: Major
Found in core/js/js.js and 1 other location - About 2 hrs to fix
core/js/js.js on lines 2995..3023

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

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 ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ) {
            next = $( "<a>" )
                .attr( {
                    "class": "ui-datepicker-next ui-corner-all",
                    "data-handler": "next",
Severity: Major
Found in core/js/js.js and 1 other location - About 2 hrs to fix
core/js/js.js on lines 2960..2988

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

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

        try {
            \OC\Files\Filesystem::initMountPoints($userId);

            $brokenPath = \substr_replace(
                \substr_replace(\md5($userId), '/', 4, 0),
Severity: Major
Found in lib/private/Repair/MoveAvatarIntoSubFolder.php and 1 other location - About 2 hrs to fix
lib/private/Repair/MoveAvatarOutsideHome.php on lines 111..140

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

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

        try {
            \OC\Files\Filesystem::initMountPoints($userId);

            /** @var File $oldAvatarFile */
            $oldAvatarFile = null;
Severity: Major
Found in lib/private/Repair/MoveAvatarOutsideHome.php and 1 other location - About 2 hrs to fix
lib/private/Repair/MoveAvatarIntoSubFolder.php on lines 110..158

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

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

    public function __construct(IL10N $l) {
        $this
            ->setIdentifier('owncloud')
            ->addIdentifierAlias('\OC\Files\Storage\OwnCloud') // legacy compat
            ->setStorageClass('\OCA\Files_External\Lib\Storage\OwnCloud')
Severity: Major
Found in apps/files_external/lib/Lib/Backend/OwnCloud.php and 1 other location - About 2 hrs to fix
apps/files_external/lib/Lib/Backend/DAV.php on lines 34..49

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

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

    public function delete() {
        if (isset($this->calendarInfo['{http://owncloud.org/ns}owner-principal'])) {
            $principal = 'principal:' . parent::getOwner();
            $shares = $this->getShares();
            $shares = \array_filter($shares, function ($share) use ($principal) {
Severity: Major
Found in apps/dav/lib/CalDAV/Calendar.php and 1 other location - About 2 hrs to fix
apps/dav/lib/CardDAV/AddressBook.php on lines 141..161

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

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

    public function delete() {
        if (isset($this->addressBookInfo['{http://owncloud.org/ns}owner-principal'])) {
            $principal = 'principal:' . parent::getOwner();
            $shares = $this->getShares();
            $shares = \array_filter($shares, function ($share) use ($principal) {
Severity: Major
Found in apps/dav/lib/CardDAV/AddressBook.php and 1 other location - About 2 hrs to fix
apps/dav/lib/CalDAV/Calendar.php on lines 159..179

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

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

    public function __construct(IL10N $l) {
        $this
            ->setIdentifier('dav')
            ->addIdentifierAlias('\OC\Files\Storage\DAV') // legacy compat
            ->setStorageClass('\OC\Files\Storage\DAV')
Severity: Major
Found in apps/files_external/lib/Lib/Backend/DAV.php and 1 other location - About 2 hrs to fix
apps/files_external/lib/Lib/Backend/OwnCloud.php on lines 31..46

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

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

OC.L10N.register(
    "comments",
    {
    "Type in a new comment..." : "សរសេរ​មតិ​ថ្មី​មួយ...",
    "Delete comment" : "លុប​មតិ​ចោល",
Severity: Major
Found in apps/comments/l10n/km.js and 12 other locations - About 2 hrs to fix
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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

OC.L10N.register(
    "files_trashbin",
    {
    "Couldn't delete %s permanently" : "Ne mogu zauvek da obrišem %s",
    "Couldn't restore %s" : "Ne mogu da vratim %s",
Severity: Major
Found in apps/files_trashbin/l10n/sr@latin.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Ознаке",
    "Tagged files" : "Означени фајлови",
Severity: Major
Found in apps/systemtags/l10n/sr.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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

OC.L10N.register(
    "settings",
    {
    "Delete" : "తొలగించు",
    "Language" : "భాష",
Severity: Major
Found in settings/l10n/te.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Здружено дељење",
    "Loading..." : "Учитавам...",
Severity: Major
Found in apps/federatedfilesharing/l10n/sr.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "برچسب‌ها",
    "Tagged files" : "فایل‌های برچسب زده شده",
Severity: Major
Found in apps/systemtags/l10n/fa.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "Notificaciones d'anovamientu",
    "{version} is available. Get more information on how to update." : "{version} ta disponible. Consigui más información en cómo anovar·",
Severity: Major
Found in apps/updatenotification/l10n/ast.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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

OC.L10N.register(
    "files_sharing",
    {
    "Uploading..." : "Incargante...",
    "Cancel" : "Cancellar",
Severity: Major
Found in apps/files_sharing/l10n/ia.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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

OC.L10N.register(
    "files_trashbin",
    {
    "Couldn't delete %s permanently" : "No se puede eliminar %s permanentemente",
    "Couldn't restore %s" : "No se puede restaurar %s",
Severity: Major
Found in apps/files_trashbin/l10n/es_MX.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Loading..." : "Завантаження...",
    "Invalid Federated Cloud ID" : "Неправильний Об'єднаний Хмарний Ідентіфікатор ",
Severity: Major
Found in apps/federatedfilesharing/l10n/uk.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/ast.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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

OC.L10N.register(
    "files_trashbin",
    {
    "Couldn't delete %s permanently" : "Nun pudo desaniciase %s dafechu",
    "Couldn't restore %s" : "Nun pudo restaurase %s",
Severity: Major
Found in apps/files_trashbin/l10n/ast.js and 12 other locations - About 2 hrs to fix
apps/comments/l10n/km.js on lines 1..19
apps/federatedfilesharing/l10n/sr.js on lines 1..19
apps/federatedfilesharing/l10n/uk.js on lines 1..19
apps/files/l10n/ta_IN.js on lines 1..19
apps/files_sharing/l10n/ia.js on lines 1..19
apps/files_trashbin/l10n/es_MX.js on lines 1..19
apps/files_trashbin/l10n/sr@latin.js on lines 1..19
apps/systemtags/l10n/fa.js on lines 1..19
apps/systemtags/l10n/sr.js on lines 1..19
apps/updatenotification/l10n/ast.js on lines 1..19
apps/updatenotification/l10n/oc.js on lines 1..19
settings/l10n/te.js on lines 1..19

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

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