CaffGeek/MBACNationals

View on GitHub
Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.hotkeys.dev.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function add has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    this.add = function(combi, options, callback) {
        if (jQuery.isFunction(options)){
            callback = options;
            options = {};
        }
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.hotkeys.dev.js - About 2 hrs to fix

    Function inspector has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            var inspector = function(event) {
                event = jQuery.event.fix(event); // jQuery event normalization.
                var element = event.target;
                // @ TextNode -> nodeType == 3
                element = (element.nodeType==3) ? element.parentNode : element;

      Consider simplifying this complex logical expression.
      Open

                  if(!shift && !ctrl && !alt && !meta) { // No Modifiers
                      mapPoint = cbMap[special] ||  cbMap[character]
                  }
                  // deals with combinaitons (alt|ctrl|shift+anything)
                  else{

        There are no issues that match your filters.

        Category
        Status