owncloud/core

View on GitHub

Showing 1,269 of 4,504 total issues

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

} catch (\Exception $e) {
    \OCP\Util::writeLog(
        'files_sharing',
        'Failure adding external share. Unhandled exception thrown while checking storage availability',
        \OCP\Util::ERROR
Severity: Major
Found in apps/files_sharing/ajax/external.php and 1 other location - About 1 hr to fix
apps/files_sharing/ajax/external.php on lines 96..115

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

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

    private function shouldHideKey(IStorageConfig $mount, $key) {
        $backend = $mount->getBackend();
        $backendParameters = $backend->getParameters();

        $auth = $mount->getAuthMechanism();
Severity: Major
Found in apps/files_external/lib/Command/ListCommand.php and 1 other location - About 1 hr to fix
apps/files_external/appinfo/Migrations/Version20210511082903.php on lines 74..93

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

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

} catch (\OCP\Files\StorageInvalidException $e) {
    // note: checkStorageAvailability will already remove the invalid share
    \OCP\Util::writeLog(
        'files_sharing',
        'Failure adding external share. Invalid remote storage thrown while checking storage availability',
Severity: Major
Found in apps/files_sharing/ajax/external.php and 1 other location - About 1 hr to fix
apps/files_sharing/ajax/external.php on lines 115..133

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

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

    private function shouldBeEncrypted($storageConfig, $key) {
        $backend = $storageConfig->getBackend();
        $backendParameters = $backend->getParameters();

        $auth = $storageConfig->getAuthMechanism();
apps/files_external/lib/Command/ListCommand.php on lines 333..351

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

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

                $.post(OC.filePath('files_trashbin', 'ajax', 'delete.php'), {
                        files: JSON.stringify([filename]),
                        dir: fileList.getCurrentDirectory()
                    },
                    _.bind(fileList._removeCallback, fileList)
Severity: Major
Found in apps/files_trashbin/js/app.js and 1 other location - About 1 hr to fix
apps/files_trashbin/js/app.js on lines 60..65

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

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

                $.post(OC.filePath('files_trashbin', 'ajax', 'undelete.php'), {
                        files: JSON.stringify([filename]),
                        dir: fileList.getCurrentDirectory()
                    },
                    _.bind(fileList._removeCallback, fileList)
Severity: Major
Found in apps/files_trashbin/js/app.js and 1 other location - About 1 hr to fix
apps/files_trashbin/js/app.js on lines 89..94

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

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

                $result[] = [
                    'id'           => $row['id'],
                    'uri'          => $row['uri'],
                    'lastmodified' => $row['lastmodified'],
                    'etag'         => '"' . $row['etag'] . '"',
Severity: Major
Found in apps/dav/lib/CalDAV/CalDavBackend.php and 1 other location - About 1 hr to fix
apps/dav/lib/CalDAV/CalDavBackend.php on lines 736..746

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

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

        return [
                'id'            => $row['id'],
                'uri'           => $row['uri'],
                'lastmodified'  => $row['lastmodified'],
                'etag'          => '"' . $row['etag'] . '"',
Severity: Major
Found in apps/dav/lib/CalDAV/CalDavBackend.php and 1 other location - About 1 hr to fix
apps/dav/lib/CalDAV/CalDavBackend.php on lines 775..785

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

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 postShared($params) {
        if ($this->encryptionManager->isEnabled()) {
            if ($params['itemType'] === 'file' || $params['itemType'] === 'folder') {
                $path = Filesystem::getPath($params['fileSource']);
                list($owner, $ownerPath) = $this->getOwnerPath($path);
Severity: Major
Found in lib/private/Encryption/Update.php and 1 other location - About 1 hr to fix
lib/private/Encryption/Update.php on lines 98..107

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

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 postUnshared($params) {
        if ($this->encryptionManager->isEnabled()) {
            if ($params['itemType'] === 'file' || $params['itemType'] === 'folder') {
                $path = Filesystem::getPath($params['fileSource']);
                list($owner, $ownerPath) = $this->getOwnerPath($path);
Severity: Major
Found in lib/private/Encryption/Update.php and 1 other location - About 1 hr to fix
lib/private/Encryption/Update.php on lines 82..91

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

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

OC.L10N.register(
    "files_trashbin",
    {
    "Couldn't delete %s permanently" : "حذف نہیں ہو سکتا %s مستقل طور پر",
    "Couldn't restore %s" : "بحال نہيں کيا جا سکتا %s",
Severity: Major
Found in apps/files_trashbin/l10n/ur_PK.js and 16 other locations - About 1 hr to fix
apps/comments/l10n/az.js on lines 1..14
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_external/l10n/ur_PK.js on lines 1..14
apps/files_sharing/l10n/kn.js on lines 1..14
apps/files_sharing/l10n/ta.js on lines 1..14
apps/files_trashbin/l10n/bn_BD.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ka_GE.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
apps/updatenotification/l10n/sr.js on lines 1..14
lib/l10n/ku_IQ.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14
settings/l10n/bn_IN.js on lines 1..14

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

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

OC.L10N.register(
    "settings",
    {
    "Saved" : "সংরক্ষিত",
    "Delete" : "মুছে ফেলা",
Severity: Major
Found in settings/l10n/bn_IN.js and 16 other locations - About 1 hr to fix
apps/comments/l10n/az.js on lines 1..14
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_external/l10n/ur_PK.js on lines 1..14
apps/files_sharing/l10n/kn.js on lines 1..14
apps/files_sharing/l10n/ta.js on lines 1..14
apps/files_trashbin/l10n/bn_BD.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ka_GE.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/files_trashbin/l10n/ur_PK.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
apps/updatenotification/l10n/sr.js on lines 1..14
lib/l10n/ku_IQ.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14

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

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

OC.L10N.register(
    "files_sharing",
    {
    "Uploading..." : "பதிவேற்றல்...",
    "Cancel" : "இரத்து செய்க",
Severity: Major
Found in apps/files_sharing/l10n/ta.js and 16 other locations - About 1 hr to fix
apps/comments/l10n/az.js on lines 1..14
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_external/l10n/ur_PK.js on lines 1..14
apps/files_sharing/l10n/kn.js on lines 1..14
apps/files_trashbin/l10n/bn_BD.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ka_GE.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/files_trashbin/l10n/ur_PK.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
apps/updatenotification/l10n/sr.js on lines 1..14
lib/l10n/ku_IQ.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14
settings/l10n/bn_IN.js on lines 1..14

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

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

OC.L10N.register(
    "comments",
    {
    "Type in a new comment..." : "Yeni komment əlavə et",
    "Delete comment" : "Kommenti poz",
Severity: Major
Found in apps/comments/l10n/az.js and 16 other locations - About 1 hr to fix
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_external/l10n/ur_PK.js on lines 1..14
apps/files_sharing/l10n/kn.js on lines 1..14
apps/files_sharing/l10n/ta.js on lines 1..14
apps/files_trashbin/l10n/bn_BD.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ka_GE.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/files_trashbin/l10n/ur_PK.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
apps/updatenotification/l10n/sr.js on lines 1..14
lib/l10n/ku_IQ.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14
settings/l10n/bn_IN.js on lines 1..14

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

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

OC.L10N.register(
    "files_sharing",
    {
    "Cancel" : "ರದ್ದು",
    "Add" : "ಸೇರಿಸಿ",
Severity: Major
Found in apps/files_sharing/l10n/kn.js and 16 other locations - About 1 hr to fix
apps/comments/l10n/az.js on lines 1..14
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_external/l10n/ur_PK.js on lines 1..14
apps/files_sharing/l10n/ta.js on lines 1..14
apps/files_trashbin/l10n/bn_BD.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ka_GE.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/files_trashbin/l10n/ur_PK.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
apps/updatenotification/l10n/sr.js on lines 1..14
lib/l10n/ku_IQ.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14
settings/l10n/bn_IN.js on lines 1..14

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

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

OC.L10N.register(
    "updatenotification",
    {
    "{version} is available. Get more information on how to update." : "Верзија {version} је доступна. Сазнајте како да ажурирате.",
    "Updated channel" : "Канал ажуриран",
Severity: Major
Found in apps/updatenotification/l10n/sr.js and 16 other locations - About 1 hr to fix
apps/comments/l10n/az.js on lines 1..14
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_external/l10n/ur_PK.js on lines 1..14
apps/files_sharing/l10n/kn.js on lines 1..14
apps/files_sharing/l10n/ta.js on lines 1..14
apps/files_trashbin/l10n/bn_BD.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ka_GE.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/files_trashbin/l10n/ur_PK.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
lib/l10n/ku_IQ.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14
settings/l10n/bn_IN.js on lines 1..14

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

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

OC.L10N.register(
    "files_external",
    {
    "Personal" : "شخصی",
    "Username" : "یوزر نیم",
Severity: Major
Found in apps/files_external/l10n/ur_PK.js and 16 other locations - About 1 hr to fix
apps/comments/l10n/az.js on lines 1..14
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_sharing/l10n/kn.js on lines 1..14
apps/files_sharing/l10n/ta.js on lines 1..14
apps/files_trashbin/l10n/bn_BD.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ka_GE.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/files_trashbin/l10n/ur_PK.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
apps/updatenotification/l10n/sr.js on lines 1..14
lib/l10n/ku_IQ.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14
settings/l10n/bn_IN.js on lines 1..14

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

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

OC.L10N.register(
    "files_trashbin",
    {
    "Couldn't delete %s permanently" : "ფაილი %s–ის სრულად წაშლა ვერ მოხერხდა",
    "Couldn't restore %s" : "%s–ის აღდგენა ვერ მოხერხდა",
Severity: Major
Found in apps/files_trashbin/l10n/ka_GE.js and 16 other locations - About 1 hr to fix
apps/comments/l10n/az.js on lines 1..14
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_external/l10n/ur_PK.js on lines 1..14
apps/files_sharing/l10n/kn.js on lines 1..14
apps/files_sharing/l10n/ta.js on lines 1..14
apps/files_trashbin/l10n/bn_BD.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/files_trashbin/l10n/ur_PK.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
apps/updatenotification/l10n/sr.js on lines 1..14
lib/l10n/ku_IQ.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14
settings/l10n/bn_IN.js on lines 1..14

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

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

OC.L10N.register(
    "files_trashbin",
    {
    "Couldn't delete %s permanently" : "%s স্থায়ীভাবে মুছে ফেলা গেলনা",
    "Couldn't restore %s" : "%s ফেরত আনা গেলনা",
Severity: Major
Found in apps/files_trashbin/l10n/bn_BD.js and 16 other locations - About 1 hr to fix
apps/comments/l10n/az.js on lines 1..14
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_external/l10n/ur_PK.js on lines 1..14
apps/files_sharing/l10n/kn.js on lines 1..14
apps/files_sharing/l10n/ta.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ka_GE.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/files_trashbin/l10n/ur_PK.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
apps/updatenotification/l10n/sr.js on lines 1..14
lib/l10n/ku_IQ.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14
settings/l10n/bn_IN.js on lines 1..14

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

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

OC.L10N.register(
    "lib",
    {
    "None" : "هیچ",
    "Username" : "ناوی به‌کارهێنه‌ر",
Severity: Major
Found in lib/l10n/ku_IQ.js and 16 other locations - About 1 hr to fix
apps/comments/l10n/az.js on lines 1..14
apps/federation/l10n/sk_SK.js on lines 1..14
apps/files_external/l10n/ur_PK.js on lines 1..14
apps/files_sharing/l10n/kn.js on lines 1..14
apps/files_sharing/l10n/ta.js on lines 1..14
apps/files_trashbin/l10n/bn_BD.js on lines 1..14
apps/files_trashbin/l10n/cy_GB.js on lines 1..14
apps/files_trashbin/l10n/ka_GE.js on lines 1..14
apps/files_trashbin/l10n/ms_MY.js on lines 1..14
apps/files_trashbin/l10n/ur_PK.js on lines 1..14
apps/systemtags/l10n/es_MX.js on lines 1..14
apps/updatenotification/l10n/ro.js on lines 1..14
apps/updatenotification/l10n/sr.js on lines 1..14
lib/l10n/ms_MY.js on lines 1..14
lib/l10n/te.js on lines 1..14
settings/l10n/bn_IN.js on lines 1..14

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

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