sibprogrammer/owp

View on GitHub

Showing 803 of 803 total issues

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Disabilitato",
      disabledDatesText : "Disabilitato",
      minText           : "La data deve essere successiva al {0}",
Severity: Major
Found in public/ext/locale/ext-lang-it.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "»ÔŽ",
    disabledDatesText : "»ÔŽ",
    minText           : "The date in this field must be after {0}",
Severity: Major
Found in public/ext/locale/ext-lang-th.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Deaktivert",
    disabledDatesText : "Deaktivert",
    minText           : "Datoen i dette feltet må vere etter {0}",
Severity: Major
Found in public/ext/locale/ext-lang-no_NN.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
    Ext.apply(Ext.form.DateField.prototype, {
        disabledDaysText    : "Wyłączony",
        disabledDatesText    : "Wyłączony",
        minText                : "Data w tym polu musi być późniejsza od {0}",
Severity: Major
Found in public/ext/locale/ext-lang-pl.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
    Ext.apply(Ext.form.DateField.prototype, {
       disabledDaysText  : "Afgeskakel",
       disabledDatesText : "Afgeskakel",
       minText           : "Die datum in hierdie veld moet na {0} wees",
Severity: Major
Found in public/ext/locale/ext-lang-af.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Ei käytössä",
    disabledDatesText : "Ei käytössä",
    minText           : "Tämän kentän päivämäärän tulee olla {0} jälkeen",
Severity: Major
Found in public/ext/locale/ext-lang-fi.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Indisponibil",
    disabledDatesText : "Indisponibil",
    minText           : "Data din această casetă trebuie să fie după {0}",
Severity: Major
Found in public/ext/locale/ext-lang-ro.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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 26 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-he.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Disabled",
    disabledDatesText : "Disabled",
    minText           : "The date in this field must be after {0}",
Severity: Major
Found in public/ext/locale/ext-lang-en_GB.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Pasivno",
      disabledDatesText : "Pasivno",
      minText           : "Datum u ovom polju mora biti nakon {0}",
Severity: Major
Found in public/ext/locale/ext-lang-sr.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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 26 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-bg.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Disabled",
    disabledDatesText : "Disabled",
    minText           : "The date in this field must be after {0}",
Severity: Major
Found in public/ext/locale/ext-lang-en.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Disabled",
    disabledDatesText : "Disabled",
    minText           : "Bu tarih, {0} tarihinden daha sonra olmalýdýr", 
Severity: Major
Found in public/ext/locale/ext-lang-tr.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167

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

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

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Neaktivní",
      disabledDatesText : "Neaktivní",
      minText           : "Datum v tomto poli nesmí být starší než {0}",
Severity: Major
Found in public/ext/locale/ext-lang-cs.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText: 'Uitgeschakeld',
    disabledDatesText: 'Uitgeschakeld',
    minText: 'De datum in dit veld moet na {0} liggen',
Severity: Major
Found in public/ext/locale/ext-lang-nl.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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 26 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_PT.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-hu.js on lines 159..169
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Nem választható",
    disabledDatesText : "Nem választható",
    minText           : "A dátum nem lehet korábbi, mint {0}",
Severity: Major
Found in public/ext/locale/ext-lang-hu.js and 25 other locations - About 2 hrs to fix
public/ext/locale/ext-lang-af.js on lines 133..143
public/ext/locale/ext-lang-bg.js on lines 149..159
public/ext/locale/ext-lang-ca.js on lines 158..168
public/ext/locale/ext-lang-cs.js on lines 156..166
public/ext/locale/ext-lang-da.js on lines 159..169
public/ext/locale/ext-lang-de.js on lines 168..178
public/ext/locale/ext-lang-en.js on lines 166..176
public/ext/locale/ext-lang-en_GB.js on lines 162..172
public/ext/locale/ext-lang-es.js on lines 161..171
public/ext/locale/ext-lang-fi.js on lines 161..171
public/ext/locale/ext-lang-fr.js on lines 183..193
public/ext/locale/ext-lang-he.js on lines 155..165
public/ext/locale/ext-lang-it.js on lines 157..167
public/ext/locale/ext-lang-ja.js on lines 161..171
public/ext/locale/ext-lang-lt.js on lines 170..180
public/ext/locale/ext-lang-nl.js on lines 166..176
public/ext/locale/ext-lang-no_NB.js on lines 157..167
public/ext/locale/ext-lang-no_NN.js on lines 157..167
public/ext/locale/ext-lang-pl.js on lines 167..177
public/ext/locale/ext-lang-pt_PT.js on lines 156..166
public/ext/locale/ext-lang-ro.js on lines 157..167
public/ext/locale/ext-lang-ru.js on lines 171..181
public/ext/locale/ext-lang-sr.js on lines 128..138
public/ext/locale/ext-lang-th.js on lines 157..167
public/ext/locale/ext-lang-tr.js on lines 171..181

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

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 install has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
Open

  def install
    hardware_server = HardwareServer.find_by_id(params[:hardware_server_id])
    render(:json => { :success => false }) and return if !hardware_server

    jobs_ids = []
Severity: Minor
Found in app/controllers/admin/os_templates_controller.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

Function groupAction has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Owp.list.groupAction = function(config) {
  config = Ext.apply({
    gridName: '',
    url: '',
    command: '',
Severity: Minor
Found in public/javascripts/application.js - About 1 hr to fix

    Method get_usage_stats has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def get_usage_stats(hardware_server)
          stats = []
    
          os_version = hardware_server.os_version
          stats << {
    Severity: Minor
    Found in app/controllers/admin/hardware_servers_controller.rb - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language