sibprogrammer/owp

View on GitHub

Showing 803 of 803 total issues

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Il campo deve essere un indirizzo e-mail nel formato "user@example.com"',
      urlText      : 'Il campo deve essere un indirizzo web nel formato "http:/'+'/www.example.com"',
      alphaText    : 'Il campo deve contenere solo lettere e _',
Severity: Major
Found in public/ext/locale/ext-lang-it.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
  Ext.apply(Ext.form.VTypes, {
    emailText    : 'Aquest camp ha de ser una adreça de e-mail amb el format "user@example.com"',
    urlText      : 'Aquest camp ha de ser una URL amb el format "http:/'+'/www.example.com"',
    alphaText    : 'Aquest camp només pot contenir lletres i _',
Severity: Major
Found in public/ext/locale/ext-lang-ca.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
  Ext.apply(Ext.form.VTypes, {
    emailText    : 'Syötä tähän kenttään sähköpostiosoite, esim. "etunimi.sukunimi@osoite.fi"',
    urlText      : 'Syötä tähän kenttään URL-osoite, esim. "http:/'+'/www.osoite.fi"',
    alphaText    : 'Syötä tähän kenttään vain kirjaimia (a-z, A-Z) ja alaviivoja (_)',
Severity: Major
Found in public/ext/locale/ext-lang-fi.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
  Ext.apply(Ext.form.VTypes, {
    emailText    : 'Field ini harus dalam format email seperti "user@example.com"', 
    urlText      : 'Field ini harus dalam format URL seperti "http:/'+'/www.example.com"', 
    alphaText    : 'Field ini harus terdiri dari huruf dan _', 
Severity: Major
Found in public/ext/locale/ext-lang-id.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
  Ext.apply(Ext.form.VTypes, {
    emailText    : 'Este campo debe ser una dirección de correo electrónico con el formato "usuario@dominio.com"',
    urlText      : 'Este campo debe ser una URL con el formato "http:/'+'/www.dominio.com"',
    alphaText    : 'Este campo sólo debe contener letras y _',
Severity: Major
Found in public/ext/locale/ext-lang-es.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Šajā laukā jāieraksta e-pasta adrese formātā "lietotās@domēns.lv"',
      urlText      : 'Šajā laukā jāieraksta URL formātā "http:/'+'/www.domēns.lv"',
      alphaText    : 'Šis lauks drīkst saturēt tikai burtus un _ zīmi',
Severity: Major
Found in public/ext/locale/ext-lang-lv.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'V tomto poli může být vyplněna pouze emailová adresa ve formátu "uživatel@doména.cz"',
      urlText      : 'V tomto poli může být vyplněna pouze URL (adresa internetové stránky) ve formátu "http:/'+'/www.doména.cz"',
      alphaText    : 'Toto pole může obsahovat pouze písmena abecedy a znak _',
Severity: Major
Found in public/ext/locale/ext-lang-cs.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : '이메일 주소 형식에 맞게 입력해야합니다. (예: "user@example.com")',
      urlText      : 'URL 형식에 맞게 입력해야합니다. (예: "http:/'+'/www.example.com")',
      alphaText    : '영문, 밑줄(_)만 입력할 수 있습니다.',
Severity: Major
Found in public/ext/locale/ext-lang-ko.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
  Ext.apply(Ext.form.VTypes, {
    emailText    : 'This field should be an e-mail address in the format "user@example.com"',
    urlText      : 'This field should be a URL in the format "http:/'+'/www.example.com"',
    alphaText    : 'This field should only contain letters and _',
Severity: Major
Found in public/ext/locale/ext-lang-en_GB.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Giá trị của ô này phải là một địa chỉ email có dạng như "ten@abc.com"',
      urlText      : 'Giá trị của ô này phải là một địa chỉ web(URL) hợp lệ, có dạng như "http:/'+'/www.example.com"',
      alphaText    : 'Ô này chỉ được nhập các kí tự và gạch dưới(_)',
Severity: Major
Found in public/ext/locale/ext-lang-vn.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Dette feltet skal være en epost adresse på formatet "bruker@domene.no"',
      urlText      : 'Dette feltet skal være en link (URL) på formatet "http:/'+'/www.domene.no"',
      alphaText    : 'Dette feltet skal kun inneholde bokstaver og _',
Severity: Major
Found in public/ext/locale/ext-lang-no_NB.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Dieses Feld sollte eine E-Mail-Adresse enthalten. Format: "user@example.com"',
      urlText      : 'Dieses Feld sollte eine URL enthalten. Format: "http:/'+'/www.example.com"',
      alphaText    : 'Dieses Feld darf nur Buchstaben enthalten und _',
Severity: Major
Found in public/ext/locale/ext-lang-de.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
  Ext.apply(Ext.form.VTypes, {
    emailText    : 'Este campo deve ser um endereço de email no formato "utilizador@dominio.com"',
    urlText      : 'Este campo deve ser um URL no formato "http:/'+'/www.dominio.com"',
    alphaText    : 'Este campo deve conter apenas letras e _',
Severity: Major
Found in public/ext/locale/ext-lang-pt_PT.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Ovo polje prihavata e-mail adresu isključivo u obliku "korisnik@domen.com"',
      urlText      : 'Ovo polje prihavata URL adresu isključivo u obliku "http:/'+'/www.domen.com"',
      alphaText    : 'Ovo polje može sadržati isključivo slova i znak _',
Severity: Major
Found in public/ext/locale/ext-lang-sr.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Este campo deve ser um endereço de e-mail válido, no formato "usuario@dominio.com.br"',
      urlText      : 'Este campo deve ser uma URL no formato "http:/'+'/www.dominio.com.br"',
      alphaText    : 'Este campo deve conter apenas letras e _',
Severity: Major
Found in public/ext/locale/ext-lang-pt_BR.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Ово поље прихвата e-mail адресу искључиво у облику "korisnik@domen.com"',
      urlText      : 'Ово поље прихвата URL адресу искључиво у облику "http:/'+'/www.domen.com"',
      alphaText    : 'Ово поље може садржати искључиво слова и знак _',
Severity: Major
Found in public/ext/locale/ext-lang-sr_RS.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
  Ext.apply(Ext.form.VTypes, {
    emailText    : 'Това поле трябва да бъде емейл във формат "user@example.com"',
    urlText      : 'Това поле трябва да бъде URL във формат "http:/'+'/www.example.com"',
    alphaText    : 'Това поле трябва да съдържа само букви и _',
Severity: Major
Found in public/ext/locale/ext-lang-bg.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Acest câmp trebuie să conţină o adresă de e-mail în formatul "user@domeniu.com"',
      urlText      : 'Acest câmp trebuie să conţină o adresă URL în formatul "http:/'+'/www.domeniu.com"',
      alphaText    : 'Acest câmp trebuie să conţină doar litere şi _',
Severity: Major
Found in public/ext/locale/ext-lang-ro.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
  Ext.apply(Ext.form.VTypes, {
    emailText    : 'This field should be an e-mail address in the format "user@example.com"',
    urlText      : 'This field should be a URL in the format "http:/'+'/www.example.com"',
    alphaText    : 'This field should only contain letters and _',
Severity: Major
Found in public/ext/locale/ext-lang-th.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-mk.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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

if(Ext.form.VTypes){
   Ext.apply(Ext.form.VTypes, {
      emailText    : 'Ова поле треба да биде e-mail адреса во формат "user@example.com"',
      urlText      : 'Ова поле треба да биде URL во формат "http:/'+'/www.example.com"',
      alphaText    : 'Ова поле треба да содржи само букви и _',
Severity: Major
Found in public/ext/locale/ext-lang-mk.js and 41 other locations - About 1 hr to fix
public/ext/locale/ext-lang-bg.js on lines 168..175
public/ext/locale/ext-lang-ca.js on lines 177..184
public/ext/locale/ext-lang-cs.js on lines 175..182
public/ext/locale/ext-lang-da.js on lines 178..185
public/ext/locale/ext-lang-de.js on lines 187..194
public/ext/locale/ext-lang-el_GR.js on lines 189..196
public/ext/locale/ext-lang-en.js on lines 185..192
public/ext/locale/ext-lang-en_GB.js on lines 181..188
public/ext/locale/ext-lang-es.js on lines 180..187
public/ext/locale/ext-lang-fa.js on lines 162..169
public/ext/locale/ext-lang-fi.js on lines 180..187
public/ext/locale/ext-lang-fr.js on lines 202..209
public/ext/locale/ext-lang-fr_CA.js on lines 186..193
public/ext/locale/ext-lang-gr.js on lines 143..150
public/ext/locale/ext-lang-he.js on lines 174..181
public/ext/locale/ext-lang-hr.js on lines 177..184
public/ext/locale/ext-lang-hu.js on lines 178..185
public/ext/locale/ext-lang-id.js on lines 184..191
public/ext/locale/ext-lang-it.js on lines 176..183
public/ext/locale/ext-lang-ja.js on lines 180..187
public/ext/locale/ext-lang-ko.js on lines 147..154
public/ext/locale/ext-lang-lt.js on lines 189..196
public/ext/locale/ext-lang-lv.js on lines 144..151
public/ext/locale/ext-lang-nl.js on lines 185..192
public/ext/locale/ext-lang-no_NB.js on lines 176..183
public/ext/locale/ext-lang-no_NN.js on lines 176..183
public/ext/locale/ext-lang-pl.js on lines 186..193
public/ext/locale/ext-lang-pt.js on lines 150..157
public/ext/locale/ext-lang-pt_BR.js on lines 192..199
public/ext/locale/ext-lang-pt_PT.js on lines 175..182
public/ext/locale/ext-lang-ro.js on lines 176..183
public/ext/locale/ext-lang-ru.js on lines 190..197
public/ext/locale/ext-lang-sk.js on lines 150..157
public/ext/locale/ext-lang-sl.js on lines 144..151
public/ext/locale/ext-lang-sr.js on lines 147..154
public/ext/locale/ext-lang-sr_RS.js on lines 146..153
public/ext/locale/ext-lang-sv_SE.js on lines 146..153
public/ext/locale/ext-lang-th.js on lines 176..183
public/ext/locale/ext-lang-ukr.js on lines 151..158
public/ext/locale/ext-lang-vn.js on lines 149..156
public/ext/locale/ext-lang-zh_TW.js on lines 146..153

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

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