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    : 'Áõôü ôï ðåäßï ðñÝðåé íá åßíáé e-mail address ôçò ìïñöÞò "user@example.com"',
      urlText      : 'Áõôü ôï ðåäßï ðñÝðåé íá åßíáé ìéá äéåýèõíóç URL ôçò ìïñöÞò "http:/'+'/www.example.com"',
      alphaText    : 'Áõôü ôï ðåäßï ðñÝðåé íá ðåñéÝ÷åé ãñÜììáôá êáé _',
Severity: Major
Found in public/ext/locale/ext-lang-gr.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-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    : 'Το πεδίο δέχεται μόνο διευθύνσεις Email σε μορφή "user@example.com"',
      urlText      : 'Το πεδίο δέχεται μόνο URL σε μορφή "http:/'+'/www.example.com"',
      alphaText    : 'Το πεδίο δέχεται μόνο χαρακτήρες και _',
Severity: Major
Found in public/ext/locale/ext-lang-el_GR.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-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      : '"http:/'+'/www.example.com" ��� �� ���� ����� ����� ������� ������',
    alphaText    : '_��� �� ���� ����� �� ������ �',
Severity: Major
Found in public/ext/locale/ext-lang-he.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-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      : 'مقدار این آدرس باید یک آدرس سایت با این فرمت باشد "http:/'+'/www.example.com"',
      alphaText    : 'مقدار این فیلد باید فقط از حروف الفبا و _ تشکیل شده باشد ',
Severity: Major
Found in public/ext/locale/ext-lang-fa.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-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    : 'Detta fält ska innehålla en e-post adress i formatet "användare@domän.se"',
      urlText      : 'Detta fält ska innehålla en länk (URL) i formatet "http:/'+'/www.domän.se"',
      alphaText    : 'Detta fält får bara innehålla bokstäver och "_"',
Severity: Major
Found in public/ext/locale/ext-lang-sv_SE.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-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-ja.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-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    : 'A mező email címet tartalmazhat, melynek formátuma "felhasználó@szolgáltató.hu"',
    urlText      : 'A mező webcímet tartalmazhat, melynek formátuma "http:/'+'/www.weboldal.hu"',
    alphaText    : 'A mező csak betűket és aláhúzást (_) tartalmazhat',
Severity: Major
Found in public/ext/locale/ext-lang-hu.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-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    : 'Ce champ doit contenir un courriel et doit être sous ce format: "usager@example.com"',
      urlText      : 'Ce champ doit contenir une URL sous le format suivant: "http:/'+'/www.example.com"',
      alphaText    : 'Ce champ ne peut contenir que des lettres et le caractère souligné (_)',
Severity: Major
Found in public/ext/locale/ext-lang-fr_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-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-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    : 'Šiame lauke turi būti el.pašto adresas formatu "user@example.com"',
    urlText      : 'Šiame lauke turi būti nuoroda (URL) formatu "http:/'+'/www.example.com"',
    alphaText    : 'Šiame lauke gali būti tik raidės ir ženklas "_"',
Severity: Major
Found in public/ext/locale/ext-lang-lt.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-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    : 'Dette felt skal være en email adresse i formatet "xxx@yyy.zzz"',
      urlText      : 'Dette felt skal være en URL i formatet "http:/'+'/xxx.yyy"',
      alphaText    : 'Dette felt kan kun indeholde bogstaver og "_" (understregning)',
Severity: Major
Found in public/ext/locale/ext-lang-da.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-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    : 'Ovdje možete unijeti samo e-mail adresu u obliku "korisnik@domena.com"',
      urlText      : 'Ovdje možete unijeti samo URL u obliku "http:/'+'/www.domena.com"',
      alphaText    : 'Ovo polje može sadržavati samo slova i znak _',
Severity: Major
Found in public/ext/locale/ext-lang-hr.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-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 e-mail válido, 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.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_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-ukr.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-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 2 locations. Consider refactoring.
Open

if(Ext.form.TimeField){
   Ext.apply(Ext.form.TimeField.prototype, {
    minText : "Die Zeit muss gleich oder nach {0} liegen",
    maxText : "Die Zeit muss gleich oder vor {0} liegen",
    invalidText : "{0} ist keine gültige Zeit",
Severity: Major
Found in public/ext/locale/ext-lang-de.js and 1 other location - About 1 hr to fix
public/ext/locale/ext-lang-de.js on lines 159..166

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

if(Ext.form.NumberField){
   Ext.apply(Ext.form.NumberField.prototype, {
      minText : "Der Mindestwert für dieses Feld ist {0}",
      maxText : "Der Maximalwert für dieses Feld ist {0}",
      nanText : "{0} ist keine Zahl",
Severity: Major
Found in public/ext/locale/ext-lang-de.js and 1 other location - About 1 hr to fix
public/ext/locale/ext-lang-de.js on lines 326..333

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

Method get_stats has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def get_stats
      [
        [
          'user.png',
          t('admin.dashboard.stats_grid.parameter.panel_users'),
Severity: Minor
Found in app/controllers/application.rb - About 1 hr to fix

    Method save_physically has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def save_physically
        return false if !valid?
    
        content = ""
        content << 'ONBOOT="' + (start_on_boot ? "yes" : "no") + '"' + "\n"
    Severity: Minor
    Found in app/models/server_template.rb - About 1 hr to fix

      Method create_backup has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def self.create_backup(virtual_server, ve_state, description)
          orig_ve_state = virtual_server.state
          if 'running' == orig_ve_state
            case ve_state
              when 'suspend' then virtual_server.suspend
      Severity: Minor
      Found in app/models/backup.rb - About 1 hr to fix

        Method owp_ConfigOptions has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function owp_ConfigOptions()
        {
            $nodes = array();
            $serverTemplates = array();
            $osTempates = array();
        Severity: Minor
        Found in utils/whmcs/owp/owp.php - About 1 hr to fix

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

          if(Ext.layout.BorderLayout.SplitRegion){
             Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
                splitTip            : "Povuci za promjenu veličine.",
                collapsibleSplitTip : "Povuci za promjenu veličine. Dvostruki klik za skrivanje."
             });
          Severity: Major
          Found in public/ext/locale/ext-lang-hr.js and 1 other location - About 1 hr to fix
          public/ext/locale/ext-lang-tr.js on lines 301..306

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

          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