talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

if(Ext.form.ComboBox){
  Ext.apply(Ext.form.ComboBox.prototype, {
    loadingText: 'Bezig met laden...',
    valueNotFoundText: undefined
  });
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-nl.js and 44 other locations - About 45 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 161..166
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 181..186
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 174..179
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 155..160
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 195..200
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 136..141
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 167..172
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 177..182
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 168..173
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 144..149
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 142..147
app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 139..144

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

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

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

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

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

Refactorings

Further Reading

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

if(Ext.form.ComboBox){
   Ext.apply(Ext.form.ComboBox.prototype, {
      loadingText       : "Učitavanje...",
      valueNotFoundText : undefined
   });
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-hr.js and 44 other locations - About 45 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 161..166
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 181..186
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 174..179
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 155..160
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 195..200
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 136..141
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 167..172
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 177..182
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 168..173
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 144..149
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 142..147
app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 139..144

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

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

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

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

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

Refactorings

Further Reading

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

if(Ext.form.ComboBox){
   Ext.apply(Ext.form.ComboBox.prototype, {
      loadingText       : "Laddar...",
      valueNotFoundText : undefined
   });
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js and 44 other locations - About 45 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 161..166
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 181..186
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 174..179
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 155..160
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 195..200
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 136..141
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 167..172
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 177..182
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 168..173
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 144..149
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 142..147
app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 139..144

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

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

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

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

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

Refactorings

Further Reading

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

if(Ext.form.ComboBox){
   Ext.apply(Ext.form.ComboBox.prototype, {
      loadingText       : "Učitavam...",
      valueNotFoundText : undefined
   });
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-sr.js and 44 other locations - About 45 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 161..166
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 181..186
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 174..179
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 155..160
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 195..200
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 136..141
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 167..172
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 177..182
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 168..173
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 144..149
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 142..147
app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 139..144

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

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

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

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

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

Refactorings

Further Reading

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

if(Ext.form.ComboBox){
   Ext.apply(Ext.form.ComboBox.prototype, {
      loadingText       : "Завантаження...",
      valueNotFoundText : undefined
   });
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ukr.js and 44 other locations - About 45 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 161..166
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 181..186
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 174..179
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 155..160
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 195..200
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 136..141
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 167..172
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 177..182
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 168..173
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 142..147
app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 139..144

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

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

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

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

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

Refactorings

Further Reading

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

if(Ext.form.ComboBox){
  Ext.apply(Ext.form.ComboBox.prototype, {
    loadingText       : "Laster...",
    valueNotFoundText : undefined
  });
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js and 44 other locations - About 45 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 161..166
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 181..186
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 174..179
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 155..160
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 195..200
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 136..141
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 167..172
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 177..182
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 168..173
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 144..149
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 142..147
app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 139..144

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

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

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

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

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

Refactorings

Further Reading

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

if(Ext.form.ComboBox){
   Ext.apply(Ext.form.ComboBox.prototype, {
      loadingText       : "در حال بارگذاری ...",
      valueNotFoundText : undefined
   });
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-fa.js and 44 other locations - About 45 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 161..166
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 181..186
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 174..179
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 195..200
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 136..141
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 167..172
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 177..182
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 168..173
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 144..149
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 142..147
app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 139..144

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

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

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

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

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

Refactorings

Further Reading

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

if(Ext.form.ComboBox){
   Ext.apply(Ext.form.ComboBox.prototype, {
      loadingText       : "Caricamento in corso...",
      valueNotFoundText : undefined
   });
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-it.js and 44 other locations - About 45 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 161..166
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 181..186
app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 174..179
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 155..160
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 195..200
app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 136..141
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 167..172
app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 170..175
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 171..176
app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 177..182
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 173..178
app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 182..187
app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 178..183
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 179..184
app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 185..190
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 168..173
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 143..148
app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 137..142
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 140..145
app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 139..144
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 169..174
app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 183..188
app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 144..149
app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 142..147
app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 145..150
app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 139..144

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

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

        stopEvent: function(e){
            if(this.stopPropagation) {
                e.stopPropagation();
            }

Severity: Minor
Found in app/assets/javascripts/ext/src/dd/DDCore.js and 1 other location - About 45 mins to fix
app/assets/javascripts/ext/src/util/ClickRepeater.js on lines 126..133

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

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

    eventOptions: function(e){
        if(this.preventDefault){
            e.preventDefault();
        }
        if(this.stopDefault){
Severity: Minor
Found in app/assets/javascripts/ext/src/util/ClickRepeater.js and 1 other location - About 45 mins to fix
app/assets/javascripts/ext/src/dd/DDCore.js on lines 1750..1758

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

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

        event.stopPropagation = function() {
            // if stopPropagation exists run it on the original event
            if (originalEvent.stopPropagation)
                originalEvent.stopPropagation();
            // otherwise set the cancelBubble property of the original event to true (IE)
Severity: Minor
Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js and 1 other location - About 45 mins to fix
app/assets/javascripts/jquery-tooltip/lib/jquery.js on lines 2076..2082

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

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(this.tipRenderer){
            ref = this.getFunctionRef(this.tipRenderer);
            this.setTipRenderer(ref.fn, ref.scope);
        }
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/chart/Chart.js and 1 other location - About 45 mins to fix
app/assets/javascripts/ext/src/widgets/chart/Chart.js on lines 288..291

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

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(this.legendRenderer){
            ref = this.getFunctionRef(this.legendRenderer);
            this.setLegendRenderer(ref.fn, ref.scope);
        }
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/chart/Chart.js and 1 other location - About 45 mins to fix
app/assets/javascripts/ext/src/widgets/chart/Chart.js on lines 284..287

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

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

        event.preventDefault = function() {
            // if preventDefault exists run it on the original event
            if (originalEvent.preventDefault)
                originalEvent.preventDefault();
            // otherwise set the returnValue property of the original event to false (IE)
Severity: Minor
Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js and 1 other location - About 45 mins to fix
app/assets/javascripts/jquery-tooltip/lib/jquery.js on lines 2083..2089

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

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

            this.menuTrigger = new Ext.Button({
                iconCls : 'x-toolbar-more-icon',
                cls     : 'x-toolbar-more',
                menu    : this.menu,
                renderTo: this.afterCt
app/assets/javascripts/ext/src/widgets/layout/ToolbarLayout.js on lines 418..423

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

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

    getMaxScrollRight: function() {
        return this.layout.innerCt.dom.scrollWidth - this.layout.innerCt.getWidth();
    },
app/assets/javascripts/ext/src/widgets/layout/box/ScrollerOverflow.js on lines 403..405

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

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

    constructor: function(config){
        Ext.apply(this, config);
        Ext.list.ColumnResizer.superclass.constructor.call(this);
    },
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/list/ColumnResizer.js and 1 other location - About 45 mins to fix
app/assets/javascripts/ext/src/widgets/list/Sorter.js on lines 21..24

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

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

    addRowClass : function(rowId, cls) {
        var row = this.getRow(rowId);
        if (row) {
            this.fly(row).addClass(cls);
        }
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js and 1 other location - About 45 mins to fix
app/assets/javascripts/ext/src/widgets/grid/GridView.js on lines 598..603

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

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

            this.more = new Ext.Button({
                iconCls: 'x-toolbar-more-icon',
                cls    : 'x-toolbar-more',
                menu   : this.moreMenu,
                ownerCt: this.container
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/layout/ToolbarLayout.js and 1 other location - About 45 mins to fix
app/assets/javascripts/ext/src/widgets/layout/box/MenuOverflow.js on lines 231..236

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

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

    onIconClsChange : function(node, cls, oldCls){
        if(this.rendered){
            Ext.fly(this.iconNode).replaceClass(oldCls, cls);
        }
    },
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/tree/TreeNodeUI.js and 1 other location - About 45 mins to fix
app/assets/javascripts/ext/src/widgets/tree/TreeNodeUI.js on lines 103..107

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

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