abkfenris/gage-web

View on GitHub
tmp/coverage/jquery.hotkeys.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

    function keyHandler( handleObj ) {
        // Only care when a possible input has been specified
        if ( typeof handleObj.data !== "string" ) {
            return;
        }
Severity: Minor
Found in tmp/coverage/jquery.hotkeys.js - About 1 hr to fix

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

            handleObj.handler = function( event ) {
                // Don't fire in text-accepting inputs that we didn't directly bind to
                if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) ||
                     event.target.type === "text") ) {
                    return;
    Severity: Minor
    Found in tmp/coverage/jquery.hotkeys.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status