sibprogrammer/owp

View on GitHub

Showing 803 of 803 total issues

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

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "La longueur minimum de ce champ est de {0} caractères",
      maxLengthText : "La longueur maximum de ce champ est de {0} caractères",
      blankText     : "Ce champ est obligatoire",
Severity: Major
Found in public/ext/locale/ext-lang-fr_CA.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText : "El tamaño mínimo para este campo es de {0}",
    maxLengthText : "El tamaño máximo para este campo es de {0}",
    blankText     : "Este campo es obligatorio",
Severity: Major
Found in public/ext/locale/ext-lang-es.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText : "O comprimento mínimo deste campo &eaute; {0}",
    maxLengthText : "O comprimento máximo deste campo &eaute; {0}",
    blankText     : "Este campo é de preenchimento obrigatório",
Severity: Major
Found in public/ext/locale/ext-lang-pt_PT.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText : "Den minste lengden for dette feltet er {0}",
    maxLengthText : "Den største lengden for dette feltet er {0}",
    blankText     : "Dette feltet er påkrevd",
Severity: Major
Found in public/ext/locale/ext-lang-no_NB.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.grid.GridView){
   Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText  : "Řadit vzestupně",
      sortDescText : "Řadit sestupně",
      lockText     : "Ukotvit sloupec",
Severity: Major
Found in public/ext/locale/ext-lang-cs.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

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

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

if(Ext.form.TimeField){
  Ext.apply(Ext.form.TimeField.prototype, {
    minText : "The time in this field must be equal to or after {0}",
    maxText : "The time in this field must be equal to or before {0}",
    invalidText : "{0} is not a valid time",
Severity: Major
Found in public/ext/locale/ext-lang-en.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

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

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

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "최소길이는 {0}입니다.",
      maxLengthText : "최대길이는 {0}입니다.",
      blankText     : "값을 입력해주세요.",
Severity: Major
Found in public/ext/locale/ext-lang-ko.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.form.TextField){
  Ext.apply(Ext.form.TextField.prototype, {
    minLengthText : "Panjang minimal untuk field ini adalah {0}",  
    maxLengthText : "Panjang maksimal untuk field ini adalah {0}", 
    blankText     : "Field ini wajib diisi", 
Severity: Major
Found in public/ext/locale/ext-lang-id.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "Lungimea minimă pentru acest câmp este de {0}",
      maxLengthText : "Lungimea maximă pentru acest câmp este {0}",
      blankText     : "Acest câmp este obligatoriu",
Severity: Major
Found in public/ext/locale/ext-lang-ro.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "Bitte geben Sie mindestens {0} Zeichen ein",
      maxLengthText : "Bitte geben Sie maximal {0} Zeichen ein",
      blankText     : "Dieses Feld darf nicht leer sein",
Severity: Major
Found in public/ext/locale/ext-lang-de.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "O tamanho mínimo para este campo é {0}",
      maxLengthText : "O tamanho máximo para este campo é {0}",
      blankText     : "Este campo é obrigatório.",
Severity: Major
Found in public/ext/locale/ext-lang-pt.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "Мінімальна довжина цього поля {0}",
      maxLengthText : "Максимальна довжина цього поля {0}",
      blankText     : "Це поле є обов’язковим для заповнення",
Severity: Major
Found in public/ext/locale/ext-lang-ukr.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.grid.PropertyColumnModel){
  Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
    nameText   : "Name",
    valueText  : "Value",
    dateFormat : "m/j/Y",
Severity: Major
Found in public/ext/locale/ext-lang-en.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

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

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

if(Ext.form.TimeField){
  Ext.apply(Ext.form.TimeField.prototype, {
    minText : "このフィールドの時刻は、 {0} 以降の時刻に設定してください。",
    maxText : "このフィールドの時刻は、 {0} 以前の時刻に設定してください。",
    invalidText : "{0} は間違った時刻入力です。",
Severity: Major
Found in public/ext/locale/ext-lang-ja.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

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

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

if(Ext.form.TimeField){
  Ext.apply(Ext.form.TimeField.prototype, {
    minText : "The time in this field must be equal to or after {0}",
    maxText : "The time in this field must be equal to or before {0}",
    invalidText : "{0} is not a valid time",
Severity: Major
Found in public/ext/locale/ext-lang-en_GB.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

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

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

if(Ext.grid.GridView){
  Ext.apply(Ext.grid.GridView.prototype, {
    sortAscText  : "Sorter stigende",
    sortDescText : "Sorter synkende",
    lockText     : "Lås kolonne",
Severity: Major
Found in public/ext/locale/ext-lang-no_NB.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

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

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

if(Ext.grid.GridView){
   Ext.apply(Ext.grid.GridView.prototype, {
      sortAscText  : "Ordinamento crescente",
      sortDescText : "Ordinamento decrescente",
      lockText     : "Blocca colonna",
Severity: Major
Found in public/ext/locale/ext-lang-it.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 305..313
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

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

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

if(Ext.grid.PropertyColumnModel){
    Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
        nameText   : "Propriété",
        valueText  : "Valeur",
        dateFormat : "d/m/Y",
Severity: Major
Found in public/ext/locale/ext-lang-fr.js and 47 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 161..169
public/ext/locale/ext-lang-bg.js on lines 255..263
public/ext/locale/ext-lang-ca.js on lines 295..303
public/ext/locale/ext-lang-cs.js on lines 262..270
public/ext/locale/ext-lang-da.js on lines 265..273
public/ext/locale/ext-lang-de.js on lines 274..282
public/ext/locale/ext-lang-el_GR.js on lines 277..285
public/ext/locale/ext-lang-en.js on lines 288..296
public/ext/locale/ext-lang-en.js on lines 325..333
public/ext/locale/ext-lang-en_GB.js on lines 284..292
public/ext/locale/ext-lang-en_GB.js on lines 301..309
public/ext/locale/ext-lang-es.js on lines 298..306
public/ext/locale/ext-lang-fa.js on lines 249..257
public/ext/locale/ext-lang-fi.js on lines 271..279
public/ext/locale/ext-lang-fr.js on lines 322..330
public/ext/locale/ext-lang-fr_CA.js on lines 195..203
public/ext/locale/ext-lang-gr.js on lines 152..160
public/ext/locale/ext-lang-he.js on lines 261..269
public/ext/locale/ext-lang-hr.js on lines 264..272
public/ext/locale/ext-lang-hu.js on lines 265..273
public/ext/locale/ext-lang-id.js on lines 271..279
public/ext/locale/ext-lang-it.js on lines 263..271
public/ext/locale/ext-lang-ja.js on lines 298..306
public/ext/locale/ext-lang-ko.js on lines 234..242
public/ext/locale/ext-lang-lt.js on lines 280..288
public/ext/locale/ext-lang-lt.js on lines 313..321
public/ext/locale/ext-lang-lv.js on lines 153..161
public/ext/locale/ext-lang-mk.js on lines 153..161
public/ext/locale/ext-lang-nl.js on lines 303..311
public/ext/locale/ext-lang-no_NB.js on lines 263..271
public/ext/locale/ext-lang-no_NN.js on lines 263..271
public/ext/locale/ext-lang-pl.js on lines 273..281
public/ext/locale/ext-lang-pt.js on lines 237..245
public/ext/locale/ext-lang-pt_BR.js on lines 279..287
public/ext/locale/ext-lang-pt_PT.js on lines 266..274
public/ext/locale/ext-lang-ro.js on lines 264..272
public/ext/locale/ext-lang-ru.js on lines 281..289
public/ext/locale/ext-lang-sk.js on lines 159..167
public/ext/locale/ext-lang-sl.js on lines 153..161
public/ext/locale/ext-lang-sr.js on lines 156..164
public/ext/locale/ext-lang-sr_RS.js on lines 155..163
public/ext/locale/ext-lang-sv_SE.js on lines 155..163
public/ext/locale/ext-lang-th.js on lines 263..271
public/ext/locale/ext-lang-tr.js on lines 275..283
public/ext/locale/ext-lang-ukr.js on lines 238..246
public/ext/locale/ext-lang-vn.js on lines 158..166
public/ext/locale/ext-lang-zh_TW.js on lines 155..163

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

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

if(Ext.form.TextField){
   Ext.apply(Ext.form.TextField.prototype, {
      minLengthText : "Ôï åëÜ÷éóôï ìÝãåèïò ãéá áõôü ôï ðåäßï åßíáé {0}",
      maxLengthText : "Ôï ìÝãéóôï ìÝãåèïò ãéá áõôü ôï ðåäßï åßíáé {0}",
      blankText     : "Ôï ðåäßï áõôü åßíáé õðï÷ñåùôïêü",
Severity: Major
Found in public/ext/locale/ext-lang-gr.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 115..123
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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

if(Ext.form.TextField){
    Ext.apply(Ext.form.TextField.prototype, {
       minLengthText : "Die minimum lengte van die veld is {0}",
       maxLengthText : "Die maximum lengte van die veld is {0}",
       blankText     : "Die veld is verpligtend",
Severity: Major
Found in public/ext/locale/ext-lang-af.js and 44 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 131..139
public/ext/locale/ext-lang-ca.js on lines 138..146
public/ext/locale/ext-lang-cs.js on lines 138..146
public/ext/locale/ext-lang-da.js on lines 141..149
public/ext/locale/ext-lang-de.js on lines 149..157
public/ext/locale/ext-lang-el_GR.js on lines 153..161
public/ext/locale/ext-lang-en.js on lines 146..154
public/ext/locale/ext-lang-en_GB.js on lines 142..150
public/ext/locale/ext-lang-es.js on lines 141..149
public/ext/locale/ext-lang-fa.js on lines 126..134
public/ext/locale/ext-lang-fi.js on lines 143..151
public/ext/locale/ext-lang-fr.js on lines 163..171
public/ext/locale/ext-lang-fr_CA.js on lines 150..158
public/ext/locale/ext-lang-gr.js on lines 107..115
public/ext/locale/ext-lang-he.js on lines 137..145
public/ext/locale/ext-lang-hr.js on lines 141..149
public/ext/locale/ext-lang-hu.js on lines 141..149
public/ext/locale/ext-lang-id.js on lines 146..154
public/ext/locale/ext-lang-it.js on lines 139..147
public/ext/locale/ext-lang-ja.js on lines 141..149
public/ext/locale/ext-lang-ko.js on lines 111..119
public/ext/locale/ext-lang-lt.js on lines 152..160
public/ext/locale/ext-lang-lv.js on lines 108..116
public/ext/locale/ext-lang-mk.js on lines 108..116
public/ext/locale/ext-lang-nl.js on lines 146..154
public/ext/locale/ext-lang-no_NB.js on lines 139..147
public/ext/locale/ext-lang-no_NN.js on lines 139..147
public/ext/locale/ext-lang-pl.js on lines 149..157
public/ext/locale/ext-lang-pt.js on lines 114..122
public/ext/locale/ext-lang-pt_BR.js on lines 156..164
public/ext/locale/ext-lang-pt_PT.js on lines 138..146
public/ext/locale/ext-lang-ro.js on lines 139..147
public/ext/locale/ext-lang-ru.js on lines 153..161
public/ext/locale/ext-lang-sk.js on lines 114..122
public/ext/locale/ext-lang-sl.js on lines 108..116
public/ext/locale/ext-lang-sr.js on lines 110..118
public/ext/locale/ext-lang-sr_RS.js on lines 110..118
public/ext/locale/ext-lang-sv_SE.js on lines 110..118
public/ext/locale/ext-lang-th.js on lines 139..147
public/ext/locale/ext-lang-tr.js on lines 153..161
public/ext/locale/ext-lang-ukr.js on lines 115..123
public/ext/locale/ext-lang-vn.js on lines 113..121
public/ext/locale/ext-lang-zh_CN.js on lines 116..124
public/ext/locale/ext-lang-zh_TW.js on lines 110..118

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

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