owncloud/core

View on GitHub

Showing 1,269 of 4,504 total issues

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

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 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 core/js/sharedialoglinksocialview.js and 1 other location - About 3 hrs to fix
apps/federatedfilesharing/js/settings-personal-general.js on lines 5..12

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

    $('#CheckboxLastLogin').click(function() {
        if ($('#CheckboxLastLogin').is(':checked')) {
            $("#userlist .lastLogin").show();
            OC.AppConfig.setValue('core', 'umgmt_show_last_login', 'true');
        } else {
Severity: Major
Found in settings/js/users/users.js and 6 other locations - About 3 hrs to fix
settings/js/users/users.js on lines 1009..1017
settings/js/users/users.js on lines 1023..1031
settings/js/users/users.js on lines 1037..1045
settings/js/users/users.js on lines 1067..1075
settings/js/users/users.js on lines 1081..1089
settings/js/users/users.js on lines 1111..1119

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

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

    $('#CheckboxEmailAddress').click(function() {
        if ($('#CheckboxEmailAddress').is(':checked')) {
            $("#userlist .mailAddress").show();
            OC.AppConfig.setValue('core', 'umgmt_show_email', 'true');
        } else {
Severity: Major
Found in settings/js/users/users.js and 6 other locations - About 3 hrs to fix
settings/js/users/users.js on lines 1009..1017
settings/js/users/users.js on lines 1023..1031
settings/js/users/users.js on lines 1037..1045
settings/js/users/users.js on lines 1053..1061
settings/js/users/users.js on lines 1081..1089
settings/js/users/users.js on lines 1111..1119

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

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

    $('#CheckboxStorageLocation').click(function() {
        if ($('#CheckboxStorageLocation').is(':checked')) {
            $("#userlist .storageLocation").show();
            OC.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true');
        } else {
Severity: Major
Found in settings/js/users/users.js and 6 other locations - About 3 hrs to fix
settings/js/users/users.js on lines 1009..1017
settings/js/users/users.js on lines 1037..1045
settings/js/users/users.js on lines 1053..1061
settings/js/users/users.js on lines 1067..1075
settings/js/users/users.js on lines 1081..1089
settings/js/users/users.js on lines 1111..1119

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

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

    $('#CheckboxIsEnabled').click(function () {
        if ($('#CheckboxIsEnabled').is(':checked')) {
            $("#userlist .enabled").show();
            OC.AppConfig.setValue('core', 'umgmt_show_is_enabled', 'true');
        } else {
Severity: Major
Found in settings/js/users/users.js and 6 other locations - About 3 hrs to fix
settings/js/users/users.js on lines 1023..1031
settings/js/users/users.js on lines 1037..1045
settings/js/users/users.js on lines 1053..1061
settings/js/users/users.js on lines 1067..1075
settings/js/users/users.js on lines 1081..1089
settings/js/users/users.js on lines 1111..1119

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

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

    $('#CheckboxUserBackend').click(function() {
        if ($('#CheckboxUserBackend').is(':checked')) {
            $("#userlist .userBackend").show();
            OC.AppConfig.setValue('core', 'umgmt_show_backend', 'true');
        } else {
Severity: Major
Found in settings/js/users/users.js and 6 other locations - About 3 hrs to fix
settings/js/users/users.js on lines 1009..1017
settings/js/users/users.js on lines 1023..1031
settings/js/users/users.js on lines 1037..1045
settings/js/users/users.js on lines 1053..1061
settings/js/users/users.js on lines 1067..1075
settings/js/users/users.js on lines 1111..1119

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

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

        $('#CheckboxCreationTime').click(function() {
                if ($('#CheckboxCreationTime').is(':checked')) {
                        $("#userlist .creationTime").show();
                        OC.AppConfig.setValue('core', 'umgmt_show_creation_time', 'true');
                } else {
Severity: Major
Found in settings/js/users/users.js and 6 other locations - About 3 hrs to fix
settings/js/users/users.js on lines 1009..1017
settings/js/users/users.js on lines 1023..1031
settings/js/users/users.js on lines 1053..1061
settings/js/users/users.js on lines 1067..1075
settings/js/users/users.js on lines 1081..1089
settings/js/users/users.js on lines 1111..1119

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

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

    $('#CheckboxQuota').click(function() {
        if ($('#CheckboxQuota').is(':checked')) {
            $("#userlist .quota").show();
            OC.AppConfig.setValue('core', 'umgmt_show_quota', 'true');
        } else {
Severity: Major
Found in settings/js/users/users.js and 6 other locations - About 3 hrs to fix
settings/js/users/users.js on lines 1009..1017
settings/js/users/users.js on lines 1023..1031
settings/js/users/users.js on lines 1037..1045
settings/js/users/users.js on lines 1053..1061
settings/js/users/users.js on lines 1067..1075
settings/js/users/users.js on lines 1081..1089

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

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

    attach: function (targetName, targetObject, options) {
        var plugins = this.getPlugins(targetName);
        plugins = this.sortPluginsByPriority(plugins);
        for (var i = 0; i < plugins.length; i++) {
            var plugin = plugins[i].plugin;
Severity: Major
Found in core/js/js.js and 1 other location - About 3 hrs to fix
core/js/js.js on lines 947..956

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

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

    detach: function (targetName, targetObject, options) {
        var plugins = this.getPlugins(targetName);
        plugins = this.sortPluginsByPriority(plugins);
        for (var i = 0; i < plugins.length; i++) {
            var plugin = plugins[i].plugin;
Severity: Major
Found in core/js/js.js and 1 other location - About 3 hrs to fix
core/js/js.js on lines 929..938

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

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 setUserConfig() {
        $acceptedKeys = [];
        $rejectedKeys = [];

        $params = $this->getUserRequestParams();
apps/files_sharing/lib/Controller/PersonalSettingsController.php on lines 55..81

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

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 setUserConfig() {
        $acceptedKeys = [];
        $rejectedKeys = [];

        $params = $this->getUserRequestParams();
apps/federatedfilesharing/lib/Controller/SharingPersonalSettingsController.php on lines 54..80

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

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

OC.L10N.register(
    "core",
    {
    "Please select a file." : "Tulung milih berkas.",
    "File is too big" : "Berkas kegedhen",
Severity: Major
Found in core/l10n/jv.js and 5 other locations - About 3 hrs to fix
apps/comments/l10n/et_EE.js on lines 1..22
apps/federatedfilesharing/l10n/mk.js on lines 1..22
apps/files_external/l10n/de_AT.js on lines 1..22
lib/l10n/kn.js on lines 1..22
lib/l10n/sr@latin.js on lines 1..22

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

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

OC.L10N.register(
    "comments",
    {
    "Type in a new comment..." : "Kirjuta uus komentaar...",
    "Delete comment" : "Kustuta kommentaar",
Severity: Major
Found in apps/comments/l10n/et_EE.js and 5 other locations - About 3 hrs to fix
apps/federatedfilesharing/l10n/mk.js on lines 1..22
apps/files_external/l10n/de_AT.js on lines 1..22
core/l10n/jv.js on lines 1..22
lib/l10n/kn.js on lines 1..22
lib/l10n/sr@latin.js on lines 1..22

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

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

OC.L10N.register(
    "lib",
    {
    "Unknown filetype" : "ಅಪರಿಚಿತ ಕಡತ ಮಾದರಿ",
    "Invalid image" : "ಅಸಾಮರ್ಥ್ಯ ಚಿತ್ರ",
Severity: Major
Found in lib/l10n/kn.js and 5 other locations - About 3 hrs to fix
apps/comments/l10n/et_EE.js on lines 1..22
apps/federatedfilesharing/l10n/mk.js on lines 1..22
apps/files_external/l10n/de_AT.js on lines 1..22
core/l10n/jv.js on lines 1..22
lib/l10n/sr@latin.js on lines 1..22

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

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

OC.L10N.register(
    "lib",
    {
    "Unknown filetype" : "Nepoznat tip fajla",
    "Invalid image" : "Neispravna slika",
Severity: Major
Found in lib/l10n/sr@latin.js and 5 other locations - About 3 hrs to fix
apps/comments/l10n/et_EE.js on lines 1..22
apps/federatedfilesharing/l10n/mk.js on lines 1..22
apps/files_external/l10n/de_AT.js on lines 1..22
core/l10n/jv.js on lines 1..22
lib/l10n/kn.js on lines 1..22

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

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

OC.L10N.register(
    "files_external",
    {
    "Step 1 failed. Exception: %s" : "Schritt 1 ist fehlgeschlagen. Ausnahme: %s",
    "Step 2 failed. Exception: %s" : "Schritt 2 ist fehlgeschlagen. Ausnahme: %s",
Severity: Major
Found in apps/files_external/l10n/de_AT.js and 5 other locations - About 3 hrs to fix
apps/comments/l10n/et_EE.js on lines 1..22
apps/federatedfilesharing/l10n/mk.js on lines 1..22
core/l10n/jv.js on lines 1..22
lib/l10n/kn.js on lines 1..22
lib/l10n/sr@latin.js on lines 1..22

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

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