CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function addMethods has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Element.addMethods = function(methods) {
  var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag;

  if (!methods) {
    Object.extend(Form, Form.Methods);
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 2 hrs to fix

    Method bulk_edit_posts has 73 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function bulk_edit_posts( $post_data = null ) {
        global $wpdb;
    
        if ( empty($post_data) )
            $post_data = &$_POST;
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/includes/post.php - About 2 hrs to fix

      Method link_xfn_meta_box has 73 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function link_xfn_meta_box($link) {
      ?>
      <table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5">
          <tr>
              <th style="width: 20%;" scope="row"><label for="link_rel"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('rel:') ?></label></th>
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-admin/includes/meta-boxes.php - About 2 hrs to fix

        Method dispatch has 73 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function dispatch()
            {
        
                if (empty ($_GET['step']))
                    $step = 0;
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/import/dotclear.php - About 2 hrs to fix

          Function keyHandler has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

              keyHandler : function(evt) {
                  keyCode = evt.keyCode;    
                  charCode = evt.charCode;
                  fromChar = String.fromCharCode(charCode);
          
          
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/gecko.js - About 2 hrs 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 edInsertTag has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

          function edInsertTag(myField, i) {
              //IE support
              if (document.selection) {
                  myField.focus();
                  var sel = document.selection.createRange();
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/js/quicktags.dev.js - About 2 hrs 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 prepare_items has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

              function prepare_items() {
                  global $status, $totals, $page, $orderby, $order, $s;
          
                  wp_reset_vars( array( 'orderby', 'order', 's' ) );
          
          

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

          function favorite_actions( $screen = null ) {
              switch ( $screen ) {
                  case 'post-new.php':
                      $default_action = array('edit.php' => array(__('Edit Posts'), 'edit_posts'));
                      break;
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 2 hrs 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 dirlist has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

              function dirlist($path = '.', $include_hidden = true, $recursive = false ) {
                  if ( $this->is_file($path) ) {
                      $limit_file = basename($path);
                      $path = dirname($path) . '/';
                  } else {

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

          function wp_doc_link_parse( $content ) {
              if ( !is_string( $content ) || empty( $content ) )
                  return array();
          
              if ( !function_exists('token_get_all') )
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/includes/misc.php - About 2 hrs 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 _page_rows has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

              function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page ) {
          
                  if ( ! isset( $children_pages[$parent] ) )
                      return;
          
          

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

              function step1() {
                  global $verified;
                  set_time_limit( 0 );
                  update_option( 'ljapi_step', 1 );
                  if ( !$this->ixr ) $this->ixr = new IXR_Client( $this->ixr_url, false, 80, 30 );
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/import/livejournal.php - About 2 hrs 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 print_plugins_table has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

          function print_plugins_table($plugins, $context = '') {
              global $page;
          ?>
          <table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table">
              <thead>
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/plugins.php - About 2 hrs 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 login_header has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

          function login_header($title = 'Log In', $message = '', $wp_error = '') {
              global $error, $is_iphone, $interim_login;
          
              // Don't index any of these forms
              add_filter( 'pre_option_blog_public', create_function( '$a', 'return 0;' ) );
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-login.php - About 2 hrs 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 wp_getPosts has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

              function wp_getPosts( $args ) {
                  if ( ! $this->minimum_args( $args, 3 ) )
                      return $this->error;
          
                  $this->escape( $args );
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 2 hrs 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 entity has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

              public function entity()
              {
                  switch ($this->consume())
                  {
                      case "\x09":

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

              public function get_contributors()
              {
                  $contributors = array();
                  foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'contributor') as $contributor)
                  {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 2 hrs 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 get_contributors has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

              public function get_contributors()
              {
                  $contributors = array();
                  foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'contributor') as $contributor)
                  {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Source.php - About 2 hrs 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 uidl has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

              function uidl ($msgNum = "")
              {
                  //  Returns the UIDL of the msg specified. If called with
                  //  no arguments, returns an associative array where each
                  //  undeleted msg num is a key, and the msg's uidl is the element
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/class-pop3.php - About 2 hrs 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 get_results has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

              function get_results($query = null, $output = OBJECT) {
                  $this->func_call = "\$db->get_results(\"$query\", $output)";
          
                  if ( $query )
                      $this->query($query);
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/wp-db.php - About 2 hrs 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