CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Avoid too many return statements within this method.
Open

        return $return;
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/revision.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return false;
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/class-http.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return apply_filters('post_link', $permalink, $post, $leavename);
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/link-template.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                                return $element;
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $_revision;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/revision.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                return apply_filters( 'get_edit_post_link', admin_url("$file.php?{$action}$var=$post->ID"), $post->ID, $context );
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/link-template.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                  return apply_filters( 'get_delete_post_link', wp_nonce_url( admin_url("$file.php?{$action}$var=$post->ID"), "trash-{$file}_" . $post->ID ), $context );
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/link-template.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return  '"'.$ascii.'"';
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return $absolute_path . '/' . ltrim( $path, '/' );
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-http.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return true;
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/query.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $response;
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/class-http.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $response;
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/class-http.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return apply_filters( 'get_edit_post_link', '', $post->ID, $context );;
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/link-template.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return '';
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                  return $return;
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-includes/revision.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                            return $obj;
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                          return $obj;
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return '';
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/wp-includes/meta.php - About 30 mins to fix

                                      Function rotate has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                      dw_Rotator.prototype.rotate = function() {
                                          this.clearTimer();
                                          var imgObj = document.getElementById(this.id);
                                          if ( this.bRand ) {
                                              this.setRandomCtr();
                                      Severity: Minor
                                      Found in Web.Admin/2015/js/dw_rotator.js - About 25 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 getInputs has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                        getInputs: function(form, typeName, name) {
                                          form = $(form);
                                          var inputs = form.getElementsByTagName('input');
                                      
                                          if (!typeName && !name) return $A(inputs).map(Element.extend);
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 25 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

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language