owncloud/core

View on GitHub

Showing 1,269 of 4,504 total issues

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

    private function setUserVars($user, $input) {
        if (\is_array($input)) {
            foreach ($input as $key => $value) {
                if (\is_string($value)) {
                    $input[$key] = \str_replace('$user', $user, $value);
Severity: Major
Found in lib/private/Files/External/ConfigAdapter.php and 1 other location - About 1 hr to fix
lib/private/Files/External/LegacyUtil.php on lines 166..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 106.

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 getLocalFolder($path) {
        $parent = \substr($path, 0, \strrpos($path, '/'));
        $path = $this->getAbsolutePath($path);
        list($storage, $internalPath) = Filesystem::resolvePath($path);
        if (Filesystem::isValidPath($parent) and $storage) {
Severity: Major
Found in lib/private/Files/View.php and 1 other location - About 1 hr to fix
lib/private/Files/View.php on lines 247..256

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

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 getLocalFile($path) {
        $parent = \substr($path, 0, \strrpos($path, '/'));
        $path = $this->getAbsolutePath($path);
        list($storage, $internalPath) = Filesystem::resolvePath($path);
        if (Filesystem::isValidPath($parent) and $storage) {
Severity: Major
Found in lib/private/Files/View.php and 1 other location - About 1 hr to fix
lib/private/Files/View.php on lines 262..271

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

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 static function setUserVars($user, $input) {
        if (\is_array($input)) {
            foreach ($input as $key => $value) {
                if (\is_string($value)) {
                    $input[$key] = \str_replace('$user', $user, $value);
Severity: Major
Found in lib/private/Files/External/LegacyUtil.php and 1 other location - About 1 hr to fix
lib/private/Files/External/ConfigAdapter.php on lines 193..206

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

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->userSession instanceof IUserSession) {
            $user = $this->userSession->getUser();
            if (
                ($this->config->getSystemValue('allow_user_to_change_mail_address') === false) &&
                (($user !== null) && (!$this->groupManager->isAdmin($user->getUID()))) &&
Severity: Major
Found in lib/private/User/User.php and 1 other location - About 1 hr to fix
lib/private/User/User.php on lines 454..463

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

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

        $query->select('s.id', 's.file_source', 's.share_type', 's.parent', 'st.id', 's.uid_owner', 's.uid_initiator', 's.share_with')
            ->selectAlias('s.id', 'share_id')
            ->selectAlias('s.file_source', 'file_source')
            ->selectAlias('s.share_type', 'share_type')
            ->selectAlias('s.parent', 'share_parent')
Severity: Major
Found in apps/files/lib/Command/TroubleshootTransferOwnership.php and 1 other location - About 1 hr to fix
apps/files/lib/Command/TroubleshootTransferOwnership.php on lines 316..321

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

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->userSession instanceof IUserSession) {
            $user = $this->userSession->getUser();
            if (
                ($this->config->getSystemValue('allow_user_to_change_display_name') === false) &&
                (($user !== null) && (!$this->groupManager->isAdmin($user->getUID()))) &&
Severity: Major
Found in lib/private/User/User.php and 1 other location - About 1 hr to fix
lib/private/User/User.php on lines 478..487

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

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

        $query->andWhere($query->expr()->orX(
            $query->expr()->eq('share_type', $query->createNamedParameter(\OCP\Share::SHARE_TYPE_USER)),
            $query->expr()->eq('share_type', $query->createNamedParameter(\OCP\Share::SHARE_TYPE_GROUP)),
            $query->expr()->eq('share_type', $query->createNamedParameter(\OCP\Share::SHARE_TYPE_LINK)),
            $query->expr()->eq('share_type', $query->createNamedParameter(\OCP\Share::SHARE_TYPE_REMOTE))
Severity: Major
Found in apps/files/lib/Command/TroubleshootTransferOwnership.php and 1 other location - About 1 hr to fix
apps/files/lib/Command/TroubleshootTransferOwnership.php on lines 349..369

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

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

                    button.children('span').first().text(settings.labels.length > 0
                        ? settings.labels.join(', ')
                        : settings.title);
Severity: Major
Found in core/js/multiselect.js and 1 other location - About 1 hr to fix
core/js/multiselect.js on lines 268..270

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

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

                            button.children('span').first().text(settings.labels.length > 0
                                ? settings.labels.join(', ')
                                : settings.title);
Severity: Major
Found in core/js/multiselect.js and 1 other location - About 1 hr to fix
core/js/multiselect.js on lines 191..193

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

                    if(!data.forwardedForHeadersWorking) {
                        messages.push({
                            msg: t('core', 'The reverse proxy headers configuration is incorrect, or you are accessing ownCloud from a trusted proxy. If you are not accessing ownCloud from a trusted proxy, this is a security issue and can allow an attacker to spoof their IP address as visible to ownCloud. Further information can be found in our <a target="_blank" rel="noreferrer" href="{docLink}">documentation</a>.', {docLink: data.reverseProxyDocs}),
                            type: OC.SetupChecks.MESSAGE_TYPE_WARNING
                        });
Severity: Major
Found in core/js/setupchecks.js and 2 other locations - About 1 hr to fix
core/js/setupchecks.js on lines 101..106
core/js/setupchecks.js on lines 107..112

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

                    if(!data.isUrandomAvailable) {
                        messages.push({
                            msg: t('core', '/dev/urandom is not readable by PHP which is highly discouraged for security reasons. Further information can be found in our <a target="_blank" rel="noreferrer" href="{docLink}">documentation</a>.', {docLink: data.securityDocs}),
                            type: OC.SetupChecks.MESSAGE_TYPE_WARNING
                        });
Severity: Major
Found in core/js/setupchecks.js and 2 other locations - About 1 hr to fix
core/js/setupchecks.js on lines 101..106
core/js/setupchecks.js on lines 125..130

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

                    if(!data.isMemcacheConfigured) {
                        messages.push({
                            msg: t('core', 'No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our <a target="_blank" rel="noreferrer" href="{docLink}">documentation</a>.', {docLink: data.memcacheDocs}),
                            type: OC.SetupChecks.MESSAGE_TYPE_INFO
                        });
Severity: Major
Found in core/js/setupchecks.js and 2 other locations - About 1 hr to fix
core/js/setupchecks.js on lines 107..112
core/js/setupchecks.js on lines 125..130

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

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

OC.L10N.register(
    "files_sharing",
    {
    "Uploading..." : "பதிவேற்றல்...",
    "Cancel" : "இரத்து செய்க",
Severity: Major
Found in apps/files_sharing/l10n/ta_LK.js and 51 other locations - About 1 hr to fix
apps/comments/l10n/hy.js on lines 1..13
apps/comments/l10n/si.js on lines 1..13
apps/comments/l10n/si_LK.js on lines 1..13
apps/dav/l10n/af_ZA.js on lines 1..13
apps/dav/l10n/ar.js on lines 1..13
apps/dav/l10n/bg_BG.js on lines 1..13
apps/dav/l10n/cs_CZ.js on lines 1..13
apps/dav/l10n/de.js on lines 1..13
apps/dav/l10n/de_CH.js on lines 1..13
apps/dav/l10n/de_DE.js on lines 1..13
apps/dav/l10n/el.js on lines 1..13
apps/dav/l10n/en_GB.js on lines 1..13
apps/dav/l10n/es.js on lines 1..13
apps/dav/l10n/fr.js on lines 1..13
apps/dav/l10n/gl.js on lines 1..13
apps/dav/l10n/he.js on lines 1..13
apps/dav/l10n/hu_HU.js on lines 1..13
apps/dav/l10n/id.js on lines 1..13
apps/dav/l10n/it.js on lines 1..13
apps/dav/l10n/ko.js on lines 1..13
apps/dav/l10n/lt_LT.js on lines 1..13
apps/dav/l10n/pl.js on lines 1..13
apps/dav/l10n/pl_PL.js on lines 1..13
apps/dav/l10n/pt_BR.js on lines 1..13
apps/dav/l10n/pt_PT.js on lines 1..13
apps/dav/l10n/ru.js on lines 1..13
apps/dav/l10n/ru_RU.js on lines 1..13
apps/dav/l10n/si.js on lines 1..13
apps/dav/l10n/si_LK.js on lines 1..13
apps/dav/l10n/sq.js on lines 1..13
apps/dav/l10n/sv.js on lines 1..13
apps/dav/l10n/th_TH.js on lines 1..13
apps/dav/l10n/tr.js on lines 1..13
apps/dav/l10n/ug.js on lines 1..13
apps/dav/l10n/zh_CN.js on lines 1..13
apps/dav/l10n/zh_TW.js on lines 1..13
apps/federation/l10n/hr.js on lines 1..13
apps/federation/l10n/vi.js on lines 1..13
apps/files/l10n/te.js on lines 1..13
apps/files/l10n/tr_TR.js on lines 1..13
apps/files_external/l10n/bn_IN.js on lines 1..13
apps/files_external/l10n/es_ES.js on lines 1..13
apps/files_external/l10n/ku_IQ.js on lines 1..13
apps/files_sharing/l10n/hi.js on lines 1..13
apps/files_sharing/l10n/nds.js on lines 1..13
apps/files_sharing/l10n/ur_PK.js on lines 1..13
apps/files_versions/l10n/ru_RU.js on lines 1..13
apps/updatenotification/l10n/lv.js on lines 1..13
core/l10n/sv_SE.js on lines 1..13
lib/l10n/hi.js on lines 1..13
settings/l10n/my_MM.js on lines 1..13

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

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

OC.L10N.register(
    "comments",
    {
    "Type in a new comment..." : "අලුත් අදහසක් දක්වන්න",
    "Delete comment" : "අදහස මකන්න",
Severity: Major
Found in apps/comments/l10n/si.js and 51 other locations - About 1 hr to fix
apps/comments/l10n/hy.js on lines 1..13
apps/comments/l10n/si_LK.js on lines 1..13
apps/dav/l10n/af_ZA.js on lines 1..13
apps/dav/l10n/ar.js on lines 1..13
apps/dav/l10n/bg_BG.js on lines 1..13
apps/dav/l10n/cs_CZ.js on lines 1..13
apps/dav/l10n/de.js on lines 1..13
apps/dav/l10n/de_CH.js on lines 1..13
apps/dav/l10n/de_DE.js on lines 1..13
apps/dav/l10n/el.js on lines 1..13
apps/dav/l10n/en_GB.js on lines 1..13
apps/dav/l10n/es.js on lines 1..13
apps/dav/l10n/fr.js on lines 1..13
apps/dav/l10n/gl.js on lines 1..13
apps/dav/l10n/he.js on lines 1..13
apps/dav/l10n/hu_HU.js on lines 1..13
apps/dav/l10n/id.js on lines 1..13
apps/dav/l10n/it.js on lines 1..13
apps/dav/l10n/ko.js on lines 1..13
apps/dav/l10n/lt_LT.js on lines 1..13
apps/dav/l10n/pl.js on lines 1..13
apps/dav/l10n/pl_PL.js on lines 1..13
apps/dav/l10n/pt_BR.js on lines 1..13
apps/dav/l10n/pt_PT.js on lines 1..13
apps/dav/l10n/ru.js on lines 1..13
apps/dav/l10n/ru_RU.js on lines 1..13
apps/dav/l10n/si.js on lines 1..13
apps/dav/l10n/si_LK.js on lines 1..13
apps/dav/l10n/sq.js on lines 1..13
apps/dav/l10n/sv.js on lines 1..13
apps/dav/l10n/th_TH.js on lines 1..13
apps/dav/l10n/tr.js on lines 1..13
apps/dav/l10n/ug.js on lines 1..13
apps/dav/l10n/zh_CN.js on lines 1..13
apps/dav/l10n/zh_TW.js on lines 1..13
apps/federation/l10n/hr.js on lines 1..13
apps/federation/l10n/vi.js on lines 1..13
apps/files/l10n/te.js on lines 1..13
apps/files/l10n/tr_TR.js on lines 1..13
apps/files_external/l10n/bn_IN.js on lines 1..13
apps/files_external/l10n/es_ES.js on lines 1..13
apps/files_external/l10n/ku_IQ.js on lines 1..13
apps/files_sharing/l10n/hi.js on lines 1..13
apps/files_sharing/l10n/nds.js on lines 1..13
apps/files_sharing/l10n/ta_LK.js on lines 1..13
apps/files_sharing/l10n/ur_PK.js on lines 1..13
apps/files_versions/l10n/ru_RU.js on lines 1..13
apps/updatenotification/l10n/lv.js on lines 1..13
core/l10n/sv_SE.js on lines 1..13
lib/l10n/hi.js on lines 1..13
settings/l10n/my_MM.js on lines 1..13

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

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

OC.L10N.register(
    "comments",
    {
    "Type in a new comment..." : "අලුත් අදහසක් දක්වන්න",
    "Delete comment" : "අදහස මකන්න",
Severity: Major
Found in apps/comments/l10n/si_LK.js and 51 other locations - About 1 hr to fix
apps/comments/l10n/hy.js on lines 1..13
apps/comments/l10n/si.js on lines 1..13
apps/dav/l10n/af_ZA.js on lines 1..13
apps/dav/l10n/ar.js on lines 1..13
apps/dav/l10n/bg_BG.js on lines 1..13
apps/dav/l10n/cs_CZ.js on lines 1..13
apps/dav/l10n/de.js on lines 1..13
apps/dav/l10n/de_CH.js on lines 1..13
apps/dav/l10n/de_DE.js on lines 1..13
apps/dav/l10n/el.js on lines 1..13
apps/dav/l10n/en_GB.js on lines 1..13
apps/dav/l10n/es.js on lines 1..13
apps/dav/l10n/fr.js on lines 1..13
apps/dav/l10n/gl.js on lines 1..13
apps/dav/l10n/he.js on lines 1..13
apps/dav/l10n/hu_HU.js on lines 1..13
apps/dav/l10n/id.js on lines 1..13
apps/dav/l10n/it.js on lines 1..13
apps/dav/l10n/ko.js on lines 1..13
apps/dav/l10n/lt_LT.js on lines 1..13
apps/dav/l10n/pl.js on lines 1..13
apps/dav/l10n/pl_PL.js on lines 1..13
apps/dav/l10n/pt_BR.js on lines 1..13
apps/dav/l10n/pt_PT.js on lines 1..13
apps/dav/l10n/ru.js on lines 1..13
apps/dav/l10n/ru_RU.js on lines 1..13
apps/dav/l10n/si.js on lines 1..13
apps/dav/l10n/si_LK.js on lines 1..13
apps/dav/l10n/sq.js on lines 1..13
apps/dav/l10n/sv.js on lines 1..13
apps/dav/l10n/th_TH.js on lines 1..13
apps/dav/l10n/tr.js on lines 1..13
apps/dav/l10n/ug.js on lines 1..13
apps/dav/l10n/zh_CN.js on lines 1..13
apps/dav/l10n/zh_TW.js on lines 1..13
apps/federation/l10n/hr.js on lines 1..13
apps/federation/l10n/vi.js on lines 1..13
apps/files/l10n/te.js on lines 1..13
apps/files/l10n/tr_TR.js on lines 1..13
apps/files_external/l10n/bn_IN.js on lines 1..13
apps/files_external/l10n/es_ES.js on lines 1..13
apps/files_external/l10n/ku_IQ.js on lines 1..13
apps/files_sharing/l10n/hi.js on lines 1..13
apps/files_sharing/l10n/nds.js on lines 1..13
apps/files_sharing/l10n/ta_LK.js on lines 1..13
apps/files_sharing/l10n/ur_PK.js on lines 1..13
apps/files_versions/l10n/ru_RU.js on lines 1..13
apps/updatenotification/l10n/lv.js on lines 1..13
core/l10n/sv_SE.js on lines 1..13
lib/l10n/hi.js on lines 1..13
settings/l10n/my_MM.js on lines 1..13

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

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

OC.L10N.register(
    "federation",
    {
    "Server added to the list of trusted ownClouds" : "Server je dodan na popis povjerljivih ownCloud servera",
    "Server is already in the list of trusted servers." : "Server već je na popisu povjerljivih servera.",
Severity: Major
Found in apps/federation/l10n/hr.js and 51 other locations - About 1 hr to fix
apps/comments/l10n/hy.js on lines 1..13
apps/comments/l10n/si.js on lines 1..13
apps/comments/l10n/si_LK.js on lines 1..13
apps/dav/l10n/af_ZA.js on lines 1..13
apps/dav/l10n/ar.js on lines 1..13
apps/dav/l10n/bg_BG.js on lines 1..13
apps/dav/l10n/cs_CZ.js on lines 1..13
apps/dav/l10n/de.js on lines 1..13
apps/dav/l10n/de_CH.js on lines 1..13
apps/dav/l10n/de_DE.js on lines 1..13
apps/dav/l10n/el.js on lines 1..13
apps/dav/l10n/en_GB.js on lines 1..13
apps/dav/l10n/es.js on lines 1..13
apps/dav/l10n/fr.js on lines 1..13
apps/dav/l10n/gl.js on lines 1..13
apps/dav/l10n/he.js on lines 1..13
apps/dav/l10n/hu_HU.js on lines 1..13
apps/dav/l10n/id.js on lines 1..13
apps/dav/l10n/it.js on lines 1..13
apps/dav/l10n/ko.js on lines 1..13
apps/dav/l10n/lt_LT.js on lines 1..13
apps/dav/l10n/pl.js on lines 1..13
apps/dav/l10n/pl_PL.js on lines 1..13
apps/dav/l10n/pt_BR.js on lines 1..13
apps/dav/l10n/pt_PT.js on lines 1..13
apps/dav/l10n/ru.js on lines 1..13
apps/dav/l10n/ru_RU.js on lines 1..13
apps/dav/l10n/si.js on lines 1..13
apps/dav/l10n/si_LK.js on lines 1..13
apps/dav/l10n/sq.js on lines 1..13
apps/dav/l10n/sv.js on lines 1..13
apps/dav/l10n/th_TH.js on lines 1..13
apps/dav/l10n/tr.js on lines 1..13
apps/dav/l10n/ug.js on lines 1..13
apps/dav/l10n/zh_CN.js on lines 1..13
apps/dav/l10n/zh_TW.js on lines 1..13
apps/federation/l10n/vi.js on lines 1..13
apps/files/l10n/te.js on lines 1..13
apps/files/l10n/tr_TR.js on lines 1..13
apps/files_external/l10n/bn_IN.js on lines 1..13
apps/files_external/l10n/es_ES.js on lines 1..13
apps/files_external/l10n/ku_IQ.js on lines 1..13
apps/files_sharing/l10n/hi.js on lines 1..13
apps/files_sharing/l10n/nds.js on lines 1..13
apps/files_sharing/l10n/ta_LK.js on lines 1..13
apps/files_sharing/l10n/ur_PK.js on lines 1..13
apps/files_versions/l10n/ru_RU.js on lines 1..13
apps/updatenotification/l10n/lv.js on lines 1..13
core/l10n/sv_SE.js on lines 1..13
lib/l10n/hi.js on lines 1..13
settings/l10n/my_MM.js on lines 1..13

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

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Geburtstage Deiner Kontakte",
    "User unknown" : "Unbekannter Benutzer",
Severity: Major
Found in apps/dav/l10n/de_CH.js and 51 other locations - About 1 hr to fix
apps/comments/l10n/hy.js on lines 1..13
apps/comments/l10n/si.js on lines 1..13
apps/comments/l10n/si_LK.js on lines 1..13
apps/dav/l10n/af_ZA.js on lines 1..13
apps/dav/l10n/ar.js on lines 1..13
apps/dav/l10n/bg_BG.js on lines 1..13
apps/dav/l10n/cs_CZ.js on lines 1..13
apps/dav/l10n/de.js on lines 1..13
apps/dav/l10n/de_DE.js on lines 1..13
apps/dav/l10n/el.js on lines 1..13
apps/dav/l10n/en_GB.js on lines 1..13
apps/dav/l10n/es.js on lines 1..13
apps/dav/l10n/fr.js on lines 1..13
apps/dav/l10n/gl.js on lines 1..13
apps/dav/l10n/he.js on lines 1..13
apps/dav/l10n/hu_HU.js on lines 1..13
apps/dav/l10n/id.js on lines 1..13
apps/dav/l10n/it.js on lines 1..13
apps/dav/l10n/ko.js on lines 1..13
apps/dav/l10n/lt_LT.js on lines 1..13
apps/dav/l10n/pl.js on lines 1..13
apps/dav/l10n/pl_PL.js on lines 1..13
apps/dav/l10n/pt_BR.js on lines 1..13
apps/dav/l10n/pt_PT.js on lines 1..13
apps/dav/l10n/ru.js on lines 1..13
apps/dav/l10n/ru_RU.js on lines 1..13
apps/dav/l10n/si.js on lines 1..13
apps/dav/l10n/si_LK.js on lines 1..13
apps/dav/l10n/sq.js on lines 1..13
apps/dav/l10n/sv.js on lines 1..13
apps/dav/l10n/th_TH.js on lines 1..13
apps/dav/l10n/tr.js on lines 1..13
apps/dav/l10n/ug.js on lines 1..13
apps/dav/l10n/zh_CN.js on lines 1..13
apps/dav/l10n/zh_TW.js on lines 1..13
apps/federation/l10n/hr.js on lines 1..13
apps/federation/l10n/vi.js on lines 1..13
apps/files/l10n/te.js on lines 1..13
apps/files/l10n/tr_TR.js on lines 1..13
apps/files_external/l10n/bn_IN.js on lines 1..13
apps/files_external/l10n/es_ES.js on lines 1..13
apps/files_external/l10n/ku_IQ.js on lines 1..13
apps/files_sharing/l10n/hi.js on lines 1..13
apps/files_sharing/l10n/nds.js on lines 1..13
apps/files_sharing/l10n/ta_LK.js on lines 1..13
apps/files_sharing/l10n/ur_PK.js on lines 1..13
apps/files_versions/l10n/ru_RU.js on lines 1..13
apps/updatenotification/l10n/lv.js on lines 1..13
core/l10n/sv_SE.js on lines 1..13
lib/l10n/hi.js on lines 1..13
settings/l10n/my_MM.js on lines 1..13

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

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

OC.L10N.register(
    "federation",
    {
    "Server added to the list of trusted ownClouds" : "Máy chủ đã được thêm vào danh sách các máy chủ ownCloud tin tưởng",
    "Server is already in the list of trusted servers." : "Máy chủ sẵn sàng trong danh sách các máy chủ tin tưởng",
Severity: Major
Found in apps/federation/l10n/vi.js and 51 other locations - About 1 hr to fix
apps/comments/l10n/hy.js on lines 1..13
apps/comments/l10n/si.js on lines 1..13
apps/comments/l10n/si_LK.js on lines 1..13
apps/dav/l10n/af_ZA.js on lines 1..13
apps/dav/l10n/ar.js on lines 1..13
apps/dav/l10n/bg_BG.js on lines 1..13
apps/dav/l10n/cs_CZ.js on lines 1..13
apps/dav/l10n/de.js on lines 1..13
apps/dav/l10n/de_CH.js on lines 1..13
apps/dav/l10n/de_DE.js on lines 1..13
apps/dav/l10n/el.js on lines 1..13
apps/dav/l10n/en_GB.js on lines 1..13
apps/dav/l10n/es.js on lines 1..13
apps/dav/l10n/fr.js on lines 1..13
apps/dav/l10n/gl.js on lines 1..13
apps/dav/l10n/he.js on lines 1..13
apps/dav/l10n/hu_HU.js on lines 1..13
apps/dav/l10n/id.js on lines 1..13
apps/dav/l10n/it.js on lines 1..13
apps/dav/l10n/ko.js on lines 1..13
apps/dav/l10n/lt_LT.js on lines 1..13
apps/dav/l10n/pl.js on lines 1..13
apps/dav/l10n/pl_PL.js on lines 1..13
apps/dav/l10n/pt_BR.js on lines 1..13
apps/dav/l10n/pt_PT.js on lines 1..13
apps/dav/l10n/ru.js on lines 1..13
apps/dav/l10n/ru_RU.js on lines 1..13
apps/dav/l10n/si.js on lines 1..13
apps/dav/l10n/si_LK.js on lines 1..13
apps/dav/l10n/sq.js on lines 1..13
apps/dav/l10n/sv.js on lines 1..13
apps/dav/l10n/th_TH.js on lines 1..13
apps/dav/l10n/tr.js on lines 1..13
apps/dav/l10n/ug.js on lines 1..13
apps/dav/l10n/zh_CN.js on lines 1..13
apps/dav/l10n/zh_TW.js on lines 1..13
apps/federation/l10n/hr.js on lines 1..13
apps/files/l10n/te.js on lines 1..13
apps/files/l10n/tr_TR.js on lines 1..13
apps/files_external/l10n/bn_IN.js on lines 1..13
apps/files_external/l10n/es_ES.js on lines 1..13
apps/files_external/l10n/ku_IQ.js on lines 1..13
apps/files_sharing/l10n/hi.js on lines 1..13
apps/files_sharing/l10n/nds.js on lines 1..13
apps/files_sharing/l10n/ta_LK.js on lines 1..13
apps/files_sharing/l10n/ur_PK.js on lines 1..13
apps/files_versions/l10n/ru_RU.js on lines 1..13
apps/updatenotification/l10n/lv.js on lines 1..13
core/l10n/sv_SE.js on lines 1..13
lib/l10n/hi.js on lines 1..13
settings/l10n/my_MM.js on lines 1..13

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

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

OC.L10N.register(
    "files_sharing",
    {
    "Cancel" : "Abbrechen",
    "Invalid ownCloud url" : "Fehlerhafte ownCloud URL",
Severity: Major
Found in apps/files_sharing/l10n/nds.js and 51 other locations - About 1 hr to fix
apps/comments/l10n/hy.js on lines 1..13
apps/comments/l10n/si.js on lines 1..13
apps/comments/l10n/si_LK.js on lines 1..13
apps/dav/l10n/af_ZA.js on lines 1..13
apps/dav/l10n/ar.js on lines 1..13
apps/dav/l10n/bg_BG.js on lines 1..13
apps/dav/l10n/cs_CZ.js on lines 1..13
apps/dav/l10n/de.js on lines 1..13
apps/dav/l10n/de_CH.js on lines 1..13
apps/dav/l10n/de_DE.js on lines 1..13
apps/dav/l10n/el.js on lines 1..13
apps/dav/l10n/en_GB.js on lines 1..13
apps/dav/l10n/es.js on lines 1..13
apps/dav/l10n/fr.js on lines 1..13
apps/dav/l10n/gl.js on lines 1..13
apps/dav/l10n/he.js on lines 1..13
apps/dav/l10n/hu_HU.js on lines 1..13
apps/dav/l10n/id.js on lines 1..13
apps/dav/l10n/it.js on lines 1..13
apps/dav/l10n/ko.js on lines 1..13
apps/dav/l10n/lt_LT.js on lines 1..13
apps/dav/l10n/pl.js on lines 1..13
apps/dav/l10n/pl_PL.js on lines 1..13
apps/dav/l10n/pt_BR.js on lines 1..13
apps/dav/l10n/pt_PT.js on lines 1..13
apps/dav/l10n/ru.js on lines 1..13
apps/dav/l10n/ru_RU.js on lines 1..13
apps/dav/l10n/si.js on lines 1..13
apps/dav/l10n/si_LK.js on lines 1..13
apps/dav/l10n/sq.js on lines 1..13
apps/dav/l10n/sv.js on lines 1..13
apps/dav/l10n/th_TH.js on lines 1..13
apps/dav/l10n/tr.js on lines 1..13
apps/dav/l10n/ug.js on lines 1..13
apps/dav/l10n/zh_CN.js on lines 1..13
apps/dav/l10n/zh_TW.js on lines 1..13
apps/federation/l10n/hr.js on lines 1..13
apps/federation/l10n/vi.js on lines 1..13
apps/files/l10n/te.js on lines 1..13
apps/files/l10n/tr_TR.js on lines 1..13
apps/files_external/l10n/bn_IN.js on lines 1..13
apps/files_external/l10n/es_ES.js on lines 1..13
apps/files_external/l10n/ku_IQ.js on lines 1..13
apps/files_sharing/l10n/hi.js on lines 1..13
apps/files_sharing/l10n/ta_LK.js on lines 1..13
apps/files_sharing/l10n/ur_PK.js on lines 1..13
apps/files_versions/l10n/ru_RU.js on lines 1..13
apps/updatenotification/l10n/lv.js on lines 1..13
core/l10n/sv_SE.js on lines 1..13
lib/l10n/hi.js on lines 1..13
settings/l10n/my_MM.js on lines 1..13

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

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