webcol/Calima

View on GitHub
public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js

Summary

Maintainability
F
1 wk
Test Coverage

File jquery.bootstrap-duallistbox.js has 655 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 *  Bootstrap Duallistbox - v3.0.5
 *  A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices.
 *  http://www.virtuosoft.eu/code/bootstrap-duallistbox/
 *

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

            init: function () {
                // Add the custom HTML template
                this.container = $('' +
                    '<div class="bootstrap-duallistbox-container">' +
                    ' <div class="box1">' +

      Function bindEvents has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function bindEvents(dualListbox) {
              dualListbox.elements.form.submit(function(e) {
                  if (dualListbox.elements.filterInput1.is(':focus')) {
                      e.preventDefault();
                      dualListbox.elements.filterInput1.focusout();

        Function refreshInfo has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function refreshInfo(dualListbox) {
                if (!dualListbox.settings.infoText) {
                    return;
                }
        
        

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

                      } else {
                          this.container.removeClass('row-fluid bs2compatible').addClass('row');
                          this.container.find('.box1, .box2').removeClass('span6').addClass('col-md-6');
                          this.container.find('.clear1, .clear2').removeClass('btn-mini').addClass('btn-default btn-xs');
                          this.container.find('input, select').addClass('form-control');
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 463..471

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

          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

                      if (value) {
                          this.container.removeClass('row').addClass('row-fluid bs2compatible');
                          this.container.find('.box1, .box2').removeClass('col-md-6').addClass('span6');
                          this.container.find('.clear1, .clear2').removeClass('btn-default btn-xs').addClass('btn-mini');
                          this.container.find('input, select').removeClass('form-control');
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 471..479

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

          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

                      this.container = $('' +
                          '<div class="bootstrap-duallistbox-container">' +
                          ' <div class="box1">' +
                          '   <label></label>' +
                          '   <span class="info-container">' +
          public_/plantillas/inspinia/js/plugins/codemirror/mode/cobol/cobol.js on lines 29..67

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

          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

                  setSelectedListLabel: function(value, refresh) {
                      this.settings.selectedListLabel = value;
                      if (value) {
                          this.elements.label2.show().html(value);
                      } else {
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 582..593

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

          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

                  setNonSelectedListLabel: function(value, refresh) {
                      this.settings.nonSelectedListLabel = value;
                      if (value) {
                          this.elements.label1.show().html(value);
                      } else {
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 570..581

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

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

                  if (dualListbox.settings.preserveSelectionOnMove === 'all' && !dualListbox.settings.moveOnSelect) {
                      saveSelections(dualListbox, 1);
                      saveSelections(dualListbox, 2);
                  } else if (dualListbox.settings.preserveSelectionOnMove === 'moved' && !dualListbox.settings.moveOnSelect) {
                      saveSelections(dualListbox, 1);
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 241..246
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 261..266
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 282..287

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

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

                  if (dualListbox.settings.preserveSelectionOnMove === 'all' && !dualListbox.settings.moveOnSelect) {
                      saveSelections(dualListbox, 1);
                      saveSelections(dualListbox, 2);
                  } else if (dualListbox.settings.preserveSelectionOnMove === 'moved' && !dualListbox.settings.moveOnSelect) {
                      saveSelections(dualListbox, 2);
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 217..222
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 261..266
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 282..287

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

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

                  if (dualListbox.settings.preserveSelectionOnMove === 'all' && !dualListbox.settings.moveOnSelect) {
                      saveSelections(dualListbox, 1);
                      saveSelections(dualListbox, 2);
                  } else if (dualListbox.settings.preserveSelectionOnMove === 'moved' && !dualListbox.settings.moveOnSelect) {
                      saveSelections(dualListbox, 1);
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 217..222
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 241..246
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 282..287

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

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

                  if (dualListbox.settings.preserveSelectionOnMove === 'all' && !dualListbox.settings.moveOnSelect) {
                      saveSelections(dualListbox, 1);
                      saveSelections(dualListbox, 2);
                  } else if (dualListbox.settings.preserveSelectionOnMove === 'moved' && !dualListbox.settings.moveOnSelect) {
                      saveSelections(dualListbox, 2);
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 217..222
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 241..246
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 261..266

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

          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

                  if (all1 === 0) {
                      content = dualListbox.settings.infoTextEmpty;
                  } else if (visible1 === all1) {
                      content = formatString(dualListbox.settings.infoText, [visible1, all1]);
                  } else {
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 111..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 88.

          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

                  if (all2 === 0) {
                      content = dualListbox.settings.infoTextEmpty;
                  } else if (visible2 === all2) {
                      content = formatString(dualListbox.settings.infoText, [visible2, all2]);
                  } else {
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 100..106

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

          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

                  setNonSelectedFilter: function(value, refresh) {
                      if (this.settings.showFilterInputs) {
                          this.settings.nonSelectedFilter = value;
                          this.elements.filterInput1.val(value);
                          if (refresh) {
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 648..657

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

          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

                  setSelectedFilter: function(value, refresh) {
                      if (this.settings.showFilterInputs) {
                          this.settings.selectedFilter = value;
                          this.elements.filterInput2.val(value);
                          if (refresh) {
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 638..647

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

          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

                  dualListbox.elements.select2.find('option:selected').each(function(index, item) {
                      var $item = $(item);
                      if (!$item.data('filtered2')) {
                          changeSelectionState(dualListbox, $item.data('original-index'), false);
                      }
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 224..229

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

          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

                  dualListbox.elements.select1.find('option:selected').each(function(index, item) {
                      var $item = $(item);
                      if (!$item.data('filtered1')) {
                          changeSelectionState(dualListbox, $item.data('original-index'), true);
                      }
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 248..253

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

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

                  setRemoveSelectedLabel: function(value, refresh) {
                      this.settings.removeSelectedLabel = value;
                      this.elements.removeButton.attr('title', value);
                      if (refresh) {
                          refreshSelects(this);
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 503..510
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 511..518
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 527..534

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

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

                  setMoveAllLabel: function(value, refresh) {
                      this.settings.moveAllLabel = value;
                      this.elements.moveAllButton.attr('title', value);
                      if (refresh) {
                          refreshSelects(this);
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 503..510
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 519..526
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 527..534

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

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

                  setRemoveAllLabel: function(value, refresh) {
                      this.settings.removeAllLabel = value;
                      this.elements.removeAllButton.attr('title', value);
                      if (refresh) {
                          refreshSelects(this);
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 503..510
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 511..518
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 519..526

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

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

                  setMoveSelectedLabel: function(value, refresh) {
                      this.settings.moveSelectedLabel = value;
                      this.elements.moveButton.attr('title', value);
                      if (refresh) {
                          refreshSelects(this);
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 511..518
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 519..526
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 527..534

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

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

                  setInfoTextFiltered: function(value, refresh) {
                      this.settings.infoTextFiltered = value;
                      if (refresh) {
                          refreshSelects(this);
                      }
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 658..664
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 672..678
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 679..685
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 686..692

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

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

                  setInfoTextEmpty: function(value, refresh) {
                      this.settings.infoTextEmpty = value;
                      if (refresh) {
                          refreshSelects(this);
                      }
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 658..664
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 665..671
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 679..685
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 686..692

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

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

                  setSortByInputOrder: function(value, refresh){
                      this.settings.sortByInputOrder = value;
                      if (refresh) {
                          refreshSelects(this);
                      }
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 658..664
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 665..671
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 672..678
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 679..685

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

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

                  setInfoText: function(value, refresh) {
                      this.settings.infoText = value;
                      if (refresh) {
                          refreshSelects(this);
                      }
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 665..671
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 672..678
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 679..685
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 686..692

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

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

                  setFilterOnValues: function(value, refresh) {
                      this.settings.filterOnValues = value;
                      if (refresh) {
                          refreshSelects(this);
                      }
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 658..664
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 665..671
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 672..678
          public_/plantillas/inspinia/js/plugins/dualListbox/jquery.bootstrap-duallistbox.js on lines 686..692

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

          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

          There are no issues that match your filters.

          Category
          Status