wikimedia/mediawiki-core

View on GitHub
resources/lib/jquery.ui/jquery.ui.tooltip.js

Summary

Maintainability
C
1 day
Test Coverage

File jquery.ui.tooltip.js has 289 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery UI Tooltip 1.9.2
 * http://jqueryui.com
 *
 * Copyright 2012 jQuery Foundation and other contributors
Severity: Minor
Found in resources/lib/jquery.ui/jquery.ui.tooltip.js - About 2 hrs to fix

    Function _open has 67 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _open: function( event, target, content ) {
            var tooltip, events, delayedShow,
                positionOption = $.extend( {}, this.options.position );
    
            if ( !content ) {
    Severity: Major
    Found in resources/lib/jquery.ui/jquery.ui.tooltip.js - About 2 hrs to fix

      Function open has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          open: function( event ) {
              var that = this,
                  target = $( event ? event.target : this.element )
                      // we need closest here due to mouseover bubbling,
                      // but always pointing at the same event target
      Severity: Minor
      Found in resources/lib/jquery.ui/jquery.ui.tooltip.js - About 1 hr to fix

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

            close: function( event ) {
                var that = this,
                    target = $( event ? event.currentTarget : this.element ),
                    tooltip = this._find( target );
        
        
        Severity: Minor
        Found in resources/lib/jquery.ui/jquery.ui.tooltip.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status