CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function Finger has 195 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Galleria.Finger = (function() {

    var abs = M.abs;

    // test for translate3d support
Severity: Major
Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 7 hrs to fix

    Function Finger has 195 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Galleria.Finger = (function() {
    
        var abs = M.abs;
    
        // test for translate3d support
    Severity: Major
    Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 7 hrs to fix

      Method Analyze has 195 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function Analyze() {
              $info = &$this->getid3->info;
      
              fseek($this->getid3->fp, $info['avdataoffset'], SEEK_SET);
      
      
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.flv.php - About 7 hrs to fix

        Function suggest has 194 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $.suggest = function(input, options) {
                var $input, $results, timeout, prevLength, cache, cacheSize;
        
                $input = $(input).attr("autocomplete", "off");
                $results = $(document.createElement("ul"));
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/js/jquery/suggest.dev.js - About 7 hrs to fix

          Method get_terms has 194 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function &get_terms($taxonomies, $args = '') {
              global $wpdb;
              $empty_array = array();
          
              $single_taxonomy = false;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 7 hrs to fix

            Method EBMLidName has 194 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private static function EBMLidName($value) {
                    static $EBMLidList = array();
                    if (empty($EBMLidList)) {
                        $EBMLidList[EBML_ID_ASPECTRATIOTYPE]            = 'AspectRatioType';
                        $EBMLidList[EBML_ID_ATTACHEDFILE]               = 'AttachedFile';

              Function convert_categories has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
              Open

                  function convert_categories() {
                      global $wpdb;
              
                      if ( (!isset($_POST['cats_to_convert']) || !is_array($_POST['cats_to_convert'])) && empty($this->categories_to_convert)) { ?>
                          <div class="narrow">
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php - About 7 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 ParseVorbisComments has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function ParseVorbisComments() {
                      $info = &$this->getid3->info;
              
                      $OriginalOffset = $this->ftell();
                      $commentdataoffset = 0;
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.ogg.php - About 7 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 remove_iunreserved_percent_encoded has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
              Open

                  protected function remove_iunreserved_percent_encoded($match)
                  {
                      // As we just have valid percent encoded sequences we can just explode
                      // and ignore the first member of the returned array (an empty string).
                      $bytes = explode('%', $match[0]);
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/IRI.php - About 7 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 __construct has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function __construct( $theme_dir, $theme_root, $_child = null ) {
                      global $wp_theme_directories;
              
                      // Initialize caching on first run.
                      if ( ! isset( self::$persistently_cache ) ) {
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-theme.php - About 7 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

              File continents-cities.php has 488 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              /* Continent and city translations for timezone selection.
               * This file is not included anywhere. It exists solely for use by xgettext.
               */
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/includes/continents-cities.php - About 7 hrs to fix

                Method Handle has 192 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        public IEnumerable Handle(Func<Guid, MatchAggregate> al, SaveMatchResult command)
                        {
                            var agg = al(command.Id);
                            
                            var match = _dispatcher.Load<MatchAggregate>(command.Id); //TODO: Why am I loading this again?
                Severity: Major
                Found in Aggregates/Scores/ScoresCommandHandlers.cs - About 7 hrs to fix

                  File post.dev.js has 485 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  var tagBox, commentsBox, editPermalink, makeSlugeditClickable, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail;
                  
                  // return an array with any duplicate, whitespace or values removed
                  function array_unique_noempty(a) {
                      var out = [];
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/js/post.dev.js - About 7 hrs to fix

                    Method register_controls has 191 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function register_controls() {
                    
                            /* Site Title & Tagline */
                    
                            $this->add_section( 'title_tagline', array(
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-manager.php - About 7 hrs to fix

                      Method wp_mce_translation has 190 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public static function wp_mce_translation() {
                      
                              $mce_translation = array(
                                  // Default TinyMCE strings
                                  'New document' => __( 'New document' ),
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-editor.php - About 7 hrs to fix

                        File module.audio.ogg.php has 483 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /////////////////////////////////////////////////////////////////
                        /// getID3() by James Heinrich <info@getid3.org>               //
                        //  available at http://getid3.sourceforge.net                 //
                        //            or http://www.getid3.org                         //
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.ogg.php - About 7 hrs to fix

                          File class-pop3.php has 483 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          /**
                           * mail_fetch/setup.php
                           *
                           * @package SquirrelMail
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/class-pop3.php - About 7 hrs to fix

                            Function _wp_ajax_menu_quick_search has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function _wp_ajax_menu_quick_search( $request = array() ) {
                                $args = array();
                                $type = isset( $request['type'] ) ? $request['type'] : '';
                                $object_type = isset( $request['object_type'] ) ? $request['object_type'] : '';
                                $query = isset( $request['q'] ) ? $request['q'] : '';
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/nav-menu.php - About 7 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_plugins has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function get_plugins($plugin_folder = '') {
                            
                                if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
                                    $cache_plugins = array();
                            
                            
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/plugin.php - About 7 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 widget has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function widget( $args, $instance ) {
                                    $format = $instance['format'];
                            
                                    switch ( $format ) {
                                        case 'image':

                            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