CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Consider simplifying this complex logical expression.
Open

        if (value != null && (element.type != 'submit' || (!submitted &&
            submit !== false && (!submit || key == submit) && (submitted = true)))) {
          if (key in result) {
            // a key is already present; construct an array of values
            if (!Object.isArray(result[key])) result[key] = [result[key]];
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 1 hr to fix

    Method _rows has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0 ) {

      Method image_add_caption has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ) {
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

            if ( ! $error &&
                    (
                        ( !empty($credentials['password']) && !empty($credentials['username']) && !empty($credentials['hostname']) ) ||
                        ( 'ssh' == $credentials['connection_type'] && !empty($credentials['public_key']) && !empty($credentials['private_key']) )
                    ) ) {
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/includes/file.php - About 1 hr to fix

          Method get_image_send_to_editor has 8 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') {
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                            if ( isset( $plugin_page ) &&
                                ($plugin_page == $submenu_array[2] ) &&
                                (($parent == $pagenow ) || ($parent == $plugin_page ) || ($plugin_page == $hook ) || (($pagenow == 'admin.php' ) && ($parent1 != $submenu_array[2] ) ) )
                                ) {
                                    $title = $submenu_array[3];
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/includes/plugin.php - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                          <?php if ( is_404() || is_category() || is_day() || is_month() ||
                                      is_year() || is_search() || is_paged() ) {
                          ?> <li>
              
                          <?php /* If this is a 404 page */ if (is_404()) { ?>
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-content/themes/default/sidebar.php - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                            if ( $show_all || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) :
                                $link = str_replace('%_%', 1 == $n ? '' : $format, $base);
                                $link = str_replace('%#%', $n, $link);
                                if ( $add_args )
                                    $link = add_query_arg( $add_args, $link );
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/general-template.php - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                                  if (!in_array($href, $done) && in_array('feed', $rel) || (in_array('alternate', $rel) && !in_array('stylesheet', $rel) && $link->hasAttribute('type') && in_array(strtolower($this->registry->call('Misc', 'parse_mime', array($link->getAttribute('type')))), array('application/rss+xml', 'application/atom+xml'))) && !isset($feeds[$href]))
                                  {
                                      $this->checked_feeds++;
                                      $headers = array(
                                          'Accept' => 'application/atom+xml, application/rss+xml, application/rdf+xml;q=0.9, application/xml;q=0.8, text/xml;q=0.8, text/html;q=0.7, unknown/unknown;q=0.1, application/unknown;q=0.1, */*;q=0.1',
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Locator.php - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                        if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) )
                            && $args->fallback_cb && is_callable( $args->fallback_cb ) )
                                return call_user_func( $args->fallback_cb, (array) $args );
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/nav-menu-template.php - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  <?php if ( is_404() || is_category() || is_day() || is_month() ||
                                              is_year() || is_search() || is_paged() ) {
                                  ?> <li>
                      
                                  <?php /* If this is a 404 page */ if (is_404()) { ?>
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/theme-compat/sidebar.php - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if ( is_bool($v) ) {
                                        $val = $v ? 'true' : 'false';
                                        $options .= $k . ':' . $val . ',';
                                        continue;
                                    } elseif ( !empty($v) && is_string($v) && ( ('{' == $v{0} && '}' == $v{strlen($v) - 1}) || ('[' == $v{0} && ']' == $v{strlen($v) - 1}) || preg_match('/^\(?function ?\(/', $v) ) ) {
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/class-wp-editor.php - About 1 hr to fix

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                              {
                                  Coords.setPressed([l[0],l[1]]);
                                  Coords.setCurrent([l[2],l[3]]);
                                  Selection.update();
                              };
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 143..143

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 55.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 4 locations. Consider refactoring.
                          Open

                                      if(xx < 0) {
                                          x1 -= xx;
                                          xx = 0;
                                      } else  if (xx > boundx) {
                                          x1 -= xx - boundx;
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 321..327
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 37..37
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 38..38

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 55.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 4 locations. Consider refactoring.
                          Open

                                      if(yy < 0) {
                                          y1 -= yy;
                                          yy = 0;
                                      } else  if (yy > boundy) {
                                          y1 -= yy - boundy;
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 313..319
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 37..37
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 38..38

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 55.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 4 locations. Consider refactoring.
                          Open

                          if(xx<0){x1-=xx;xx=0;}else if(xx>boundx){x1-=xx-boundx;xx=boundx;}
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 313..319
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 321..327
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 38..38

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 55.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          {Coords.setPressed([l[0],l[1]]);Coords.setCurrent([l[2],l[3]]);Selection.update();};function setOptions(opt)
                          Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 1034..1038

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 55.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          function dw_hasClass(el, cl) {
                              var re = new RegExp("\\b" + cl + "\\b", "i");
                              if ( re.test( el.className ) ) {
                                  return true;
                              }
                          Severity: Major
                          Found in Web.Admin/2015/js/dw_rotator_aux.js and 1 other location - About 1 hr to fix
                          Web.Admin/2014/js/dw_rotator_aux.js on lines 79..85

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 55.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 2 locations. Consider refactoring.
                          Open

                              $A(document.getElementsByTagName("script")).findAll( function(s) {
                                return (s.src && s.src.match(/scriptaculous\.js(\?.*)?$/))
                              }).each( function(s) {
                                var path = s.src.replace(/scriptaculous\.js(\?.*)?$/,'');
                                var includes = s.src.match(/\?.*load=([a-z,]*)/);
                          Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/scriptaculous.js on lines 47..54

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 55.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 2 locations. Consider refactoring.
                          Open

                                      return '<input type="button" id="' + button.id + '" accesskey="'+button.access+'" class="ed_button" onclick="'+name+'.edInsertTag('+i+');" value="'+button.display+'" />';
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/js/quicktags.dev.js and 1 other location - About 1 hr to fix
                          Web.Admin/2014/wordpress/wp-includes/js/quicktags.dev.js on lines 412..412

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 55.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Severity
                          Category
                          Status
                          Source
                          Language