owncloud/core

View on GitHub

Showing 1,269 of 4,504 total issues

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

OC.L10N.register(
    "federation",
    {
    "Server added to the list of trusted ownClouds" : "伺服器已添加到可信的ownClouds列表中",
    "Server is already in the list of trusted servers." : "伺服器已在受可信的伺服器列表中。",
Severity: Major
Found in apps/federation/l10n/zh_TW.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "השרת נוסף לרשימת ה- ownCloud המהימנים",
    "Server is already in the list of trusted servers." : "השרת כבר נמצא ברשימת השרתים המהימנים.",
Severity: Major
Found in apps/federation/l10n/he.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Servidor apondut a la lista dels ownClouds fisables",
    "Server is already in the list of trusted servers." : "Lo servidor es ja dins la lista dels ownClouds fisables.",
Severity: Major
Found in apps/federation/l10n/oc.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Сервер добавлен в список доверенных серверов ownClowd ",
    "Server is already in the list of trusted servers." : "Сервер уже в списке доверенных серверов.",
Severity: Major
Found in apps/federation/l10n/ru.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Servidor añadido a la lista de confianza de ownCloud",
    "Server is already in the list of trusted servers." : "El Servidor ya está en la lista de servidores de confianza.",
Severity: Major
Found in apps/federation/l10n/es_AR.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Servidor adicionado à lista de ownClouds confiáveis",
    "Server is already in the list of trusted servers." : "O servidor já está na lista de servidores confiáveis.",
Severity: Major
Found in apps/federation/l10n/pt_BR.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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 adăugat la lista serverelor ownCloud de încredere",
    "Server is already in the list of trusted servers." : "Serverul este deja pe lista celor de încredere.",
Severity: Major
Found in apps/federation/l10n/ro.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Szerver hozzáadva a megbízható ownCloud szerverekhez",
    "Server is already in the list of trusted servers." : "A szerver már a megbízható szerverek közt van.",
Severity: Major
Found in apps/federation/l10n/hu_HU.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Der Server wurde in die Liste der vertrauenswürdigen Server aufgenommen",
    "Server is already in the list of trusted servers." : "Server ist bereits in der Liste der vertrauenswürdigen Servern.",
Severity: Major
Found in apps/federation/l10n/de_CH.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "تمت إضافة الخادم إلى قائمة مضيفات ownCloud الموثوق بها",
    "Server is already in the list of trusted servers." : "الخادم موجود بالفعل في قائمة مضيفات ownCloud الموثوق بها",
Severity: Major
Found in apps/federation/l10n/ar.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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 toegevoegd aan de lijst van vertrouwde ownClouds",
    "Server is already in the list of trusted servers." : "Server bestaat reeds in de lijst van vertrouwde servers.",
Severity: Major
Found in apps/federation/l10n/nl.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Zerbitzaria ownCloud fidagarrien zerrendan sartu da",
    "Server is already in the list of trusted servers." : "Zerbitzaria dagoeneko ownCloud fidagarrien zerrendan dago",
Severity: Major
Found in apps/federation/l10n/eu.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Servidor añadido a la lista de ownClouds en los que se confía",
    "Server is already in the list of trusted servers." : "El servidor ya está en la lista de servidores confiables.",
Severity: Major
Found in apps/federation/l10n/es.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Сервер добавлен в список доверенных серверов ownClowd ",
    "Server is already in the list of trusted servers." : "Сервер уже в списке доверенных серверов.",
Severity: Major
Found in apps/federation/l10n/ru_RU.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Serveren er føjet til listen over sikre ownCloud servere",
    "Server is already in the list of trusted servers." : "Serveren står allerede på listen over sikre servere",
Severity: Major
Found in apps/federation/l10n/da.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Servidor afegit a la llista de confiança ownCloud",
    "Server is already in the list of trusted servers." : "El servidor ja està a la llista de servidors de confiança",
Severity: Major
Found in apps/federation/l10n/ca.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Ο διακομιστής προστέθηκε στην λίστα έμπιστων ownCloud",
    "Server is already in the list of trusted servers." : "Ο διακομιστής περιλαμβάνεται ήδη στην λίστα των έμπιστων ownCloud",
Severity: Major
Found in apps/federation/l10n/el.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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",
    {
    "Unknown error" : "غیر معروف خرابی",
    "Close" : "بند ",
Severity: Major
Found in apps/files/l10n/ur_PK.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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 přidán do seznamu důvěryhodných ownCloudů",
    "Server is already in the list of trusted servers." : "Server je již přidán na seznam důvěryhodných serverů.",
Severity: Major
Found in apps/federation/l10n/cs_CZ.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/sv.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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" : "Servern är tillagd till listan över pålitliga ownCloud-servrar",
    "Server is already in the list of trusted servers." : "Servern finns redan i listan",
Severity: Major
Found in apps/federation/l10n/sv.js and 51 other locations - About 1 hr to fix
apps/federation/l10n/af_ZA.js on lines 1..16
apps/federation/l10n/ar.js on lines 1..16
apps/federation/l10n/bg_BG.js on lines 1..16
apps/federation/l10n/ca.js on lines 1..16
apps/federation/l10n/cs_CZ.js on lines 1..16
apps/federation/l10n/da.js on lines 1..16
apps/federation/l10n/de.js on lines 1..16
apps/federation/l10n/de_CH.js on lines 1..16
apps/federation/l10n/de_DE.js on lines 1..16
apps/federation/l10n/el.js on lines 1..16
apps/federation/l10n/en_GB.js on lines 1..16
apps/federation/l10n/es.js on lines 1..16
apps/federation/l10n/es_AR.js on lines 1..16
apps/federation/l10n/es_MX.js on lines 1..16
apps/federation/l10n/eu.js on lines 1..16
apps/federation/l10n/fi_FI.js on lines 1..16
apps/federation/l10n/fr.js on lines 1..16
apps/federation/l10n/gl.js on lines 1..16
apps/federation/l10n/he.js on lines 1..16
apps/federation/l10n/hu_HU.js on lines 1..16
apps/federation/l10n/id.js on lines 1..16
apps/federation/l10n/is.js on lines 1..16
apps/federation/l10n/it.js on lines 1..16
apps/federation/l10n/ja.js on lines 1..16
apps/federation/l10n/ko.js on lines 1..16
apps/federation/l10n/lb.js on lines 1..16
apps/federation/l10n/nb_NO.js on lines 1..16
apps/federation/l10n/nl.js on lines 1..16
apps/federation/l10n/nn_NO.js on lines 1..16
apps/federation/l10n/oc.js on lines 1..16
apps/federation/l10n/pl.js on lines 1..16
apps/federation/l10n/pt_BR.js on lines 1..16
apps/federation/l10n/pt_PT.js on lines 1..16
apps/federation/l10n/ro.js on lines 1..16
apps/federation/l10n/ru.js on lines 1..16
apps/federation/l10n/ru_RU.js on lines 1..16
apps/federation/l10n/sl.js on lines 1..16
apps/federation/l10n/sq.js on lines 1..16
apps/federation/l10n/sr.js on lines 1..16
apps/federation/l10n/th_TH.js on lines 1..16
apps/federation/l10n/tr.js on lines 1..16
apps/federation/l10n/ug.js on lines 1..16
apps/federation/l10n/uk.js on lines 1..16
apps/federation/l10n/zh_CN.js on lines 1..16
apps/federation/l10n/zh_TW.js on lines 1..16
apps/files/l10n/ur_PK.js on lines 1..16
apps/files_external/l10n/ia.js on lines 1..16
apps/files_sharing/l10n/ms_MY.js on lines 1..16
core/l10n/es_ES.js on lines 1..16
core/l10n/gu.js on lines 1..16
lib/l10n/my_MM.js on lines 1..16

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

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