owncloud/core

View on GitHub

Showing 1,268 of 4,503 total issues

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

OC.L10N.register(
    "files_external",
    {
    "External storage" : "سىرتقى ساقلىغۇچ",
    "Personal" : "شەخسىي",
Severity: Major
Found in apps/files_external/l10n/ug.js and 6 other locations - About 3 hrs to fix
apps/federatedfilesharing/l10n/sk_SK.js on lines 1..24
apps/files_external/l10n/ka_GE.js on lines 1..24
apps/systemtags/l10n/eo.js on lines 1..24
lib/l10n/es_CL.js on lines 1..24
lib/l10n/ta.js on lines 1..24
lib/l10n/ta_LK.js on lines 1..24

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 113.

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

OC.L10N.register(
    "lib",
    {
    "today" : "இன்று",
    "yesterday" : "நேற்று",
Severity: Major
Found in lib/l10n/ta.js and 6 other locations - About 3 hrs to fix
apps/federatedfilesharing/l10n/sk_SK.js on lines 1..24
apps/files_external/l10n/ka_GE.js on lines 1..24
apps/files_external/l10n/ug.js on lines 1..24
apps/systemtags/l10n/eo.js on lines 1..24
lib/l10n/es_CL.js on lines 1..24
lib/l10n/ta_LK.js on lines 1..24

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 113.

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Loading..." : "Načítava sa...",
    "Invalid Federated Cloud ID" : "Neplatné združené Cloud ID",
Severity: Major
Found in apps/federatedfilesharing/l10n/sk_SK.js and 6 other locations - About 3 hrs to fix
apps/files_external/l10n/ka_GE.js on lines 1..24
apps/files_external/l10n/ug.js on lines 1..24
apps/systemtags/l10n/eo.js on lines 1..24
lib/l10n/es_CL.js on lines 1..24
lib/l10n/ta.js on lines 1..24
lib/l10n/ta_LK.js on lines 1..24

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 113.

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

OC.L10N.register(
    "files_external",
    {
    "External storage" : "ექსტერნალ საცავი",
    "Personal" : "პირადი",
Severity: Major
Found in apps/files_external/l10n/ka_GE.js and 6 other locations - About 3 hrs to fix
apps/federatedfilesharing/l10n/sk_SK.js on lines 1..24
apps/files_external/l10n/ug.js on lines 1..24
apps/systemtags/l10n/eo.js on lines 1..24
lib/l10n/es_CL.js on lines 1..24
lib/l10n/ta.js on lines 1..24
lib/l10n/ta_LK.js on lines 1..24

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 113.

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

OC.L10N.register(
    "lib",
    {
    "today" : "இன்று",
    "yesterday" : "நேற்று",
Severity: Major
Found in lib/l10n/ta_LK.js and 6 other locations - About 3 hrs to fix
apps/federatedfilesharing/l10n/sk_SK.js on lines 1..24
apps/files_external/l10n/ka_GE.js on lines 1..24
apps/files_external/l10n/ug.js on lines 1..24
apps/systemtags/l10n/eo.js on lines 1..24
lib/l10n/es_CL.js on lines 1..24
lib/l10n/ta.js on lines 1..24

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 113.

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

    var TEMPLATE_VERSION =
        '<li data-revision="{{versionId}}">' +
        '<div>' +
        '<div class="preview-container">' +
        '<img class="preview" src="{{previewUrl}}"/>' +
Severity: Major
Found in apps/files_versions/js/versionstabview.js and 1 other location - About 3 hrs to fix
apps/files_versions/js/versionstabview.js on lines 27..54

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

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

    var TEMPLATE_CURRENT =
        '<li data-revision="{{versionId}}" class="current-version">' +
        '<div>' +
        '<div class="preview-container">' +
        '<img class="preview" src="{{previewUrl}}"/>' +
Severity: Major
Found in apps/files_versions/js/versionstabview.js and 1 other location - About 3 hrs to fix
apps/files_versions/js/versionstabview.js on lines 56..83

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

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

        if ($reshares === false) {
            //Special case for old shares created via the web UI
            $or1 = $qb->expr()->andX(
                $qb->expr()->eq('uid_owner', $qb->createNamedParameter($userId)),
                $qb->expr()->isNull('uid_initiator')
Severity: Major
Found in apps/federatedfilesharing/lib/FederatedShareProvider.php and 1 other location - About 3 hrs to fix
apps/federatedfilesharing/lib/FederatedShareProvider.php on lines 628..648

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

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

        if ($reshares === false) {
            //Special case for old shares created via the web UI
            $or1 = $qb->expr()->andX(
                $qb->expr()->eq('uid_owner', $qb->createNamedParameter($userId)),
                $qb->expr()->isNull('uid_initiator')
Severity: Major
Found in apps/federatedfilesharing/lib/FederatedShareProvider.php and 1 other location - About 3 hrs to fix
apps/federatedfilesharing/lib/FederatedShareProvider.php on lines 679..699

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

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

OC.L10N.register(
    "comments",
    {
    "Type in a new comment..." : "Ierakstīt šeit jaunu komentāru...",
    "Delete comment" : "Dzēst komentāru",
Severity: Major
Found in apps/comments/l10n/lv.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/ro.js on lines 1..23
apps/federatedfilesharing/l10n/id.js on lines 1..23
apps/files/l10n/es_CL.js on lines 1..23
apps/files/l10n/mn.js on lines 1..23
apps/files_external/l10n/km.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
core/l10n/mn.js on lines 1..23
lib/l10n/ia.js on lines 1..23
settings/l10n/ku_IQ.js on lines 1..23
settings/l10n/pa.js on lines 1..23

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

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

OC.L10N.register(
    "files_external",
    {
    "External storage" : "ឃ្លាំងផ្ទុក​ខាងក្រៅ",
    "Personal" : "ផ្ទាល់​ខ្លួន",
Severity: Major
Found in apps/files_external/l10n/km.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/lv.js on lines 1..23
apps/comments/l10n/ro.js on lines 1..23
apps/federatedfilesharing/l10n/id.js on lines 1..23
apps/files/l10n/es_CL.js on lines 1..23
apps/files/l10n/mn.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
core/l10n/mn.js on lines 1..23
lib/l10n/ia.js on lines 1..23
settings/l10n/ku_IQ.js on lines 1..23
settings/l10n/pa.js on lines 1..23

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

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

OC.L10N.register(
    "files",
    {
    "Delete" : "Устгах",
    "Files" : "Файлууд",
Severity: Major
Found in apps/files/l10n/mn.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/lv.js on lines 1..23
apps/comments/l10n/ro.js on lines 1..23
apps/federatedfilesharing/l10n/id.js on lines 1..23
apps/files/l10n/es_CL.js on lines 1..23
apps/files_external/l10n/km.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
core/l10n/mn.js on lines 1..23
lib/l10n/ia.js on lines 1..23
settings/l10n/ku_IQ.js on lines 1..23
settings/l10n/pa.js on lines 1..23

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

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

OC.L10N.register(
    "files",
    {
    "Unknown error" : "Error desconocido",
    "Download" : "Descargar",
Severity: Major
Found in apps/files/l10n/es_CL.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/lv.js on lines 1..23
apps/comments/l10n/ro.js on lines 1..23
apps/federatedfilesharing/l10n/id.js on lines 1..23
apps/files/l10n/mn.js on lines 1..23
apps/files_external/l10n/km.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
core/l10n/mn.js on lines 1..23
lib/l10n/ia.js on lines 1..23
settings/l10n/ku_IQ.js on lines 1..23
settings/l10n/pa.js on lines 1..23

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

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

OC.L10N.register(
    "settings",
    {
    "Share" : "هاوبەشی کردن",
    "Invalid request" : "داواکارى نادروستە",
Severity: Major
Found in settings/l10n/ku_IQ.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/lv.js on lines 1..23
apps/comments/l10n/ro.js on lines 1..23
apps/federatedfilesharing/l10n/id.js on lines 1..23
apps/files/l10n/es_CL.js on lines 1..23
apps/files/l10n/mn.js on lines 1..23
apps/files_external/l10n/km.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
core/l10n/mn.js on lines 1..23
lib/l10n/ia.js on lines 1..23
settings/l10n/pa.js on lines 1..23

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

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

OC.L10N.register(
    "lib",
    {
    "Unknown filetype" : "Typo de file incognite",
    "Invalid image" : "Imagine invalide",
Severity: Major
Found in lib/l10n/ia.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/lv.js on lines 1..23
apps/comments/l10n/ro.js on lines 1..23
apps/federatedfilesharing/l10n/id.js on lines 1..23
apps/files/l10n/es_CL.js on lines 1..23
apps/files/l10n/mn.js on lines 1..23
apps/files_external/l10n/km.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
core/l10n/mn.js on lines 1..23
settings/l10n/ku_IQ.js on lines 1..23
settings/l10n/pa.js on lines 1..23

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

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

OC.L10N.register(
    "core",
    {
    "Sunday" : "Ням",
    "Monday" : "Даваа",
Severity: Major
Found in core/l10n/mn.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/lv.js on lines 1..23
apps/comments/l10n/ro.js on lines 1..23
apps/federatedfilesharing/l10n/id.js on lines 1..23
apps/files/l10n/es_CL.js on lines 1..23
apps/files/l10n/mn.js on lines 1..23
apps/files_external/l10n/km.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
lib/l10n/ia.js on lines 1..23
settings/l10n/ku_IQ.js on lines 1..23
settings/l10n/pa.js on lines 1..23

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

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

OC.L10N.register(
    "comments",
    {
    "Type in a new comment..." : "Scrie un comentariu nou...",
    "Delete comment" : "Șterge comentariul",
Severity: Major
Found in apps/comments/l10n/ro.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/lv.js on lines 1..23
apps/federatedfilesharing/l10n/id.js on lines 1..23
apps/files/l10n/es_CL.js on lines 1..23
apps/files/l10n/mn.js on lines 1..23
apps/files_external/l10n/km.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
core/l10n/mn.js on lines 1..23
lib/l10n/ia.js on lines 1..23
settings/l10n/ku_IQ.js on lines 1..23
settings/l10n/pa.js on lines 1..23

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Loading..." : "Memuat...",
    "Invalid Federated Cloud ID" : "Federated Cloud ID tidak sah",
Severity: Major
Found in apps/federatedfilesharing/l10n/id.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/lv.js on lines 1..23
apps/comments/l10n/ro.js on lines 1..23
apps/files/l10n/es_CL.js on lines 1..23
apps/files/l10n/mn.js on lines 1..23
apps/files_external/l10n/km.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
core/l10n/mn.js on lines 1..23
lib/l10n/ia.js on lines 1..23
settings/l10n/ku_IQ.js on lines 1..23
settings/l10n/pa.js on lines 1..23

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

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 (url) {
            var width = 600;
            var height = 400;
            var left = (screen.width/2)-(width/2);
            var top = (screen.height/2)-(height/2);
Severity: Major
Found in apps/federatedfilesharing/js/settings-personal-general.js and 1 other location - About 3 hrs to fix
core/js/sharedialoglinksocialview.js on lines 68..75

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

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

OC.L10N.register(
    "settings",
    {
    "Delete" : "ਹਟਾਓ",
    "Share" : "ਸਾਂਝਾ ਕਰੋ",
Severity: Major
Found in settings/l10n/pa.js and 11 other locations - About 3 hrs to fix
apps/comments/l10n/af_ZA.js on lines 1..23
apps/comments/l10n/lv.js on lines 1..23
apps/comments/l10n/ro.js on lines 1..23
apps/federatedfilesharing/l10n/id.js on lines 1..23
apps/files/l10n/es_CL.js on lines 1..23
apps/files/l10n/mn.js on lines 1..23
apps/files_external/l10n/km.js on lines 1..23
apps/files_external/l10n/si.js on lines 1..23
core/l10n/mn.js on lines 1..23
lib/l10n/ia.js on lines 1..23
settings/l10n/ku_IQ.js on lines 1..23

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

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