talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Avoid too many return statements within this method.
Open

    return "valid"
Severity: Major
Found in app/models/user_batch.rb - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return true;                
    Severity: Major
    Found in app/assets/javascripts/lib/fileuploader.js - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return false
      Severity: Major
      Found in lib/workers/query_swn_for_acknowledgments_worker.rb - About 30 mins to fix

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

        if(Ext.form.CheckboxGroup){
          Ext.apply(Ext.form.CheckboxGroup.prototype, {
            blankText : "Debe seleccionar al menos 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 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

            nodeName: function( elem, name ) {
                return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
            },
        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 666..668

        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 : "Jūs turite padaryti bent vieną pasirinkimą šioje grupėje"
          });
        }
        Severity: Major
        Found in app/assets/javascripts/ext/src/locale/ext-lang-lt.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 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 : "You must select at least one item in this group"
          });
        }
        Severity: Major
        Found in app/assets/javascripts/ext/src/locale/ext-lang-en_GB.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 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

                    window[trans.cb] = function(){
                        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 268..273

        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_GB.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-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 : "Ha de seleccionar un étem d\'aquest grup"
          });
        }
        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 305..309
        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

        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/admin/organizations/view/New.js and 1 other location - About 30 mins to fix
        app/assets/javascripts/audience/UserSelectionGrid.js on lines 59..62

        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.js and 1 other location - About 30 mins to fix
        app/assets/javascripts/jquery-tooltip/lib/jquery.js on lines 2199..2203

        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 : "You must select at least 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 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 : "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 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 3 locations. Consider refactoring.
        Open

                defined = Ext.isDefined(google) && Ext.isDefined(google.maps) && Ext.isDefined(google.maps.Map) && Ext.isDefined(StyledMarker);
        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 150..150

        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-tooltip/lib/jquery.js and 1 other location - About 30 mins to fix
        app/assets/javascripts/jquery.js on lines 4105..4107

        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 : 'Selecteer 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 313..317

        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/i'
            });
        }
        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 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.RadioGroup){
          Ext.apply(Ext.form.RadioGroup.prototype, {
              blankText : "Jūs turite padaryti bent vieną pasirinkimą šioje grupėje"
          });
        }
        Severity: Major
        Found in app/assets/javascripts/ext/src/locale/ext-lang-lt.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-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 3 locations. Consider refactoring.
        Open

                if(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 150..150
        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

        Severity
        Category
        Status
        Source
        Language