CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function setHash has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    setHash : function(name, values_obj, expires, path, domain, secure) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/js/utils.js - About 45 mins to fix

    Function set has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        set : function(name, value, expires, path, domain, secure) {
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/js/utils.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              if (v) {
                                  partial.push(quote(k) + (gap ? ': ' : ':') + v);
                              }
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/js/json2.dev.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if (v !== undefined) {
                                        value[k] = v;
                                    } else {
                                        delete value[k];
                                    }
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/js/json2.dev.js - About 45 mins to fix

          Function code has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  function code( s, discard, alpha, beta, w1, w2 ) {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/js/svg-painter.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if (v) {
                                        partial.push(quote(k) + (gap ? ': ' : ':') + v);
                                    }
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/js/json2.dev.js - About 45 mins to fix

              Function schedule has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

              function schedule() {
                  var now = new Date();
                  var date = now.getDate();
                  var month = now.getMonth();
                  var month = month + 1;
              Severity: Minor
              Found in Web.Admin/20xx-Template/js/schedule.js - About 45 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Avoid deeply nested control flow statements.
              Open

                              if (t.id==this.divName) {
                                  return true;
                                  }
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/js/colorpicker.dev.js - About 45 mins to fix

                Function getStyle has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                  getStyle: function(element, style) {
                    element = $(element);
                    style = style == 'float' ? 'cssFloat' : style.camelize();
                    var value = element.style[style];
                    if (!value) {
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Avoid deeply nested control flow statements.
                Open

                              if (targetNode.parentNode == node) return [targetNode];
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                              while (t.parentNode != null) {
                                  if (t.id==this.divName) {
                                      return true;
                                      }
                                  t = t.parentNode;
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/js/colorpicker.dev.js - About 45 mins to fix

                    Function Methods has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                    Event.Methods = (function() {
                      var isButton;
                    
                      if (Prototype.Browser.IE) {
                        var buttonMap = { 0: 1, 1: 4, 2: 2 };
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Avoid deeply nested control flow statements.
                    Open

                          if(element.tagName == 'IMG' && element.width) {
                            element.width++; element.width--;
                          } else try {
                            var n = document.createTextNode(' ');
                            element.appendChild(n);
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                            if (element.offsetParent == document.body)
                              if (Element.getStyle(element, 'position') == 'absolute') break;
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                  } else if (combinator == 'adjacent') {
                                    for (var i = 0, node; node = nodes[i]; i++)
                                      if (Selector.handlers.previousElementSibling(targetNode) == node)
                                        return [targetNode];
                                  } else nodes = h[combinator](nodes);
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                      if (node.nodeIndex == indices[j]) results.push(node);
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                if ( typeof elem.getElementsByTagName !== "undefined" ) {
                                                    // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
                                                    jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
                            
                                                    // Splice the scripts into ret after their former ancestor and advance our index beyond them
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery-migrate.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                      if (value[1]) return parseFloat(value[1]) / 100;
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                            for (var i = 0, node; node = nodes[i]; i++)
                                              if (Element.descendantOf(targetNode, node)) return [targetNode];
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                  if ( key.indexOf('wp-autosave-') != -1 )
                                                                      sessionStorage.removeItem(key);
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-includes/js/admin-bar.js - About 45 mins to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language