talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

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

    unhideTabStripItem : function(item){
        item = this.getComponent(item);
        var el = this.getTabEl(item);
        if(el){
            el.style.display = '';
app/assets/javascripts/ext/src/widgets/TabPanel.js on lines 732..739

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

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

                    this.mon(this.resizeContainer.getLayoutTarget(),'scroll',function(){
                      if(this.renderedOutside) {
                        this.wrap.setX(this.getEl().getX());
                        this.wrap.setY(this.getEl().getY());
                      }
Severity: Major
Found in app/assets/javascripts/ext_extensions/FileUploadField.js and 1 other location - About 2 hrs to fix
app/assets/javascripts/ext_extensions/FileUploadField.js on lines 92..97

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Недостъпен",
    disabledDatesText : "Недостъпен",
    minText           : "Датата в това поле трябва да е след {0}",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-bg.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 locations. Consider refactoring.
Open

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Neprieinama",
    disabledDatesText : "Neprieinama",
    minText           : "Šiame lauke data turi būti didesnė už {0}",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-lt.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 locations. Consider refactoring.
Open

if(Ext.form.DateField){
   Ext.apply(Ext.form.DateField.prototype, {
      disabledDaysText  : "Inaktiveret",
      disabledDatesText : "Inaktiveret",
      minText           : "Datoen i dette felt skal være efter {0}",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-da.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 locations. Consider refactoring.
Open

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "無効",
    disabledDatesText : "無効",
    minText           : "このフィールドの日付は、 {0} 以降の日付に設定してください。",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ja.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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

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

    unhideTabStripItem : function(item){
        item = this.getComponent(item);
        var el = this.getTabEl(item);
        if(el){
            el.style.display = '';
Severity: Major
Found in app/assets/javascripts/ext/src/widgets/TabPanel.js and 1 other location - About 2 hrs to fix
app/assets/javascripts/ext_extensions/VerticalTabPanel/Ext.ux.tot2ivn.VrTabPanel.js on lines 577..584

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

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

    bind: function( type, data, fn ) {
        return type == "unload" ? this.one(type, data, fn) : this.each(function(){
            jQuery.event.add( this, type, fn || data, fn && data );
        });
    },
Severity: Major
Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js and 1 other location - About 2 hrs to fix
app/assets/javascripts/jquery.js on lines 2895..2899

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

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Не доступно",
    disabledDatesText : "Не доступно",
    minText           : "Дата в этом поле должна быть позде {0}",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ru.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 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 app/assets/javascripts/ext/src/locale/ext-lang-af.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 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 app/assets/javascripts/ext/src/locale/ext-lang-fi.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 locations. Consider refactoring.
Open

if(Ext.form.DateField){
  Ext.apply(Ext.form.DateField.prototype, {
    disabledDaysText  : "Deaktivert",
    disabledDatesText : "Deaktivert",
    minText           : "Datoen i dette feltet må være etter {0}",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 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 app/assets/javascripts/ext/src/locale/ext-lang-cs.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 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 app/assets/javascripts/ext/src/locale/ext-lang-pl.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 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 app/assets/javascripts/ext/src/locale/ext-lang-en.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 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 app/assets/javascripts/ext/src/locale/ext-lang-sr.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 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 app/assets/javascripts/ext/src/locale/ext-lang-nl.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 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 app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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 25 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 ne peut être antérieure au {0}",
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-fr.js and 24 other locations - About 2 hrs to fix
app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
app/assets/javascripts/ext/src/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

Severity
Category
Status
Source
Language