talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

if(Ext.form.RadioGroup){
  Ext.apply(Ext.form.RadioGroup.prototype, {
    blankText : "このグループから1つのアイテムを選択しなければなりません。"
  });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ja.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

if(Ext.form.RadioGroup){
  Ext.apply(Ext.form.RadioGroup.prototype, {
    blankText : "Du mußt einen Eintrag aus der Gruppe auswählen"
  });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-de.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

            proxy: new Ext.data.HttpProxy({
                url: '/search/show_clean.json',
                api: {read: {url: '/search/show_clean.json', method:'POST'}}
            }),
Severity: Minor
Found in app/assets/javascripts/audience/UserSelectionGrid.js and 1 other location - About 30 mins to fix
app/assets/javascripts/admin/organizations/view/New.js on lines 33..36

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

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

if(Ext.form.RadioGroup){
  Ext.apply(Ext.form.RadioGroup.prototype, {
    blankText : "Debe seleccionar un \u00E9tem de este grupo"
  });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-es.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

        c.tpl.format = function(v){
            if(v === undefined){
                return u;
            }
            if(!v || v === 'false'){
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/list/Column.js and 1 other location - About 30 mins to fix
app/assets/javascripts/ext/src/widgets/grid/Column.js on lines 395..403

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

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

        defined = Ext.isDefined(google) && Ext.isDefined(google.maps) && Ext.isDefined(google.maps.Map);
Severity: Minor
Found in app/assets/javascripts/ext_extensions/GMapPanel.js and 2 other locations - About 30 mins to fix
app/assets/javascripts/ext_extensions/GMapPanel.js on lines 53..53
app/assets/javascripts/ext_extensions/GMapPanel.js on lines 184..184

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

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

if(Ext.grid.NumberColumn){
    Ext.apply(Ext.grid.NumberColumn.prototype, {
        format : '0,000.00'
    });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-en.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

if(Ext.form.CheckboxGroup){
  Ext.apply(Ext.form.CheckboxGroup.prototype, {
    blankText : "Ha de seleccionar almenys un étem d\'aquest group"
  });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ca.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

if(Ext.form.CheckboxGroup){
  Ext.apply(Ext.form.CheckboxGroup.prototype, {
    blankText : "このグループから最低1つのアイテムを選択しなければなりません。"
  });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-ja.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

if(Ext.grid.DateColumn){
    Ext.apply(Ext.grid.DateColumn.prototype, {
        format : 'd.m.Y'
    });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-de.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

if(Ext.grid.DateColumn){
    Ext.apply(Ext.grid.DateColumn.prototype, {
        format : 'm/d/Y'
    });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-en.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

if(Ext.form.CheckboxGroup){
  Ext.apply(Ext.form.CheckboxGroup.prototype, {
    blankText : "Du mußt mehr als einen Eintrag aus der Gruppe auswählen"
  });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-de.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

        if(isLoaded){
            window[trans.cb] = undefined;
            try{
                delete window[trans.cb];
            }catch(e){}
Severity: Minor
Found in app/assets/javascripts/ext/src/data/ScriptTagProxy.js and 1 other location - About 30 mins to fix
app/assets/javascripts/ext/src/data/ScriptTagProxy.js on lines 275..280

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

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

            for ( var i in this.options.curAnim )
                if ( this.options.curAnim[i] !== true )
                    done = false;
Severity: Minor
Found in app/assets/javascripts/jquery.js and 1 other location - About 30 mins to fix
app/assets/javascripts/jquery-tooltip/lib/jquery.js on lines 3220..3222

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

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

        if(s.successProperty){
            v = this.getSuccess(o);
            if(v === false || v === 'false'){
                success = false;
            }
Severity: Minor
Found in app/assets/javascripts/ext/src/data/ArrayReader.js and 1 other location - About 30 mins to fix
app/assets/javascripts/ext/src/data/JsonReader.js on lines 239..244

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

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

    nodeName: function( elem, name ) {
        return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
    },
Severity: Minor
Found in app/assets/javascripts/jquery.js and 1 other location - About 30 mins to fix
app/assets/javascripts/jquery-tooltip/lib/jquery.js on lines 636..638

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

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

if(Ext.form.CheckboxGroup){
  Ext.apply(Ext.form.CheckboxGroup.prototype, {
    blankText : 'Selecteer minimaal een element in deze groep'
  });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-nl.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

if(Ext.form.RadioGroup){
  Ext.apply(Ext.form.RadioGroup.prototype, {
    blankText : "You must select one item in this group"
  });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-en.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 338..342
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

if(Ext.form.RadioGroup){
  Ext.apply(Ext.form.RadioGroup.prototype, {
    blankText : "Vous devez sélectionner au moins un élément dans ce groupe"
  });
}
Severity: Major
Found in app/assets/javascripts/ext/src/locale/ext-lang-fr.js and 21 other locations - About 30 mins to fix
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 305..309
app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 336..340
app/assets/javascripts/ext/src/locale/ext-lang-de.js on lines 342..346
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 306..310
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 312..316
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 335..339
app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 341..345
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 311..315
app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 317..321
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 332..336
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 308..312
app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 314..318
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 323..327
app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 329..333
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 313..317
app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 319..323

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

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

    unbind: function( type, fn ) {
        return this.each(function(){
            jQuery.event.remove( this, type, fn );
        });
    },
Severity: Minor
Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js and 1 other location - About 30 mins to fix
app/assets/javascripts/jquery.js on lines 2911..2915

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

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