CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function generatePreview has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function generatePreview(c) {
    var f = document.forms[0], p = document.getElementById('prev'), h = '', cls, pl, n, type, codebase, wp, hp, nw, nh;

    p.innerHTML = '<!-- x --->';

    Method privReadEndCentralDir has 79 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function privReadEndCentralDir(&$p_central_dir)
      {
        $v_result=1;
    
        // ----- Go to the end of the zip file
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 3 hrs to fix

      Function success has 79 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  success: function() {
      
                      // save the instance
                      _galleries.push( self );
      
      Severity: Major
      Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 3 hrs to fix

        Method media_upload_type_url_form has 79 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function media_upload_type_url_form($type = 'file', $errors = null, $id = null) {
            media_upload_header();
        
            $post_id = intval($_REQUEST['post_id']);
        
        
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 3 hrs to fix

          Method prepare_items has 79 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

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

            Method single_row has 79 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function single_row( $theme ) {
                    global $status, $page, $s, $totals;
            
                    $context = $status;
            
            

              Method _bind has 79 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  final protected function _bind() {
                      if ( $this->bound )
                          return;
              
                      // Add the root node.
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-admin-bar.php - About 3 hrs to fix

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

                    var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage', 'post_type');
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-wp.php and 1 other location - About 3 hrs to fix
                Web.Admin/2014/wordpress/wp-includes/classes.php on lines 29..29

                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 145.

                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

                    function categories_tab() {
                        $this->populate_cats();
                        $cat_num = count($this->all_categories);
                
                        echo '<br class="clear" />';
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php and 1 other location - About 3 hrs to fix
                Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php on lines 136..153

                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 145.

                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

                    function tags_tab() {
                        $this->populate_tags();
                        $tags_num = count($this->all_tags);
                
                        echo '<br class="clear" />';
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php and 1 other location - About 3 hrs to fix
                Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php on lines 60..77

                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 145.

                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

                    var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'debug', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage');
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/classes.php and 1 other location - About 3 hrs to fix
                Web.Admin/2014/wordpress/wp-includes/class-wp.php on lines 18..18

                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 145.

                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

                File ParticipantQueries.cs has 297 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                using Edument.CQRS;
                using Events.Contingent;
                using Events.Participant;
                using Events.Tournament;
                using System;
                Severity: Minor
                Found in ReadModels/ParticipantQueries.cs - About 3 hrs to fix

                  Method populate_roles_160 has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function populate_roles_160() {
                      // Add roles
                  
                      // Dummy gettext calls to get strings in the catalog.
                      /* translators: user role */
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/schema.php - About 3 hrs to fix

                    Method paginate_links has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function paginate_links( $args = '' ) {
                        $defaults = array(
                            'base' => '%_%', // http://example.com/all_posts.php%_% : %_% is replaced by format (below)
                            'format' => '?page=%#%', // ?page=%#% : %#% is replaced by the page number
                            'total' => 1,
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/general-template.php - About 3 hrs to fix

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

                          get_current_screen()->add_help_tab( array(
                              'id'      => 'overview',
                              'title'   => __('Overview'),
                              'content' =>
                                  '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' .
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-admin/network/site-info.php and 3 other locations - About 3 hrs to fix
                      Web.Admin/2014/wordpress/wp-admin/network/site-settings.php on lines 19..28
                      Web.Admin/2014/wordpress/wp-admin/network/site-themes.php on lines 19..28
                      Web.Admin/2014/wordpress/wp-admin/network/site-users.php on lines 22..31

                      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 144.

                      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 4 locations. Consider refactoring.
                      Open

                      get_current_screen()->add_help_tab( array(
                          'id'      => 'overview',
                          'title'   => __('Overview'),
                          'content' =>
                              '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' .
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-admin/network/site-users.php and 3 other locations - About 3 hrs to fix
                      Web.Admin/2014/wordpress/wp-admin/network/site-info.php on lines 19..28
                      Web.Admin/2014/wordpress/wp-admin/network/site-settings.php on lines 19..28
                      Web.Admin/2014/wordpress/wp-admin/network/site-themes.php on lines 19..28

                      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 144.

                      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 4 locations. Consider refactoring.
                      Open

                      get_current_screen()->add_help_tab( array(
                          'id'      => 'overview',
                          'title'   => __('Overview'),
                          'content' =>
                              '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' .
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-admin/network/site-themes.php and 3 other locations - About 3 hrs to fix
                      Web.Admin/2014/wordpress/wp-admin/network/site-info.php on lines 19..28
                      Web.Admin/2014/wordpress/wp-admin/network/site-settings.php on lines 19..28
                      Web.Admin/2014/wordpress/wp-admin/network/site-users.php on lines 22..31

                      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 144.

                      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 4 locations. Consider refactoring.
                      Open

                      get_current_screen()->add_help_tab( array(
                          'id'      => 'overview',
                          'title'   => __('Overview'),
                          'content' =>
                              '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' .
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-admin/network/site-settings.php and 3 other locations - About 3 hrs to fix
                      Web.Admin/2014/wordpress/wp-admin/network/site-info.php on lines 19..28
                      Web.Admin/2014/wordpress/wp-admin/network/site-themes.php on lines 19..28
                      Web.Admin/2014/wordpress/wp-admin/network/site-users.php on lines 22..31

                      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 144.

                      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 3 locations. Consider refactoring.
                      Open

                              case PCLZIP_ATT_FILE_NEW_SHORT_NAME :
                                if (!is_string($v_value)) {
                                  PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'");
                                  return PclZip::errorCode();
                                }
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php and 2 other locations - About 3 hrs to fix
                      Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 1888..1901
                      Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php on lines 1917..1929

                      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 144.

                      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

                          public static function parse_str($str)
                          {
                              $return = array();
                              $str = explode('&', $str);
                      
                      
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php and 1 other location - About 3 hrs to fix
                      Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 11198..11217

                      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 144.

                      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