woothemes/woocommerce

View on GitHub
assets/js/jquery-tiptip/jquery.tipTip.js

Summary

Maintainability
C
1 day
Test Coverage

Function tipTip has 152 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.tipTip = function(options) {
        var defaults = {
            activation: "hover",
            keepAlive: false,
            maxWidth: "200px",
Severity: Major
Found in assets/js/jquery-tiptip/jquery.tipTip.js - About 6 hrs to fix

    Function active_tiptip has 72 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    function active_tiptip(){
                        opts.enter.call(this);
                        tiptip_content.html(org_title);
                        tiptip_holder.hide().removeAttr("class").css("margin","0");
                        tiptip_arrow.removeAttr("style");
    Severity: Major
    Found in assets/js/jquery-tiptip/jquery.tipTip.js - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

                          if((right_compare && w_compare < 0) || (t_class == "_right" && !left_compare) || (t_class == "_left" && left < (tip_w + opts.edgeOffset + 5))){
                              t_class = "_right";
                              arrow_top = Math.round(tip_h - 13) / 2;
                              arrow_left = -12;
                              marg_left = Math.round(left + org_width + opts.edgeOffset);
      Severity: Major
      Found in assets/js/jquery-tiptip/jquery.tipTip.js - About 40 mins to fix

        There are no issues that match your filters.

        Category
        Status