wbotelhos/stepy

View on GitHub

Showing 4 of 10 total issues

File jquery.stepy.js has 345 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery Stepy - A Wizard Plugin
 *
 * The MIT License
 *
Severity: Minor
Found in lib/jquery.stepy.js - About 4 hrs to fix

    Function step has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        step: function(index) {
          var
            max   = index,
            self  = $(this),
            steps = self.find('.' + this.stepyOptions.stepClass);
    Severity: Minor
    Found in lib/jquery.stepy.js - About 1 hr to fix

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

          init: function(settings) {
            return this.each(function() {
              methods.destroy.call(this);
      
              this.stepyOptions = $.extend({}, $.fn.stepy.defaults, settings);
      Severity: Minor
      Found in lib/jquery.stepy.js - About 1 hr to fix

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

            validate: function(index) {
              var self = $(this);
        
              if (!this.tagName === 'FORM') {
                return true;
        Severity: Minor
        Found in lib/jquery.stepy.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language