owncloud/core

View on GitHub

Showing 1,266 of 4,502 total issues

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

    public function beforeMethod(RequestInterface $request, ResponseInterface $response) {
        $path = $request->getPath();
        $method = $request->getMethod();
        $lowercaseMethod = \strtolower($method);
        $token = $request->getRawServerValue('PHP_AUTH_USER');
Severity: Major
Found in apps/dav/lib/Files/Sharing/PublicLinkEventsPlugin.php and 1 other location - About 6 hrs to fix
apps/dav/lib/Files/Sharing/PublicLinkEventsPlugin.php on lines 99..132

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

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 afterMethod(RequestInterface $request, ResponseInterface $response) {
        $path = $request->getPath();
        $method = $request->getMethod();
        $lowercaseMethod = \strtolower($method);
        $token = $request->getRawServerValue('PHP_AUTH_USER');
Severity: Major
Found in apps/dav/lib/Files/Sharing/PublicLinkEventsPlugin.php and 1 other location - About 6 hrs to fix
apps/dav/lib/Files/Sharing/PublicLinkEventsPlugin.php on lines 58..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 210.

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

<?php
/**
 * @author Christoph Wurst <christoph@owncloud.com>
 *
 * @copyright Copyright (c) 2018, ownCloud GmbH
Severity: Major
Found in core/Command/TwoFactorAuth/Enable.php and 1 other location - About 6 hrs to fix
core/Command/TwoFactorAuth/Disable.php on lines 1..63

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

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

<?php
/**
 * @author Christoph Wurst <christoph@owncloud.com>
 *
 * @copyright Copyright (c) 2018, ownCloud GmbH
Severity: Major
Found in core/Command/TwoFactorAuth/Disable.php and 1 other location - About 6 hrs to fix
core/Command/TwoFactorAuth/Enable.php on lines 1..63

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

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(
    "systemtags",
    {
    "Tags" : "علامات",
    "Tagged files" : "الملفات ذات العلامات",
Severity: Major
Found in apps/systemtags/l10n/ar.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "systemtags",
    {
    "Tags" : "태그",
    "Tagged files" : "태그된 파일",
Severity: Major
Found in apps/systemtags/l10n/ko.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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",
    "Loading..." : "Laden…",
Severity: Major
Found in apps/federatedfilesharing/l10n/de_CH.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "files",
    {
    "Close" : "மூடுக",
    "Favorites" : "விருப்பங்கள்",
Severity: Major
Found in apps/files/l10n/ta.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "systemtags",
    {
    "Tags" : "Etykiety",
    "Tagged files" : "Otagowane pliki",
Severity: Major
Found in apps/systemtags/l10n/pl.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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" : "שיתוף מאוגד",
    "Loading..." : "בטעינה...",
Severity: Major
Found in apps/federatedfilesharing/l10n/he.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "systemtags",
    {
    "Tags" : "Taggar",
    "Tagged files" : "Taggade filer",
Severity: Major
Found in apps/systemtags/l10n/sv.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "systemtags",
    {
    "Tags" : "Etiquetas",
    "Tagged files" : "Ficheiros etiquetados",
Severity: Major
Found in apps/systemtags/l10n/gl.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "systemtags",
    {
    "Tags" : "標籤",
    "Tagged files" : "標記文件",
Severity: Major
Found in apps/systemtags/l10n/zh_TW.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "systemtags",
    {
    "Tags" : "Etiquetes",
    "Tagged files" : "Fitxers marcats",
Severity: Major
Found in apps/systemtags/l10n/ca.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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" : "مشاركة موحدة",
    "Loading..." : "جاري التحميل ...",
Severity: Major
Found in apps/federatedfilesharing/l10n/ar.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "core",
    {
    "Sunday" : "Нядзеля",
    "Monday" : "Панядзелак",
Severity: Major
Found in core/l10n/be.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "files_sharing",
    {
    "Uploading..." : "កំពុងដាក់បញ្ចូល...",
    "Cancel" : "បោះបង់",
Severity: Major
Found in apps/files_sharing/l10n/km.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "systemtags",
    {
    "Tags" : "Tag",
    "Tagged files" : "File con tag",
Severity: Major
Found in apps/systemtags/l10n/it.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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(
    "systemtags",
    {
    "Tags" : "Etiquetas",
    "Tagged files" : "Ficheiros etiquetados",
Severity: Major
Found in apps/systemtags/l10n/pt_PT.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/gl.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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" : "Compartición federada",
    "Loading..." : "Cargando...",
Severity: Major
Found in apps/federatedfilesharing/l10n/gl.js and 19 other locations - About 6 hrs to fix
apps/federatedfilesharing/l10n/ar.js on lines 1..33
apps/federatedfilesharing/l10n/de_CH.js on lines 1..33
apps/federatedfilesharing/l10n/he.js on lines 1..33
apps/federatedfilesharing/l10n/sv.js on lines 1..33
apps/files/l10n/ta.js on lines 1..33
apps/files_sharing/l10n/km.js on lines 1..33
apps/systemtags/l10n/ar.js on lines 1..33
apps/systemtags/l10n/ca.js on lines 1..33
apps/systemtags/l10n/de_CH.js on lines 1..33
apps/systemtags/l10n/gl.js on lines 1..33
apps/systemtags/l10n/is.js on lines 1..33
apps/systemtags/l10n/it.js on lines 1..33
apps/systemtags/l10n/ko.js on lines 1..33
apps/systemtags/l10n/pl.js on lines 1..33
apps/systemtags/l10n/pt_PT.js on lines 1..33
apps/systemtags/l10n/sv.js on lines 1..33
apps/systemtags/l10n/zh_TW.js on lines 1..33
core/l10n/be.js on lines 1..33
core/l10n/fil.js on lines 1..33

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

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