CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function responsiveNav has 392 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var responsiveNav = function (el, options) {

    var computed = !!window.getComputedStyle;
    
    // getComputedStyle polyfill
Severity: Major
Found in Web.Admin/2015/js/responsive-nav.js - About 1 day to fix

    Function responsiveNav has 392 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var responsiveNav = function (el, options) {
    
        var computed = !!window.getComputedStyle;
        
        // getComputedStyle polyfill
    Severity: Major
    Found in Web.Admin/2014/js/responsive-nav.js - About 1 day to fix

      File revisions.js has 818 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* global _wpRevisionsSettings, isRtl */
      window.wp = window.wp || {};
      
      (function($) {
          var revisions;
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-admin/js/revisions.js - About 1 day to fix

        File Enclosure.php has 816 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * SimplePie
         *
         * A PHP-Based RSS and Atom Feed Framework.
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Enclosure.php - About 1 day to fix

          Function dataService has 385 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var dataService = function ($http, ngUpload, moment) {
                  return {
                      SaveTeam: saveTeam,
                      RemoveTeam: removeTeam,
                      SaveParticipant: saveParticipant,
          Severity: Major
          Found in Web.Admin/AdminApp/Services/service.data.js - About 1 day to fix

            wp_xmlrpc_server has 100 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class wp_xmlrpc_server extends IXR_Server {
            
                /**
                 * Register all of the XMLRPC methods that XMLRPC server understands.
                 *
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 day to fix

              File controls.js has 804 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              // script.aculo.us controls.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007
              
              // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
              //           (c) 2005-2007 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
              //           (c) 2005-2007 Jon Tirsen (http://www.tirsen.com)
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/controls.js - About 1 day to fix

                Function display_rows has a Cognitive Complexity of 95 (exceeds 5 allowed). Consider refactoring.
                Open

                    function display_rows() {
                        global $post;
                
                        add_filter( 'the_title','esc_html' );
                        $alt = '';

                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

                Method GetFileFormatArray has 379 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function GetFileFormatArray() {
                        static $format_info = array();
                        if (empty($format_info)) {
                            $format_info = array(
                
                
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 1 day to fix

                  Function process_post has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
                  Open

                      function process_post($post) {
                          global $wpdb;
                  
                          $post_ID = (int) $this->get_tag( $post, 'wp:post_id' );
                            if ( $post_ID && !empty($this->post_ids_processed[$post_ID]) ) // Processed already
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/import/wordpress.php - About 1 day 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 sanitize has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function sanitize($data, $type, $base = '')
                      {
                          $data = trim($data);
                          if ($data !== '' || $type & SIMPLEPIE_CONSTRUCT_IRI)
                          {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Sanitize.php - About 1 day 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

                  File dragdrop.js has 785 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  // script.aculo.us dragdrop.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007
                  
                  // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                  //           (c) 2005-2007 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
                  // 
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 1 day to fix

                    Function Heartbeat has 366 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var Heartbeat = function() {
                            var $document = $(document),
                                settings = {
                                    // Suspend/resume
                                    suspend: false,
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/heartbeat.js - About 1 day to fix

                      File class-wp-upgrader.php has 776 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * A File upgrader class for WordPress.
                       *
                       * This set of classes are designed to be used to upgrade/install a local set of files on the filesystem via the Filesystem Abstraction classes.
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php - About 1 day to fix

                        Function mw_editPost has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring.
                        Open

                            function mw_editPost($args) {
                        
                                $this->escape($args);
                        
                                $post_ID        = (int) $args[0];
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 day 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

                        File rewrite.php has 774 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /**
                         * WordPress Rewrite API
                         *
                         * @package WordPress
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/rewrite.php - About 1 day to fix

                          Function wp_insert_post has a Cognitive Complexity of 90 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function wp_insert_post($postarr = array(), $wp_error = false) {
                              global $wpdb, $wp_rewrite, $user_ID;
                          
                              $defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID,
                                  'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/post.php - About 1 day 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

                          Method decodeMPEGaudioHeader has 353 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function decodeMPEGaudioHeader($offset, &$info, $recursivesearch=true, $ScanAsCBR=false, $FastMPEGheaderScan=false) {
                                  static $MPEGaudioVersionLookup;
                                  static $MPEGaudioLayerLookup;
                                  static $MPEGaudioBitrateLookup;
                                  static $MPEGaudioFrequencyLookup;
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 1 day to fix

                            Function _farbtastic has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring.
                            Open

                            jQuery._farbtastic = function (container, callback) {
                              // Store farbtastic object
                              var fb = this;
                            
                              // Insert markup
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/js/farbtastic.js - About 1 day 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 decode has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring.
                            Open

                                function decode($str)
                                {
                                    $str = $this->reduce_string($str);
                            
                                    switch (strtolower($str)) {
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 1 day 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