talho/openphin

View on GitHub

Showing 3,486 of 3,486 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 app/assets/javascripts/ext/src/locale/ext-lang-gr.js and 41 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 168..175
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 188..195
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 181..188
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 162..169
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 202..209
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 174..181
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 184..191
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 175..182
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 190..197
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 151..158
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 149..156
app/assets/javascripts/ext/src/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 app/assets/javascripts/ext/src/locale/ext-lang-vn.js and 41 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 168..175
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 188..195
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 181..188
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 162..169
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 202..209
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 143..150
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 174..181
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 184..191
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 175..182
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 190..197
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 151..158
app/assets/javascripts/ext/src/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    : 'To polje je e-mail naslov formata "ime@domena.si"',
      urlText      : 'To polje je URL naslov formata "http:/'+'/www.domena.si"',
      alphaText    : 'To polje lahko vsebuje samo črke in _',
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-sl.js and 41 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 168..175
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 188..195
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 181..188
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 162..169
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 202..209
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 143..150
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 174..181
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 184..191
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 175..182
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 190..197
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 151..158
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 149..156
app/assets/javascripts/ext/src/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\u00F3n de correo electr\u00F3nico con el formato "usuario@dominio.com"',
    urlText      : 'Este campo debe ser una URL con el formato "http:/'+'/www.dominio.com"',
    alphaText    : 'Este campo s\u00F3lo debe contener letras y _',
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-es.js and 41 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 168..175
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 188..195
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 181..188
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 162..169
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 202..209
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 143..150
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 174..181
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 184..191
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 175..182
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 190..197
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 151..158
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 149..156
app/assets/javascripts/ext/src/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 app/assets/javascripts/ext/src/locale/ext-lang-cs.js and 41 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 168..175
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 188..195
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 181..188
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 162..169
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 202..209
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 143..150
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 174..181
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 184..191
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 175..182
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 190..197
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 151..158
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 149..156
app/assets/javascripts/ext/src/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 app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js and 41 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 168..175
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 188..195
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 162..169
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 202..209
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 143..150
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 174..181
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 184..191
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 175..182
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 190..197
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 151..158
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 149..156
app/assets/javascripts/ext/src/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 app/assets/javascripts/ext/src/locale/ext-lang-fi.js and 41 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 168..175
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 188..195
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 181..188
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 162..169
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 202..209
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 143..150
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 174..181
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 184..191
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 175..182
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 190..197
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 151..158
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 149..156
app/assets/javascripts/ext/src/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 app/assets/javascripts/ext/src/locale/ext-lang-ko.js and 41 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 168..175
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 188..195
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 181..188
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 162..169
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 202..209
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 143..150
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 174..181
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 177..184
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 178..185
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 184..191
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 180..187
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 189..196
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 185..192
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 186..193
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 192..199
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 175..182
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 190..197
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 150..157
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 144..151
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 147..154
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 146..153
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 176..183
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 151..158
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 149..156
app/assets/javascripts/ext/src/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 4 locations. Consider refactoring.
Open

        }), this.last = new T.Button({
            tooltip: this.lastText,
            overflowText: this.lastText,
            iconCls: 'x-tbar-page-last',
            disabled: true,
Severity: Major
Found in app/assets/javascripts/ext/src/widgets/PagingToolbar.js and 3 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 201..208
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 208..215
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 230..237

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

    initDDTarget : function(group, config, overrides){
        var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config);
        return Ext.apply(dd, overrides);
    }
Severity: Major
Found in app/assets/javascripts/ext/src/core/Element.dd.js and 2 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/core/Element.dd.js on lines 18..21
app/assets/javascripts/ext/src/core/Element.dd.js on lines 30..33

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

                    case 'south':
                        w = ow * (h/oh);
                        w = Math.min(Math.max(mw, w), mxw);
                        h = oh * (w/ow);
                        break;
Severity: Major
Found in app/assets/javascripts/ext/src/widgets/Resizable.js and 2 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/widgets/Resizable.js on lines 590..594
app/assets/javascripts/ext/src/widgets/Resizable.js on lines 600..604

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

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

    onClick: function(node, e) {
        var oi = Ext.getCmp('x-debug-objinspector');
        oi.refreshNodes(node.attributes.component);
        oi.ownerCt.show();
    },
Severity: Major
Found in app/assets/javascripts/ext/src/debug.js and 1 other location - About 1 hr to fix
app/assets/javascripts/ext/src/debug.js on lines 489..493

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

                    case 'northeast':
                        w = ow * (h/oh);
                        w = Math.min(Math.max(mw, w), mxw);
                        h = oh * (w/ow);
                    break;
Severity: Major
Found in app/assets/javascripts/ext/src/widgets/Resizable.js and 2 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/widgets/Resizable.js on lines 590..594
app/assets/javascripts/ext/src/widgets/Resizable.js on lines 595..599

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

        }), this.prev = new T.Button({
            tooltip: this.prevText,
            overflowText: this.prevText,
            iconCls: 'x-tbar-page-prev',
            disabled: true,
Severity: Major
Found in app/assets/javascripts/ext/src/widgets/PagingToolbar.js and 3 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 201..208
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 230..237
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 237..244

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

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

    onClick: function(node, e) {
        var oi = Ext.getCmp('x-debug-objinspector');
        oi.refreshNodes(node.attributes.component);
        oi.ownerCt.show();
    },
Severity: Major
Found in app/assets/javascripts/ext/src/debug.js and 1 other location - About 1 hr to fix
app/assets/javascripts/ext/src/debug.js on lines 775..779

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

        }), '-', this.next = new T.Button({
            tooltip: this.nextText,
            overflowText: this.nextText,
            iconCls: 'x-tbar-page-next',
            disabled: true,
Severity: Major
Found in app/assets/javascripts/ext/src/widgets/PagingToolbar.js and 3 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 201..208
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 208..215
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 237..244

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

    initDD : function(group, config, overrides){
        var dd = new Ext.dd.DD(Ext.id(this.dom), group, config);
        return Ext.apply(dd, overrides);
    },
Severity: Major
Found in app/assets/javascripts/ext/src/core/Element.dd.js and 2 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/core/Element.dd.js on lines 30..33
app/assets/javascripts/ext/src/core/Element.dd.js on lines 42..45

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

        var pagingItems = [this.first = new T.Button({
            tooltip: this.firstText,
            overflowText: this.firstText,
            iconCls: 'x-tbar-page-first',
            disabled: true,
Severity: Major
Found in app/assets/javascripts/ext/src/widgets/PagingToolbar.js and 3 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 208..215
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 230..237
app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 237..244

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

    initDDProxy : function(group, config, overrides){
        var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config);
        return Ext.apply(dd, overrides);
    },
Severity: Major
Found in app/assets/javascripts/ext/src/core/Element.dd.js and 2 other locations - About 1 hr to fix
app/assets/javascripts/ext/src/core/Element.dd.js on lines 18..21
app/assets/javascripts/ext/src/core/Element.dd.js on lines 42..45

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(lmode && lmode[1]){
                fn[fn.length] = 'mode="'+lmode[1].replace(trimRe, "")+'";';
                path = path.replace(lmode[1], "");
            }
app/assets/javascripts/ext/src/ext-core/src/core/DomQuery.js on lines 510..513

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