owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "Päivitysilmoitukset",
    "{version} is available. Get more information on how to update." : "{version} on saatavilla. Tarjolla on lisätietoja päivittämisestä.",
Severity: Major
Found in apps/updatenotification/l10n/fi_FI.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "アップデート通知",
    "{version} is available. Get more information on how to update." : "{version} が利用可能です。アップデート方法について詳細情報を確認してください。",
Severity: Major
Found in apps/updatenotification/l10n/ja.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "Актуализиране на известията",
    "{version} is available. Get more information on how to update." : "{версия} е налична. Получете повече информация за това как да актуализирате.",
Severity: Major
Found in apps/updatenotification/l10n/bg_BG.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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

OC.L10N.register(
    "comments",
    {
    "Type in a new comment..." : "Tajpu novan komenton...",
    "Delete comment" : "Forigi komenton",
Severity: Major
Found in apps/comments/l10n/eo.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Loading..." : "Įkeliama ...",
    "Accept" : "Priimti",
Severity: Major
Found in apps/federatedfilesharing/l10n/lt_LT.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "แจ้งเตือนการปรับปรุง",
    "{version} is available. Get more information on how to update." : "มีเวอร์ชันใหม่ {version} สามารถใช้ได้ รับข้อมูลเพิ่มเติมเกี่ยวกับวิธีการอัปเดต",
Severity: Major
Found in apps/updatenotification/l10n/th_TH.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "Tilkynningar um uppfærslu",
    "{version} is available. Get more information on how to update." : "{version} er í boði. Fáðu frekari upplýsingar um hvernig á að uppfæra.",
Severity: Major
Found in apps/updatenotification/l10n/is.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "Posodobi obvestila",
    "{version} is available. Get more information on how to update." : "Na voljo je nova različica {version}. Na voljo je več podrobnosti o nadgradnji.",
Severity: Major
Found in apps/updatenotification/l10n/sl.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "Ειδοποιήσεις ενημέρωσης",
    "{version} is available. Get more information on how to update." : "Η έκδοση {version} είναι διαθέσιμη. Δείτε περισσότερες πληροφορίες για το πως να κάνετε την ενημέρωση.",
Severity: Major
Found in apps/updatenotification/l10n/el.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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

OC.L10N.register(
    "lib",
    {
    "Unknown filetype" : "Unbekannter Dateityp",
    "Invalid image" : "Ungültiges Bild",
Severity: Major
Found in lib/l10n/de_AT.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/af_ZA.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20

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

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "Bywerkkennisgewings",
    "{version} is available. Get more information on how to update." : "{version} is beskikbaar. Kry meer inligting oor opdatering.",
Severity: Major
Found in apps/updatenotification/l10n/af_ZA.js and 42 other locations - About 2 hrs to fix
apps/comments/l10n/eo.js on lines 1..20
apps/comments/l10n/sr.js on lines 1..20
apps/federatedfilesharing/l10n/lt_LT.js on lines 1..20
apps/files/l10n/nds.js on lines 1..20
apps/files_external/l10n/si_LK.js on lines 1..20
apps/files_external/l10n/ta.js on lines 1..20
apps/files_external/l10n/ta_LK.js on lines 1..20
apps/files_sharing/l10n/de_AT.js on lines 1..20
apps/files_trashbin/l10n/eo.js on lines 1..20
apps/updatenotification/l10n/ar.js on lines 1..20
apps/updatenotification/l10n/bg_BG.js on lines 1..20
apps/updatenotification/l10n/ca.js on lines 1..20
apps/updatenotification/l10n/cs_CZ.js on lines 1..20
apps/updatenotification/l10n/da.js on lines 1..20
apps/updatenotification/l10n/de_CH.js on lines 1..20
apps/updatenotification/l10n/el.js on lines 1..20
apps/updatenotification/l10n/es.js on lines 1..20
apps/updatenotification/l10n/es_MX.js on lines 1..20
apps/updatenotification/l10n/eu.js on lines 1..20
apps/updatenotification/l10n/fi_FI.js on lines 1..20
apps/updatenotification/l10n/fr.js on lines 1..20
apps/updatenotification/l10n/gl.js on lines 1..20
apps/updatenotification/l10n/he.js on lines 1..20
apps/updatenotification/l10n/hu_HU.js on lines 1..20
apps/updatenotification/l10n/is.js on lines 1..20
apps/updatenotification/l10n/it.js on lines 1..20
apps/updatenotification/l10n/ja.js on lines 1..20
apps/updatenotification/l10n/ko.js on lines 1..20
apps/updatenotification/l10n/lt_LT.js on lines 1..20
apps/updatenotification/l10n/mk.js on lines 1..20
apps/updatenotification/l10n/nb_NO.js on lines 1..20
apps/updatenotification/l10n/nn_NO.js on lines 1..20
apps/updatenotification/l10n/pl.js on lines 1..20
apps/updatenotification/l10n/pt_PT.js on lines 1..20
apps/updatenotification/l10n/sl.js on lines 1..20
apps/updatenotification/l10n/sv.js on lines 1..20
apps/updatenotification/l10n/th_TH.js on lines 1..20
apps/updatenotification/l10n/uk.js on lines 1..20
apps/updatenotification/l10n/zh_CN.js on lines 1..20
apps/updatenotification/l10n/zh_TW.js on lines 1..20
core/l10n/bn_IN.js on lines 1..20
lib/l10n/de_AT.js on lines 1..20

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

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 init has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function init() {
        if ($this->init) {
            return;
        }
        $this->init = true;
Severity: Major
Found in lib/private/NavigationManager.php - About 2 hrs to fix

    Method registerCoreProviders has 72 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function registerCoreProviders() {
            if ($this->registeredCoreProviders) {
                return;
            }
            $this->registeredCoreProviders = true;
    Severity: Major
    Found in lib/private/PreviewManager.php - About 2 hrs to fix

      Method handleRemovedUsers has 72 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function handleRemovedUsers(array $removedUsers, InputInterface $input, OutputInterface $output, $missingAccountsAction): void {
              if (empty($removedUsers)) {
                  $output->writeln('No removed users have been detected.');
              } else {
                  // define some actions to be used
      Severity: Major
      Found in core/Command/User/SyncBackend.php - About 2 hrs to fix

        File SyncService.php has 286 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * @author Jörn Friedrich Dreyer <jfd@butonic.de>
         * @author Thomas Müller <thomas.mueller@tmit.eu>
         *
        Severity: Minor
        Found in lib/private/User/SyncService.php - About 2 hrs to fix

          Function message has 71 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              message:function(content, title, dialogType, buttons, callback, modal, cssClass) {
                  return $.when(this._getMessageTemplate()).then(function($tmpl) {
                      var dialogName = 'oc-dialog-' + OCdialogs.dialogsCounter + '-content';
                      var dialogId = '#' + dialogName;
                      var $dlg = $tmpl.octemplate({
          Severity: Major
          Found in core/js/oc-dialogs.js - About 2 hrs to fix

            Method changeSchema has 71 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function changeSchema(Schema $schema, array $options) {
                    $prefix = $options['tablePrefix'];
                    if (!$schema->hasTable("{$prefix}share_external")) {
                        $table = $schema->createTable("{$prefix}share_external");
                        $table->addColumn('id', 'bigint', [
            Severity: Major
            Found in apps/files_sharing/appinfo/Migrations/Version20170804201125.php - About 2 hrs to fix

              Method buildDateFromContact has 71 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function buildDateFromContact($cardData, $dateField, $summarySymbol) {
                      if (empty($cardData)) {
                          return null;
                      }
                      try {
              Severity: Major
              Found in apps/dav/lib/CalDAV/BirthdayService.php - About 2 hrs to fix

                Method moveInto has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function moveInto($targetName, $fullSourcePath, INode $sourceNode) {
                        if (!$sourceNode instanceof Node) {
                            if ($sourceNode instanceof ITrashBinNode) {
                                if (!$this->fileView->isCreatable($this->getPath())) {
                                    throw new SabreForbidden('Destination directory is not writable');
                Severity: Major
                Found in apps/dav/lib/Connector/Sabre/Directory.php - About 2 hrs to fix

                  Method _output has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private function _output($filePath = null, $mimeType = null) {
                          if ($filePath) {
                              if (!\file_exists(\dirname($filePath))) {
                                  \mkdir(\dirname($filePath), 0777, true);
                              }
                  Severity: Major
                  Found in lib/private/legacy/image.php - About 2 hrs to fix
                    Severity
                    Category
                    Status
                    Source
                    Language