owncloud/core

View on GitHub

Showing 4,504 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/uk.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/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" : "Palvelin lisätty luotettujen ownCloudien luetteloon",
    "Server is already in the list of trusted servers." : "Palvelin on jo luotettujen palvelimien luettelossa.",
Severity: Major
Found in apps/federation/l10n/fi_FI.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/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." : "信頼済サイトとしてすでに登録されています。",
Severity: Major
Found in apps/federation/l10n/ja.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/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" : "Сървърът е добавен в списъка с доверени облаци ownClouds",
    "Server is already in the list of trusted servers." : "Сървърът вече е в списъка с доверени сървъри.",
Severity: Major
Found in apps/federation/l10n/bg_BG.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/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" : "Engadiuse o servidor na lista de ownClouds nos que se confía",
    "Server is already in the list of trusted servers." : "O servidor xa está na lista de servidores fiábeis.",
Severity: Major
Found in apps/federation/l10n/gl.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/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" : "Strežnik je dodan na seznam potrjenih strežnikov ownCloud",
    "Server is already in the list of trusted servers." : "Strežnik je že na seznamu potrjenih strežnikov.",
Severity: Major
Found in apps/federation/l10n/sl.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/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 ditambahkan ke daftar ownCloud yang dipercaya",
    "Server is already in the list of trusted servers." : "Server sudah ada pada daftar server terpercaya",
Severity: Major
Found in apps/federation/l10n/id.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/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" : "Bediener tot die lys van vertroude ownClouds toegevoeg",
    "Server is already in the list of trusted servers." : "Bediener is reeds in die lys van vertroude bedieners.",
Severity: Major
Found in apps/federation/l10n/af_ZA.js and 51 other locations - About 1 hr to fix
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/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(
    "core",
    {
    "Settings" : "Preferencias",
    "Saving..." : "Guardando...",
Severity: Major
Found in core/l10n/es_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.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/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 3 locations. Consider refactoring.
Open

            this.$el.find('.expiration-remote:not(.hasDatepicker)').each(function(){
                self._setDatepicker(this, {
                    maxDate  : self.configModel.getDefaultExpireDateRemote(),
                    enforced : self.configModel.isDefaultExpireDateRemoteEnforced()
                });
Severity: Major
Found in core/js/sharedialogshareelistview.js and 2 other locations - About 1 hr to fix
core/js/sharedialogshareelistview.js on lines 315..320
core/js/sharedialogshareelistview.js on lines 322..327

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

            this.$el.find('.expiration-user:not(.hasDatepicker)').each(function(){
                self._setDatepicker(this, {
                    maxDate  : self.configModel.getDefaultExpireDateUser(),
                    enforced : self.configModel.isDefaultExpireDateUserEnforced()
                });
Severity: Major
Found in core/js/sharedialogshareelistview.js and 2 other locations - About 1 hr to fix
core/js/sharedialogshareelistview.js on lines 322..327
core/js/sharedialogshareelistview.js on lines 329..334

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

        _onAddVersionModel: function(model) {
            // add version to the list (collection child)
            var $el = $(this.versionTemplate(this._formatVersion(model)));
            this.$versionsContainer.append($el);
            $el.find('.has-tooltip').tooltip();
Severity: Major
Found in apps/files_versions/js/versionstabview.js and 1 other location - About 1 hr to fix
apps/files_versions/js/versionstabview.js on lines 259..264

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

            this.$el.find('.expiration-group:not(.hasDatepicker)').each(function(){
                self._setDatepicker(this, {
                    maxDate  : self.configModel.getDefaultExpireDateGroup(),
                    enforced : self.configModel.isDefaultExpireDateGroupEnforced()
                });
Severity: Major
Found in core/js/sharedialogshareelistview.js and 2 other locations - About 1 hr to fix
core/js/sharedialogshareelistview.js on lines 315..320
core/js/sharedialogshareelistview.js on lines 329..334

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

        _onAddVersionsRootModel: function(model) {
            // add current version (versions root) as first item in the list
            var $el = $(this.currentTemplate(this._formatCurrent(model)));
            this.$versionsContainer.prepend($el);
            $el.find('.has-tooltip').tooltip();
Severity: Major
Found in apps/files_versions/js/versionstabview.js and 1 other location - About 1 hr to fix
apps/files_versions/js/versionstabview.js on lines 252..257

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

Method enterNode has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function enterNode(\PhpParser\Node $node) {
        if ($this->deprecatedClass) {
            return;
        }

Severity: Minor
Found in build/OCPSinceChecker.php - About 1 hr to fix

    Method destroy has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function destroy($id) {
            $userId = $this->userSession->getUser()->getUID();
            $user = $this->userManager->get($id);
    
            if ($userId === $id) {
    Severity: Minor
    Found in settings/Controller/UsersController.php - About 1 hr to fix

      Method scan has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function scan($share) {
              // get mount
              $options = [
                  'remote'    => $share['remote'],
                  'token'        => $share['share_token'],
      Severity: Minor
      Found in apps/files_sharing/lib/External/ScanExternalSharesJob.php - About 1 hr to fix

        Method execute has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function execute(InputInterface $input, OutputInterface $output): int {
                $output->writeln("WARNING: incoming-shares:poll has been deprecated and replaced by periodic external shares cronjob. Please check Federated Cloud Sharing settings and documentation.");
                if ($this->externalMountProvider === null) {
                    $output->writeln("Polling is not possible when files_sharing app is disabled. Please enable it with 'occ app:enable files_sharing'");
                    return 1;
        Severity: Minor
        Found in apps/federatedfilesharing/lib/Command/PollIncomingShares.php - About 1 hr to fix

          Method execute has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              protected function execute(InputInterface $input, OutputInterface $output): int {
                  $checkUploadExistsLocal = $input->getOption('local') === true;
                  $d = $input->getArgument('minimum-age-in-days');
                  $d = \max(2, \min($d, 100));
                  $cutOffTime = new \DateTime("$d days ago");
          Severity: Minor
          Found in apps/dav/lib/Command/CleanupChunks.php - About 1 hr to fix

            Method calendarQuery has 47 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function calendarQuery($calendarId, array $filters) {
                    $componentType = null;
                    $requirePostFilter = true;
                    $timeRange = null;
            
            
            Severity: Minor
            Found in apps/dav/lib/CalDAV/CalDavBackend.php - About 1 hr to fix
              Severity
              Category
              Status
              Source
              Language