XoopsModules25x/smallworld

View on GitHub
assets/js/jquery.stepy.js

Summary

Maintainability
D
1 day
Test Coverage

Function stepy has 203 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    xoops_smallworld.fn.stepy = function (settings) {

        if (this.length == 0) {
            //debug('Selector invalid or missing!');
            return;
Severity: Major
Found in assets/js/jquery.stepy.js - About 1 day to fix

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

    /**
     * jQuery Stepy - A Wizard Plugin - http://wbotelhos.com/stepy
     * ---------------------------------------------------------------------------------
     *
     * jQuery Stepy is a plugin based on FormToWizard that generates a customizable wizard.
    Severity: Minor
    Found in assets/js/jquery.stepy.js - About 3 hrs to fix

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

          function validate(context, index, opt) {
              if (!context.is('form')) {
                  return true;
              }
      
      
      Severity: Minor
      Found in assets/js/jquery.stepy.js - About 1 hr to fix

        Avoid deeply nested control flow statements.
        Open

                                    if (onSubmit) {
                                        xoops_smallworldthis.attr('onsubmit', onSubmit);
                                    } else {
                                        xoops_smallworldthis.removeAttr('onsubmit');
                                    }
        Severity: Major
        Found in assets/js/jquery.stepy.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if (!isSubmit && (!opt.validate || validate(xoops_smallworldthis, size - 1, opt))) {
                                          xoops_smallworldthis.submit();
                                      }
          Severity: Major
          Found in assets/js/jquery.stepy.js - About 45 mins to fix

            There are no issues that match your filters.

            Category
            Status