talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Function Shadow has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Ext.Shadow = function(config) {
    Ext.apply(this, config);
    if (typeof this.mode != "string") {
        this.mode = this.defaultMode;
    }
Severity: Major
Found in app/assets/javascripts/ext/src/widgets/Shadow.js - About 2 hrs to fix

    Function autoScrollTabs has 51 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.offsetWidth,
                tw = this.pos.dom.clientWidth - 80,
    Severity: Major
    Found in app/assets/javascripts/ext_extensions/NavigableTabPanel.js - About 2 hrs to fix

      Function _createJurisdictionsTree has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _createJurisdictionsTree: function(){
              return this.jurisdictionTree = new Talho.ux.JurisdictionsTree({
                  store: this.jurisdiction_store,
                  store_listeners:{
                      scope: this,
      Severity: Minor
      Found in app/assets/javascripts/audience/AudiencePanel.js - About 2 hrs to fix

        Function getXY has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            getXY : function(el){ // this initially used Position.cumulativeOffset but it is not accurate enough
                var p, pe, b, scroll, bd = (document.body || document.documentElement);
                el = Ext.getDom(el);
        
                if(el == bd){
        Severity: Minor
        Found in app/assets/javascripts/ext/src/adapter/prototype-bridge.js - About 2 hrs to fix

          Function getXY has 50 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              getXY : function(el){
                  var p, pe, b, scroll, bd = (document.body || document.documentElement);
                  el = Ext.getDom(el);
          
                  if(el == bd){
          Severity: Minor
          Found in app/assets/javascripts/ext/src/adapter/yui-bridge.js - About 2 hrs to fix

            Function getXY has 50 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                getXY : function(el) {
                    var p, pe, b, scroll, bd = (document.body || document.documentElement);
                    el = Ext.getDom(el);
            
                    if(el == bd){
            Severity: Minor
            Found in app/assets/javascripts/ext/src/adapter/jquery-bridge.js - About 2 hrs to fix

              Function loadRecords has 50 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  loadRecords : function(o, options, success){
                      var i;
                      
                      if (this.isDestroyed === true) {
                          return;
              Severity: Minor
              Found in app/assets/javascripts/ext/src/data/Store.js - About 2 hrs to fix

                Function ComponentMgr has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                Ext.ComponentMgr = function(){
                    var all = new Ext.util.MixedCollection();
                    var types = {};
                    var ptypes = {};
                
                
                Severity: Minor
                Found in app/assets/javascripts/ext/src/widgets/ComponentMgr.js - About 2 hrs to fix

                  Function fixKeys has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      fixKeys : function(){ // load time branching for fastest keydown performance
                          if(Ext.isIE){
                              return function(e){
                                  var k = e.getKey(),
                                      doc = this.getDoc(),
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/widgets/form/HtmlEditor.js - About 2 hrs to fix

                    Function handleOverflow has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        handleOverflow: function(calculations, targetSize) {
                            this.showTrigger();
                            
                            var newWidth    = targetSize.width - this.afterCt.getWidth(),
                                boxes       = calculations.boxes,
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/widgets/layout/box/MenuOverflow.js - About 2 hrs to fix

                      Function getXY has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          getXY : function(el) {
                              var p, pe, b, scroll, bd = (document.body || document.documentElement);
                              el = Ext.getDom(el);
                      
                              if(el == bd){
                      Severity: Minor
                      Found in app/assets/javascripts/ext/adapter/jquery/ext-jquery-adapter-debug.js - About 2 hrs to fix

                        Function getXY has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            getXY : function(el){ // this initially used Position.cumulativeOffset but it is not accurate enough
                                var p, pe, b, scroll, bd = (document.body || document.documentElement);
                                el = Ext.getDom(el);
                        
                                if(el == bd){

                          Function getXY has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              getXY : function(el){
                                  var p, pe, b, scroll, bd = (document.body || document.documentElement);
                                  el = Ext.getDom(el);
                          
                                  if(el == bd){
                          Severity: Minor
                          Found in app/assets/javascripts/ext/adapter/yui/ext-yui-adapter-debug.js - About 2 hrs to fix

                            Function onRender has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                onRender : function(ct, position){
                                    Ext.ux.form.FileUploadField.superclass.onRender.call(this, ct, position);
                            
                                    this.wrap = this.el.wrap({cls:'x-form-field-wrap x-form-file-wrap'});
                                    this.el.addClass('x-form-file-text');
                            Severity: Minor
                            Found in app/assets/javascripts/ext_extensions/FileUploadField.js - About 2 hrs to fix

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

                              if(Ext.form.DateField){
                                Ext.apply(Ext.form.DateField.prototype, {
                                  disabledDaysText  : "Deshabilitat",
                                  disabledDatesText : "Deshabilitat",
                                  minText           : "La data en aquest camp ha de ser posterior a {0}",
                              Severity: Major
                              Found in app/assets/javascripts/ext/src/locale/ext-lang-ca.js and 24 other locations - About 2 hrs to fix
                              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
                              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
                              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
                              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
                              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
                              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
                              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
                              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
                              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
                              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
                              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
                              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 171..181

                              Duplicated Code

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

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

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

                              Tuning

                              This issue has a mass of 75.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

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

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

                              Duplicated Code

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

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

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

                              Tuning

                              This issue has a mass of 75.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

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

                              if(Ext.form.DateField){
                                Ext.apply(Ext.form.DateField.prototype, {
                                  disabledDaysText  : "Indisponibil",
                                  disabledDatesText : "Indisponibil",
                                  minText           : "Data din această casetă trebuie să fie după {0}",
                              Severity: Major
                              Found in app/assets/javascripts/ext/src/locale/ext-lang-ro.js and 24 other locations - About 2 hrs to fix
                              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
                              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
                              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
                              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
                              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
                              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
                              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
                              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
                              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
                              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
                              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
                              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
                              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 171..181

                              Duplicated Code

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

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

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

                              Tuning

                              This issue has a mass of 75.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

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

                              if(Ext.form.DateField){
                                Ext.apply(Ext.form.DateField.prototype, {
                                  disabledDaysText  : "������",
                                  disabledDatesText : "������",
                                  minText           : "{0} ������ ���� �� ���� ����� ����",
                              Severity: Major
                              Found in app/assets/javascripts/ext/src/locale/ext-lang-he.js and 24 other locations - About 2 hrs to fix
                              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
                              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
                              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
                              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
                              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
                              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
                              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
                              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
                              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
                              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
                              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
                              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 171..181

                              Duplicated Code

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

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

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

                              Tuning

                              This issue has a mass of 75.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

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

                              if(Ext.form.DateField){
                                Ext.apply(Ext.form.DateField.prototype, {
                                  disabledDaysText  : "»ÔŽ",
                                  disabledDatesText : "»ÔŽ",
                                  minText           : "The date in this field must be after {0}",
                              Severity: Major
                              Found in app/assets/javascripts/ext/src/locale/ext-lang-th.js and 24 other locations - About 2 hrs to fix
                              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
                              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
                              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
                              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
                              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js on lines 162..172
                              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
                              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
                              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
                              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
                              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
                              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
                              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
                              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 171..181

                              Duplicated Code

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

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

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

                              Tuning

                              This issue has a mass of 75.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

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

                              if(Ext.form.DateField){
                                Ext.apply(Ext.form.DateField.prototype, {
                                  disabledDaysText  : "Disabled",
                                  disabledDatesText : "Disabled",
                                  minText           : "The date in this field must be after {0}",
                              Severity: Major
                              Found in app/assets/javascripts/ext/src/locale/ext-lang-en_GB.js and 24 other locations - About 2 hrs to fix
                              app/assets/javascripts/ext/src/locale/ext-lang-af.js on lines 133..143
                              app/assets/javascripts/ext/src/locale/ext-lang-bg.js on lines 149..159
                              app/assets/javascripts/ext/src/locale/ext-lang-ca.js on lines 158..168
                              app/assets/javascripts/ext/src/locale/ext-lang-cs.js on lines 173..183
                              app/assets/javascripts/ext/src/locale/ext-lang-da.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-en.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-es.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fi.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-fr.js on lines 183..193
                              app/assets/javascripts/ext/src/locale/ext-lang-he.js on lines 155..165
                              app/assets/javascripts/ext/src/locale/ext-lang-hu.js on lines 159..169
                              app/assets/javascripts/ext/src/locale/ext-lang-it.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-ja.js on lines 161..171
                              app/assets/javascripts/ext/src/locale/ext-lang-lt.js on lines 170..180
                              app/assets/javascripts/ext/src/locale/ext-lang-nl.js on lines 166..176
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NB.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-no_NN.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-pl.js on lines 167..177
                              app/assets/javascripts/ext/src/locale/ext-lang-pt_PT.js on lines 156..166
                              app/assets/javascripts/ext/src/locale/ext-lang-ro.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-ru.js on lines 171..181
                              app/assets/javascripts/ext/src/locale/ext-lang-sr.js on lines 128..138
                              app/assets/javascripts/ext/src/locale/ext-lang-th.js on lines 157..167
                              app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 171..181

                              Duplicated Code

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

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

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

                              Tuning

                              This issue has a mass of 75.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Severity
                              Category
                              Status
                              Source
                              Language