elabftw/elabftw

View on GitHub

Showing 135 of 356 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

try {
    $Controller = new DatabaseController($App, new Items($App->Users));
    $Response = $Controller->getResponse();
} catch (ImproperActionException $e) {
    // show message to user
Severity: Major
Found in web/database.php and 1 other location - About 1 day to fix
web/ucp.php on lines 43..159

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

try {
    $Controller = new DashboardController($App);
    $Response = $Controller->getResponse();

} catch (ImproperActionException $e) {
Severity: Major
Found in web/dashboard.php and 1 other location - About 1 day to fix
web/experiments.php on lines 35..67

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

try {
    $Controller = new ExperimentsController($App, new Experiments($App->Users));
    $Response = $Controller->getResponse();
} catch (ImproperActionException $e) {
    // show message to user
Severity: Major
Found in web/experiments.php and 1 other location - About 1 day to fix
web/dashboard.php on lines 32..57

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

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

const t = {
  translation: {
    "click-to-edit": "Klik om te bewerken",
    "cancel": "Annuleer",
    "comment-add": "Voeg een opmerking toe",
Severity: Major
Found in src/ts/langs/nl_BE.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "Cancelar",
    "comment-add": "Añadir un comentario",
Severity: Major
Found in src/ts/langs/es_ES.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "Anuluj",
    "comment-add": "Dodaj komentarz",
Severity: Major
Found in src/ts/langs/pl_PL.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Klik untuk mengedit",
    "cancel": "Batal",
    "comment-add": "Tambahkan komentar",
Severity: Major
Found in src/ts/langs/id_ID.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Clique para editar",
    "cancel": "Cancelar",
    "comment-add": "Adicionar um comentário",
Severity: Major
Found in src/ts/langs/pt_BR.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "单击编辑",
    "cancel": "取消",
    "comment-add": "添加评论",
Severity: Major
Found in src/ts/langs/zh_CN.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Klikněte pro úpravu",
    "cancel": "Zrušit",
    "comment-add": "Přidat komentář",
Severity: Major
Found in src/ts/langs/cs_CZ.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "취소",
    "comment-add": "의견 추가",
Severity: Major
Found in src/ts/langs/ko_KR.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "キャンセル",
    "comment-add": "コメントを追加",
Severity: Major
Found in src/ts/langs/ja_JP.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "Annulla",
    "comment-add": "Aggiungi un commento",
Severity: Major
Found in src/ts/langs/it_IT.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "Cancel·lar",
    "comment-add": "Afegir un comentari",
Severity: Major
Found in src/ts/langs/ca_ES.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "Отмена",
    "comment-add": "Добавить комментарий",
Severity: Major
Found in src/ts/langs/ru_RU.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Zum bearbeiten anklicken",
    "cancel": "Abbrechen",
    "comment-add": "Einen Kommentar hinzufügen",
Severity: Major
Found in src/ts/langs/de_DE.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "Zrušiť",
    "comment-add": "Pridať komentár",
Severity: Major
Found in src/ts/langs/sk_SK.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "Prekliči",
    "comment-add": "Dodaj komentar",
Severity: Major
Found in src/ts/langs/sl_SI.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Clique para editar",
    "cancel": "Cancelar",
    "comment-add": "Adicionar um comentário",
Severity: Major
Found in src/ts/langs/pt_PT.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/en_US.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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

const t = {
  translation: {
    "click-to-edit": "Click to edit",
    "cancel": "Cancel",
    "comment-add": "Add a comment",
Severity: Major
Found in src/ts/langs/en_US.ts and 18 other locations - About 7 hrs to fix
src/ts/langs/ca_ES.ts on lines 3..40
src/ts/langs/cs_CZ.ts on lines 3..40
src/ts/langs/de_DE.ts on lines 3..40
src/ts/langs/en_GB.ts on lines 3..40
src/ts/langs/es_ES.ts on lines 3..40
src/ts/langs/fr_FR.ts on lines 3..40
src/ts/langs/id_ID.ts on lines 3..40
src/ts/langs/it_IT.ts on lines 3..40
src/ts/langs/ja_JP.ts on lines 3..40
src/ts/langs/ko_KR.ts on lines 3..40
src/ts/langs/nl_BE.ts on lines 3..40
src/ts/langs/pl_PL.ts on lines 3..40
src/ts/langs/pt_BR.ts on lines 3..40
src/ts/langs/pt_PT.ts on lines 3..40
src/ts/langs/ru_RU.ts on lines 3..40
src/ts/langs/sk_SK.ts on lines 3..40
src/ts/langs/sl_SI.ts on lines 3..40
src/ts/langs/zh_CN.ts on lines 3..40

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

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