CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

    set : function(n, v, e, p, d, s) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/js/utils.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

              } 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 ( li != hovering )
                                  li.className = li.className ? li.className.replace( rselected, '' ) : '';
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/js/admin-bar.js - About 45 mins to fix

        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

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

              set : function(name, value, expires, path, domain, secure) {
                  var d = new Date();
          
                  if ( typeof(expires) == 'object' && expires.toGMTString ) {
                      expires = expires.toGMTString();
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/js/utils.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 ( ed.plugins.wordpress )
                          h = ed.plugins.wordpress._setEmbed(h);
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-admin/js/media-upload.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

              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 ( 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

                  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 PopupWindow_hidePopup has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function PopupWindow_hidePopup() {
                        if (this.divName != null) {
                            if (this.use_gebi) {
                                document.getElementById(this.divName).style.visibility = "hidden";
                                }
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/js/colorpicker.dev.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 resultsController has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          var resultsController = function ($scope, $location, dataService, $stateParams, $state, $timeout) {
                      Severity: Minor
                      Found in Web.Admin/ClientApp/Controllers/controller.results.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 (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 passwordStrength has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function passwordStrength(password,username) {
                              var shortPass = 1, badPass = 2, goodPass = 3, strongPass = 4, symbolSize = 0, natLog, score;
                          
                              //password < 4
                              if (password.length < 4 ) { return shortPass };
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/js/password-strength-meter.dev.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

                          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

                                        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

                              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
                                Severity
                                Category
                                Status
                                Source
                                Language