devworkstecnology/webadmin

View on GitHub
vendor/assets/javascripts/fuelux/fuelux.js

Summary

Maintainability
F
2 wks
Test Coverage

File fuelux.js has 1091 lines of code (exceeds 250 allowed). Consider refactoring.
Open


/*
 * Fuel UX Checkbox
 * https://github.com/ExactTarget/fuelux
 *
Severity: Major
Found in vendor/assets/javascripts/fuelux/fuelux.js - About 2 days to fix

    Function Datagrid has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var Datagrid = function (element, options) {
            this.$element = $(element);
            this.$thead = this.$element.find('thead');
            this.$tfoot = this.$element.find('tfoot');
            this.$footer = this.$element.find('tfoot th');
    Severity: Minor
    Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

      Function Spinner has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var Spinner = function (element, options) {
              this.$element = $(element);
              this.options = $.extend({}, $.fn.spinner.defaults, options);
              this.$input = this.$element.find('.spinner-input');
              this.$element.on('keyup', this.$input, $.proxy(this.change, this));
      Severity: Minor
      Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

        Function selectItem has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                selectItem: function (el) {
                    var $el = $(el);
                    var $all = this.$element.find('.tree-selected');
                    var data = [];
        
        Severity: Minor
        Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

          Function setState has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  setState: function () {
                      var canMovePrev = (this.currentStep > 1);
                      var firstStep = (this.currentStep === 1);
                      var lastStep = (this.currentStep === this.numSteps);
          
          Severity: Minor
          Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

            Function renderData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    renderData: function () {
                        var self = this;
            
                        this.$tbody.html(this.placeholderRowHTML(this.options.loadingHTML));
            
            Severity: Minor
            Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

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

                  $(function () {
              
                      $(window).on('load', function () {
                          $('.combobox').each(function () {
                              var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1293..1308

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

              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

                  $(function () {
              
                      $(window).on('load', function () {
                          $('.select').each(function () {
                              var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 293..308

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

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

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

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

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

              Refactorings

              Further Reading

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

                  $.fn.combobox = function (option, value) {
                      var methodReturn;
              
                      var $set = this.each(function () {
                          var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
              vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

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

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

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

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

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

              Refactorings

              Further Reading

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

                  $.fn.select = function (option,value) {
                      var methodReturn;
              
                      var $set = this.each(function () {
                          var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
              vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

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

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

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

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

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

              Refactorings

              Further Reading

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

                  $.fn.checkbox = function (option, value) {
                      var methodReturn;
              
                      var $set = this.each(function () {
                          var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

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

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

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

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

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

              Refactorings

              Further Reading

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

                  $.fn.radio = function (option, value) {
                      var methodReturn;
              
                      var $set = this.each(function () {
                          var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
              vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

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

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

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

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

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

              Refactorings

              Further Reading

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

                  $.fn.tree = function (option, value) {
                      var methodReturn;
              
                      var $set = this.each(function () {
                          var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
              vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

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

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

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

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

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

              Refactorings

              Further Reading

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

                  $.fn.spinner = function (option,value) {
                      var methodReturn;
              
                      var $set = this.each(function () {
                          var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
              vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1615..1628

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

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

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

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

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

              Refactorings

              Further Reading

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

                  $.fn.wizard = function (option, value) {
                      var methodReturn;
              
                      var $set = this.each(function () {
                          var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 6 other locations - About 6 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 75..88
              vendor/assets/javascripts/fuelux/fuelux.js on lines 271..284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 788..801
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1105..1118
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1271..1284
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1454..1467

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

              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

                  $.fn.datagrid = function (option) {
                      return this.each(function () {
                          var $this = $(this);
                          var data = $this.data('datagrid');
                          var options = typeof option === 'object' && option;
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 4 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 918..927

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

              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

                  $.fn.search = function (option) {
                      return this.each(function () {
                          var $this = $(this);
                          var data = $this.data('search');
                          var options = typeof option === 'object' && option;
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 4 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 624..633

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

              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

                  $(function () {
                      $(window).on('load', function () {
                          //$('i.checkbox').each(function () {
                          $('.checkbox-custom > input[type=checkbox]').each(function () {
                              var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 3 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 810..819

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

              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

                  $(function () {
                      $(window).on('load', function () {
                          //$('i.radio').each(function () {
                          $('.radio-custom > input[type=radio]').each(function () {
                              var $this = $(this);
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 3 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 97..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 99.

              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 (canMovePrev) {
                              var e = $.Event('change');
                              this.$element.trigger(e, {step: this.currentStep, direction: 'previous'});
                              if (e.isDefaultPrevented()) return;
              
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 2 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1591..1602

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

              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 (canMoveNext) {
                              var e = $.Event('change');
                              this.$element.trigger(e, {step: this.currentStep, direction: 'next'});
              
                              if (e.isDefaultPrevented()) return;
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 2 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1577..1584

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

              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

                  $(function () {
                      $('body').on('mousedown.pillbox.data-api', '.pillbox', function (e) {
                          var $this = $(this);
                          if ($this.data('pillbox')) return;
                          $this.pillbox($this.data());
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 2 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1135..1141

              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

                  $(function () {
                      $('body').on('mousedown.spinner.data-api', '.spinner', function (e) {
                          var $this = $(this);
                          if ($this.data('spinner')) return;
                          $this.spinner($this.data());
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 2 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 705..711

              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

                  $(function () {
                      $('body').on('mousedown.wizard.data-api', '.wizard', function () {
                          var $this = $(this);
                          if ($this.data('wizard')) return;
                          $this.wizard($this.data());
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 2 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 936..942

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

              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

                  $(function () {
                      $('body').on('mousedown.search.data-api', '.search', function () {
                          var $this = $(this);
                          if ($this.data('search')) return;
                          $this.search($this.data());
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 2 hrs to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1637..1643

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

              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

                      filterChanged: function (e, filter) {
                          this.options.dataOptions.filter = filter;
                          this.options.dataOptions.pageIndex = 0;
                          this.renderData();
                      },
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 1 hr to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 534..538

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

              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

                      searchChanged: function (e, search) {
                          this.options.dataOptions.search = search;
                          this.options.dataOptions.pageIndex = 0;
                          this.renderData();
                      },
              Severity: Major
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 1 hr to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 540..544

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

              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.$element.on('click', '.tree-item', $.proxy( function(ev) { this.selectItem(ev.currentTarget); } ,this));
              Severity: Minor
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 35 mins to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1329..1329

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

              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.$element.on('click', '.tree-folder-header', $.proxy( function(ev) { this.selectFolder(ev.currentTarget); }, this));
              Severity: Minor
              Found in vendor/assets/javascripts/fuelux/fuelux.js and 1 other location - About 35 mins to fix
              vendor/assets/javascripts/fuelux/fuelux.js on lines 1328..1328

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

              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