sibprogrammer/owp

View on GitHub

Showing 803 of 803 total issues

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

if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
   Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
      splitTip            : "Cliquer et glisser pour redimensionner le panneau.",
      collapsibleSplitTip : "Cliquer et glisser pour redimensionner le panneau. Double-cliquer pour le cacher."
   });
Severity: Major
Found in public/ext/locale/ext-lang-fr.js and 42 other locations - About 1 hr to fix
public/ext/locale/ext-lang-af.js on lines 179..184
public/ext/locale/ext-lang-bg.js on lines 273..278
public/ext/locale/ext-lang-ca.js on lines 288..293
public/ext/locale/ext-lang-cs.js on lines 288..293
public/ext/locale/ext-lang-da.js on lines 291..296
public/ext/locale/ext-lang-de.js on lines 319..324
public/ext/locale/ext-lang-el_GR.js on lines 303..308
public/ext/locale/ext-lang-en.js on lines 318..323
public/ext/locale/ext-lang-en_GB.js on lines 294..299
public/ext/locale/ext-lang-es.js on lines 291..296
public/ext/locale/ext-lang-fa.js on lines 267..272
public/ext/locale/ext-lang-fi.js on lines 297..302
public/ext/locale/ext-lang-fr_CA.js on lines 213..218
public/ext/locale/ext-lang-gr.js on lines 170..175
public/ext/locale/ext-lang-he.js on lines 287..292
public/ext/locale/ext-lang-hu.js on lines 291..296
public/ext/locale/ext-lang-id.js on lines 297..302
public/ext/locale/ext-lang-it.js on lines 289..294
public/ext/locale/ext-lang-ja.js on lines 291..296
public/ext/locale/ext-lang-ko.js on lines 261..266
public/ext/locale/ext-lang-lt.js on lines 306..311
public/ext/locale/ext-lang-lv.js on lines 171..176
public/ext/locale/ext-lang-mk.js on lines 171..176
public/ext/locale/ext-lang-nl.js on lines 296..301
public/ext/locale/ext-lang-no_NB.js on lines 289..294
public/ext/locale/ext-lang-no_NN.js on lines 289..294
public/ext/locale/ext-lang-pl.js on lines 299..304
public/ext/locale/ext-lang-pt.js on lines 255..260
public/ext/locale/ext-lang-pt_BR.js on lines 297..302
public/ext/locale/ext-lang-pt_PT.js on lines 292..297
public/ext/locale/ext-lang-ro.js on lines 290..295
public/ext/locale/ext-lang-ru.js on lines 314..319
public/ext/locale/ext-lang-sk.js on lines 177..182
public/ext/locale/ext-lang-sl.js on lines 171..176
public/ext/locale/ext-lang-sr.js on lines 174..179
public/ext/locale/ext-lang-sr_RS.js on lines 173..178
public/ext/locale/ext-lang-sv_SE.js on lines 173..178
public/ext/locale/ext-lang-th.js on lines 289..294
public/ext/locale/ext-lang-ukr.js on lines 256..261
public/ext/locale/ext-lang-vn.js on lines 176..181
public/ext/locale/ext-lang-zh_CN.js on lines 258..263
public/ext/locale/ext-lang-zh_TW.js on lines 173..178

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Neaktivno",
      disabledDatesText : "Neaktivno",
      minText           : "Datum u ovom polje mora biti poslije {0}",
Severity: Major
Found in public/ext/locale/ext-lang-hr.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

    failure: function() {
      Ext.MessageBox.show({
        title: config.failure.title,
        msg: 'Internal error occured. See logs for details.',
        buttons: Ext.Msg.OK,
Severity: Major
Found in public/javascripts/application.js and 1 other location - About 1 hr to fix
public/javascripts/application.js on lines 185..192

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Atspējots",
      disabledDatesText : "Atspējots",
      minText           : "Datumam šajā laukā jābūt lielākam kā {0}",
Severity: Major
Found in public/ext/locale/ext-lang-lv.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Desabilitado",
      disabledDatesText : "Desabilitado",
      minText           : "A data deste campo deve ser posterior a {0}",
Severity: Major
Found in public/ext/locale/ext-lang-pt.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Не доступно",
      disabledDatesText : "Не доступно",
      minText           : "Дата у цьому полі повинна бути більша {0}",
Severity: Major
Found in public/ext/locale/ext-lang-ukr.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

    failure: function() {
      Ext.MessageBox.show({
        title: config.failure.title,
        msg: 'Internal error occured. See logs for details.',
        buttons: Ext.Msg.OK,
Severity: Major
Found in public/javascripts/application.js and 1 other location - About 1 hr to fix
public/javascripts/application.js on lines 252..259

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Vô hiệu",
      disabledDatesText : "Vô hiệu",
      minText           : "Ngày nhập trong ô này phải sau ngày {0}",
Severity: Major
Found in public/ext/locale/ext-lang-vn.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "ÁðåíåñãïðïéçìÝíï",
      disabledDatesText : "ÁðåíåñãïðïéçìÝíï",
      minText           : "Ç çìåñïìçíßá ó' áõôü ôï ðåäßï ðñÝðåé íá åßíáé ìåôÜ áðü {0}",
Severity: Major
Found in public/ext/locale/ext-lang-gr.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Désactivé",
      disabledDatesText : "Désactivé",
      minText           : "La date de ce champ doit être avant le {0}",
Severity: Major
Found in public/ext/locale/ext-lang-fr_CA.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Пасивно",
      disabledDatesText : "Пасивно",
      minText           : "Датум у овом пољу мора бити након {0}",
Severity: Major
Found in public/ext/locale/ext-lang-sr_RS.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Неактивно",
      disabledDatesText : "Неактивно",
      minText           : "Датумот во ова поле мора да биде пред {0}",
Severity: Major
Found in public/ext/locale/ext-lang-mk.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "비활성",
      disabledDatesText : "비활성",
      minText           : "{0}일 이후여야 합니다.",
Severity: Major
Found in public/ext/locale/ext-lang-ko.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Inaktiverad",
      disabledDatesText : "Inaktiverad",
      minText           : "Datumet i detta fält måste inträffa efter {0}",
Severity: Major
Found in public/ext/locale/ext-lang-sv_SE.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sl.js on lines 126..135
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Onemogočen",
      disabledDatesText : "Onemogočen",
      minText           : "Datum mora biti po {0}",
Severity: Major
Found in public/ext/locale/ext-lang-sl.js and 17 other locations - About 1 hr to fix
public/ext/locale/ext-lang-el_GR.js on lines 171..180
public/ext/locale/ext-lang-fa.js on lines 144..153
public/ext/locale/ext-lang-fr_CA.js on lines 168..177
public/ext/locale/ext-lang-gr.js on lines 125..134
public/ext/locale/ext-lang-hr.js on lines 159..168
public/ext/locale/ext-lang-ko.js on lines 129..138
public/ext/locale/ext-lang-lv.js on lines 126..135
public/ext/locale/ext-lang-mk.js on lines 126..135
public/ext/locale/ext-lang-pt.js on lines 132..141
public/ext/locale/ext-lang-pt_BR.js on lines 174..183
public/ext/locale/ext-lang-sk.js on lines 132..141
public/ext/locale/ext-lang-sr_RS.js on lines 128..137
public/ext/locale/ext-lang-sv_SE.js on lines 128..137
public/ext/locale/ext-lang-ukr.js on lines 133..142
public/ext/locale/ext-lang-vn.js on lines 131..140
public/ext/locale/ext-lang-zh_CN.js on lines 134..143
public/ext/locale/ext-lang-zh_TW.js on lines 128..137

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

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

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

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

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

Refactorings

Further Reading

Method stat_details has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def stat_details
    @virtual_server = VirtualServer.find_by_id(params[:id])
    redirect_to :controller => 'dashboard' and return if !@virtual_server or !@current_user.can_control(@virtual_server)

    @up_level = '/admin/virtual-servers/show?id=' + @virtual_server.id.to_s
Severity: Minor
Found in app/controllers/admin/virtual_servers_controller.rb - About 1 hr to fix

    Method restore has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
    Open

      def restore
        orig_ve_state = virtual_server.state
        virtual_server.stop if 'running' == orig_ve_state
    
        job_id = restore_now['job_id']
    Severity: Minor
    Found in app/models/backup.rb - About 1 hr to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method virtual_server_properties has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def virtual_server_properties(virtual_server)
          params = [
            {
              :parameter => t('admin.virtual_servers.form.create_server.field.identity'),
              :value => virtual_server.identity,
    Severity: Minor
    Found in app/controllers/admin/virtual_servers_controller.rb - About 1 hr to fix

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

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

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 65.

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

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

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

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

      Refactorings

      Further Reading

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

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

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 65.

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

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

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

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

      Refactorings

      Further Reading

      Severity
      Category
      Status
      Source
      Language