talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Function createConsole has 75 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createConsole(){

    var scriptPanel = new Ext.debug.ScriptsPanel();
    var logView = new Ext.debug.LogPanel();
    var tree = new Ext.debug.DomTree();
Severity: Major
Found in app/assets/javascripts/ext/src/debug.js - About 3 hrs to fix

    Function destroy has 75 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        destroy : function() {
            var me              = this,
                grid            = me.grid,
                gridEl          = grid.getGridEl(),
                dragZone        = me.dragZone,
    Severity: Major
    Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js - About 3 hrs to fix

      Function handleKeyDown has 75 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          handleKeyDown : function(e){
              if(!e.isNavKeyPress()){
                  return;
              }
              
      Severity: Major
      Found in app/assets/javascripts/ext/src/widgets/grid/CellSelectionModel.js - About 3 hrs to fix

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

                init: function(el, attributes, duration, method) {
                    var me = this,
                        actualFrames = 0,
                        mgr = EXTLIB.AnimMgr;
        
        
        Severity: Major
        Found in app/assets/javascripts/ext/src/ext-core/src/adapter/ext-base-anim.js - About 3 hrs to fix

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

                  init: function(el, attributes, duration, method) {
                      var me = this,
                          actualFrames = 0,
                          mgr = EXTLIB.AnimMgr;
          
          
          Severity: Major
          Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 3 hrs to fix

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

                  listeners: {
                    scope: this,
                    'load': {fn: function(){ this.ancestor.getPanel().doLayout(); }, delay: 10},
                    'add': {fn: function(){ this.ancestor.getPanel().doLayout(); }, delay: 10}
                  },
            Severity: Major
            Found in app/assets/javascripts/profile/OrganizationsControl.js and 2 other locations - About 3 hrs to fix
            app/assets/javascripts/profile/DevicesControl.js on lines 86..90
            app/assets/javascripts/profile/RolesControl.js on lines 105..109

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

            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

                  listeners: {
                    scope: this,
                    'load': {fn: function(){ this.ancestor.getPanel().doLayout(); }, delay: 10},
                    'add': {fn: function(){ this.ancestor.getPanel().doLayout(); }, delay: 10}
                  },
            Severity: Major
            Found in app/assets/javascripts/profile/DevicesControl.js and 2 other locations - About 3 hrs to fix
            app/assets/javascripts/profile/OrganizationsControl.js on lines 84..88
            app/assets/javascripts/profile/RolesControl.js on lines 105..109

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

            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

                  listeners: {
                    scope: this,
                    'load': {fn: function(){ this.ancestor.getPanel().doLayout(); }, delay: 10},
                    'add': {fn: function(){ this.ancestor.getPanel().doLayout(); }, delay: 10}
                  },
            Severity: Major
            Found in app/assets/javascripts/profile/RolesControl.js and 2 other locations - About 3 hrs to fix
            app/assets/javascripts/profile/DevicesControl.js on lines 86..90
            app/assets/javascripts/profile/OrganizationsControl.js on lines 84..88

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

            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

                        var me = this,
                            t = Math.max(me.top, region.top),
                            r = Math.min(me.right, region.right),
                            b = Math.min(me.bottom, region.bottom),
                            l = Math.max(me.left, region.left);
            app/assets/javascripts/ext/src/ext-core/src/adapter/ext-base-region.js on lines 45..49

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

            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

                prevVisible : function(h){
                    var v = this.view, cm = this.grid.colModel;
                    h = h.prevSibling;
                    while(h){
                        if(!cm.isHidden(v.getCellIndex(h))){
            Severity: Major
            Found in app/assets/javascripts/ext/src/widgets/grid/ColumnDD.js and 1 other location - About 3 hrs to fix
            app/assets/javascripts/ext/src/widgets/grid/ColumnDD.js on lines 95..105

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

            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

                nextVisible : function(h){
                    var v = this.view, cm = this.grid.colModel;
                    h = h.nextSibling;
                    while(h){
                        if(!cm.isHidden(v.getCellIndex(h))){
            Severity: Major
            Found in app/assets/javascripts/ext/src/widgets/grid/ColumnDD.js and 1 other location - About 3 hrs to fix
            app/assets/javascripts/ext/src/widgets/grid/ColumnDD.js on lines 107..117

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

            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

                        var me = this,
                            t = Math.min(me.top, region.top),
                            r = Math.max(me.right, region.right),
                            b = Math.max(me.bottom, region.bottom),
                            l = Math.min(me.left, region.left);
            app/assets/javascripts/ext/src/ext-core/src/adapter/ext-base-region.js on lines 33..37

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

            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

            File CheckboxGroup.js has 290 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*!
             * Ext JS Library 3.3.0
             * Copyright(c) 2006-2010 Ext JS, Inc.
             * licensing@extjs.com
             * http://www.extjs.com/license
            Severity: Minor
            Found in app/assets/javascripts/ext/src/widgets/form/CheckboxGroup.js - About 2 hrs to fix

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

              if(Ext.util.Format){
                 Ext.util.Format.date = function(v, format){
                    if(!v) return "";
                    if(!(v instanceof Date)) v = new Date(Date.parse(v));
                    return v.dateFormat(format || "d.m.Y");
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-hr.js and 41 other locations - About 2 hrs to fix
              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 89..95
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 113..119
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 114..120
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 96..102
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 84..90
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 104..110
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 110..116
              app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 100..106
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 106..112
              app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 73..79
              app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 74..80
              app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 69..75

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

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

              if(Ext.util.Format){
                Ext.util.Format.date = function(v, format){
                  if(!v) return "";
                  if(!(v instanceof Date)) v = new Date(Date.parse(v));
                  return v.dateFormat(format || "d/m/Y");
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-id.js and 41 other locations - About 2 hrs to fix
              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 89..95
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 113..119
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 114..120
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 96..102
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 84..90
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 110..116
              app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 100..106
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 106..112
              app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 73..79
              app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 74..80
              app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 69..75

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

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

              if(Ext.util.Format){
                Ext.util.Format.date = function(v, format){
                  if(!v) return "";
                  if(!(v instanceof Date)) v = new Date(Date.parse(v));
                  return v.dateFormat(format || "Y/m/d");
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-ja.js and 41 other locations - About 2 hrs to fix
              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 89..95
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 113..119
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 114..120
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 96..102
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 84..90
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 104..110
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 110..116
              app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 100..106
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 106..112
              app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 73..79
              app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 74..80
              app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 69..75

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

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

              if(Ext.util.Format){
                 Ext.util.Format.date = function(v, format){
                    if(!v) return "";
                    if(!(v instanceof Date)) v = new Date(Date.parse(v));
                    return v.dateFormat(format || "Y/m/d");
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-fa.js and 41 other locations - About 2 hrs to fix
              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 89..95
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 113..119
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 114..120
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 96..102
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 104..110
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 110..116
              app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 100..106
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 106..112
              app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 73..79
              app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 74..80
              app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 69..75

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

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

              if(Ext.util.Format){
                 Ext.util.Format.date = function(v, format){
                    if(!v) return "";
                    if(!(v instanceof Date)) v = new Date(Date.parse(v));
                    return v.dateFormat(format || "Y-m-d");
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js and 41 other locations - About 2 hrs to fix
              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 89..95
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 113..119
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 114..120
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 96..102
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 84..90
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 104..110
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 110..116
              app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 100..106
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 106..112
              app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 73..79
              app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 74..80
              app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 69..75

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

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

              if(Ext.util.Format){
                 Ext.util.Format.date = function(v, format){
                    if(!v) return "";
                    if(!(v instanceof Date)) v = new Date(Date.parse(v));
                    return v.dateFormat(format || "d.m.y");
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-mk.js and 41 other locations - About 2 hrs to fix
              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 89..95
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 113..119
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 114..120
              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 96..102
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 84..90
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 104..110
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 110..116
              app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 100..106
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 106..112
              app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 73..79
              app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 74..80
              app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 69..75

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

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

              if(Ext.util.Format){
                Ext.util.Format.date = function(v, format){
                  if(!v) return "";
                  if(!(v instanceof Date)) v = new Date(Date.parse(v));
                  return v.dateFormat(format || "m/d/Y");
              Severity: Major
              Found in app/assets/javascripts/ext/src/locale/ext-lang-en.js and 41 other locations - About 2 hrs to fix
              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 89..95
              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 113..119
              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-el_GR.js on lines 114..120
              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-fa.js on lines 84..90
              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-fr_CA.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-gr.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 99..105
              app/assets/javascripts/ext/src/locale/ext-lang-id.js on lines 104..110
              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 95..101
              app/assets/javascripts/ext/src/locale/ext-lang-ko.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 110..116
              app/assets/javascripts/ext/src/locale/ext-lang-lv.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-mk.js on lines 69..75
              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 100..106
              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 106..112
              app/assets/javascripts/ext/src/locale/ext-lang-pt.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 92..98
              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-sk.js on lines 72..78
              app/assets/javascripts/ext/src/locale/ext-lang-sl.js on lines 68..74
              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sr_RS.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-sv_SE.js on lines 70..76
              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 97..103
              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 111..117
              app/assets/javascripts/ext/src/locale/ext-lang-ukr.js on lines 73..79
              app/assets/javascripts/ext/src/locale/ext-lang-vn.js on lines 74..80
              app/assets/javascripts/ext/src/locale/ext-lang-zh_CN.js on lines 75..81
              app/assets/javascripts/ext/src/locale/ext-lang-zh_TW.js on lines 69..75

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

              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