CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Class ParticipantQueries has 27 methods (exceeds 20 allowed). Consider refactoring.
Open

    public class ParticipantQueries : 
        IReadModel,
        IParticipantQueries,
        ISubscribeTo<ParticipantCreated>,
        ISubscribeTo<ParticipantRenamed>,
Severity: Minor
Found in ReadModels/ParticipantQueries.cs - 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/2015/js/galleria/galleria-1.4.2.js - About 3 hrs to fix

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

                    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

                          Function getStyle has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                          Open

                            Element.Methods.getStyle = function(element, style) {
                              element = $(element);
                              style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize();
                              var value = element.style[style];
                              if (!value && element.currentStyle) value = element.currentStyle[style];
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 3 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 serializeElements has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                          Open

                            serializeElements: function(elements, options) {
                              if (typeof options != 'object') options = { hash: !!options };
                              else if (options.hash === undefined) options.hash = true;
                              var key, value, submitted = false, submit = options.submit;
                          
                          
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 3 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 getStyle has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                          Open

                            Element.Methods.getStyle = function(element, style) {
                              element = $(element);
                              style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize();
                              var value = element.style[style];
                              if (!value && element.currentStyle) value = element.currentStyle[style];
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 3 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 serializeElements has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                          Open

                            serializeElements: function(elements, options) {
                              if (typeof options != 'object') options = { hash: !!options };
                              else if (options.hash === undefined) options.hash = true;
                              var key, value, submitted = false, submit = options.submit;
                          
                          
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 3 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_nav_menu_item_post_type_meta_box has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) {
                              global $_nav_menu_placeholder, $nav_menu_selected_id;
                          
                              $post_type_name = $post_type['args']->name;
                          
                          
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/nav-menu.php - About 3 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 22 (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_handle_upload has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function wp_handle_upload( &$file, $overrides = false, $time = null ) {
                              // The default error handler.
                              if (! function_exists( 'wp_handle_upload_error' ) ) {
                                  function wp_handle_upload_error( &$file, $message ) {
                                      return array( 'error'=>$message );
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/file.php - About 3 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 copy_dir has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function copy_dir($from, $to) {
                              global $wp_filesystem;
                          
                              $dirlist = $wp_filesystem->dirlist($from);
                          
                          
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/file.php - About 3 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