talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

    onDestroy : function(){
        if(this.checkTask){
            this.checkTask.cancel();
            this.checkTask = null;
        }
Severity: Major
Found in app/assets/javascripts/ext/src/widgets/form/RadioGroup.js and 1 other location - About 1 hr to fix
app/assets/javascripts/ext/src/widgets/form/TextField.js on lines 540..546

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

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

        opt.complete = function(){
            if ( opt.queue !== false )
                jQuery(this).dequeue();
            if ( jQuery.isFunction( opt.old ) )
                opt.old.apply( this );
Severity: Major
Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js and 1 other location - About 1 hr to fix
app/assets/javascripts/jquery.js on lines 3981..3986

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

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

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

    remove: function(elem, types, handler) {
        // don't do events on text and comment nodes
        if ( elem.nodeType == 3 || elem.nodeType == 8 )
            return;

Severity: Minor
Found in app/assets/javascripts/jquery.js - About 1 hr to fix

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

        buildHeaders: function() {
            var tuples     = this.getTuples(),
                rowCount   = tuples.length,
                dimensions = this.dimensions,
                colCount   = dimensions.length,
    Severity: Minor
    Found in app/assets/javascripts/ext/src/widgets/grid/PivotAxis.js - About 1 hr to fix

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

          initTemplates : function()
          {
              var ts = this.templates || {};
              
              if (!ts.row) {
      Severity: Minor
      Found in app/assets/javascripts/ext_extensions/TreeGrid/TreeGrid.js - About 1 hr to fix

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

            initTemplates : function()
            {
                var ts = this.templates || {};
                
                if (!ts.row) {
        Severity: Minor
        Found in app/assets/javascripts/ext_extensions/TreeGrid/src/GridView.js - About 1 hr to fix

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

              init: function(grid){
                  this.grid = grid;
                  this.ownerCt = grid;
                  if(this.clicksToEdit === 2){
                      grid.on('rowdblclick', this.onRowDblClick, this);
          Severity: Minor
          Found in app/assets/javascripts/ext_extensions/RowEditor.js - About 1 hr to fix

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

                autoScrollTabs : function(){
                    this.pos = this.tabPosition=='bottom' ? this.footer : this.header;
                    var count = this.items.length,
                        ow = this.pos.dom.offsetHeight,
                        tw = this.pos.dom.clientHeight,

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

              Date.monthNumbers = {
                Jan : 0,
                Feb : 1,
                Mar : 2,
                Apr : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js and 21 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 75..88
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 51..64
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 53..66
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 62..75
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 61..74
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 59..72
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 59..72

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

              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

              Date.monthNumbers = {
                Ian : 0,
                Feb : 1,
                Mar : 2,
                Apr : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-ro.js and 21 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 75..88
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 51..64
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 53..66
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 62..75
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 61..74
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 59..72
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 59..72

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

              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

              Date.monthNumbers = {
                Jan : 0,
                Feb : 1,
                Mar : 2,
                Apr : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js and 21 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 75..88
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 51..64
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 53..66
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 62..75
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 61..74
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 59..72
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 59..72

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

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

              Date.monthNumbers = {
                "Á€" : 0,
                "¡Ÿ" : 1,
                "ÁÕ€" : 2,
                "àÁÂ" : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-th.js and 6 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 70..83
              app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 63..76
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 69..82
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 69..82

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

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

              Date.monthNumbers = {
                 "Leden"      : 0,
                 "Únor"       : 1,
                 "Březen"     : 2,
                 "Duben"      : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-cs.js and 6 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 63..76
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 69..82
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 69..82
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 55..68

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

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

              Ext.applyIf(String, {
                  /**
                   * Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens.  Each
                   * token must be unique, and must increment in the format {0}, {1}, etc.  Example usage:
                   * <pre><code>
              app/assets/javascripts/ext/adapter/ext/ext-base-debug.js on lines 994..1015
              app/assets/javascripts/ext/adapter/jquery/ext-jquery-adapter-debug.js on lines 994..1015
              app/assets/javascripts/ext/adapter/yui/ext-yui-adapter-debug.js on lines 994..1015
              app/assets/javascripts/ext/src/ext-core/src/core/Ext.js on lines 994..1015

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

              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

              Date.monthNumbers = {
                Sty : 0,
                Lut : 1,
                Mar : 2,
                Kwi : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-pl.js and 21 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 75..88
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 51..64
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 53..66
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 62..75
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 61..74
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 59..72
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 59..72

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

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

              Date.monthNumbers = {
                "1" : 0,
                "2" : 1,
                "3" : 2,
                "4" : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-ja.js and 6 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 70..83
              app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 63..76
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 69..82
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 69..82
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 55..68

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

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

              Date.monthNumbers = {
                'Jan' : 0,
                'Feb' : 1,
                'Már' : 2,
                'Ápr' : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-hu.js and 6 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 70..83
              app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 63..76
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 69..82
              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 69..82
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 55..68

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

              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

              Date.monthNumbers = {
                Jan : 0,
                Feb : 1,
                Mar : 2,
                Apr : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js and 21 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 51..64
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 53..66
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 62..75
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 61..74
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 59..72
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 59..72

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

              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

              Date.monthNumbers = {
                Jan : 0,
                Feb : 1,
                Mar : 2,
                Apr : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js and 21 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 75..88
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 51..64
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 53..66
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 62..75
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 61..74
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 59..72
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 59..72

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

              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

              Date.monthNumbers = {
                Jan : 0,
                Feb : 1,
                Mar : 2,
                Apr : 3,
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-he.js and 21 other locations - About 1 hr to fix
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 75..88
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 48..61
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 49..62
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 51..64
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 57..70
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 62..75
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 61..74
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 52..65
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-pt_BR.js on lines 59..72
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 50..63
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 55..68
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 59..72

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

              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