CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method get_manifest has 175 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function &get_manifest() {
    global $mce_ver;

    $files = array(
        array('images/align-center.png'),
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/includes/manifest.php - About 7 hrs to fix

    Method _post_row has 173 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function _post_row($a_post, $pending_comments, $mode) {
        global $post, $current_user;
        static $rowclass;
    
        $global_post = $post;
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 6 hrs to fix

      Method ArrayOfGenres has 173 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function ArrayOfGenres($allowSCMPXextended=false) {
              static $GenreLookup = array(
                  0    => 'Blues',
                  1    => 'Classic Rock',
                  2    => 'Country',
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v1.php - About 6 hrs to fix

        Method _wp_menu_item_classes_by_context has 173 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function _wp_menu_item_classes_by_context( &$menu_items ) {
            global $wp_query, $wp_rewrite;
        
            $queried_object = $wp_query->get_queried_object();
            $queried_object_id = (int) $wp_query->queried_object_id;
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/nav-menu-template.php - About 6 hrs to fix

          Function wpmu_delete_blog has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
          Open

          function wpmu_delete_blog( $blog_id, $drop = false ) {
              global $wpdb;
          
              $switch = false;
              if ( get_current_blog_id() != $blog_id ) {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/includes/ms.php - About 6 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_kses_hair has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
          Open

          function wp_kses_hair($attr, $allowed_protocols) {
              $attrarr = array ();
              $mode = 0;
              $attrname = '';
              $uris = array('xmlns', 'profile', 'href', 'src', 'cite', 'classid', 'codebase', 'data', 'usemap', 'longdesc', 'action');
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/kses.php - About 6 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 parse has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
          Open

              public function parse()
              {
                  if ($this->compressed_size >= $this->min_compressed_size)
                  {
                      // Check ID1, ID2, and CM
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/gzdecode.php - About 6 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 parse has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
          Open

              public function parse(&$data, $encoding)
              {
                  // Use UTF-8 if we get passed US-ASCII, as every US-ASCII character is a UTF-8 character
                  if (strtoupper($encoding) === 'US-ASCII')
                  {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Parser.php - About 6 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 parse has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
          Open

              function parse(&$data, $encoding)
              {
                  // Use UTF-8 if we get passed US-ASCII, as every US-ASCII character is a UTF-8 character
                  if (strtoupper($encoding) === 'US-ASCII')
                  {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 6 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 parse has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
          Open

              function parse()
              {
                  if ($this->compressed_size >= $this->min_compressed_size)
                  {
                      // Check ID1, ID2, and CM
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 6 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_queried_object has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
          Open

              function get_queried_object() {
                  if (isset($this->queried_object)) {
                      return $this->queried_object;
                  }
          
          
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/query.php - About 6 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 image-edit.dev.js has 454 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          var imageEdit;
          
          (function($) {
          imageEdit = {
              iasapi : {},
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/js/image-edit.dev.js - About 6 hrs to fix

            Function scoreEntryController has 172 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var scoreEntryController = function ($scope, $http, $q, $location, modalFactory, dataService) {
                    var url = $location.absUrl();
                    var lastSlash = url.lastIndexOf('/');
                    var year = url.slice(lastSlash + 1) || new Date().getFullYear();
            
            
            Severity: Major
            Found in Web.Admin/AdminApp/Controllers/controller.scoreentry.js - About 6 hrs to fix

              Method decode has 171 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function decode($str)
                  {
                      $str = $this->reduce_string($str);
              
                      switch (strtolower($str)) {
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 6 hrs to fix

                Function jQueryExtensions has 170 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        jQueryExtensions : function() {
                            // jQuery extensions
                            $.fn.extend({
                                menuItemDepth : function() {
                                    var margin = api.isRTL ? this.eq(0).css('margin-right') : this.eq(0).css('margin-left');
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/js/nav-menu.js - About 6 hrs to fix

                  Function linkDrop has 169 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function linkDrop(scope, elem, attr, ngModel, $parse, $timeout, $location) {
                      var available = dropAvailable();
                      if (attr.dropAvailable) {
                          $timeout(function () {
                              scope[attr.dropAvailable] ? scope[attr.dropAvailable].value = available : scope[attr.dropAvailable] = available;
                  Severity: Major
                  Found in Web.Admin/z-scripts/ng-file-upload.js - About 6 hrs to fix

                    Function linkDrop has 169 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function linkDrop(scope, elem, attr, ngModel, $parse, $timeout, $location) {
                        var available = dropAvailable();
                        if (attr.dropAvailable) {
                            $timeout(function () {
                                scope[attr.dropAvailable] ? scope[attr.dropAvailable].value = available : scope[attr.dropAvailable] = available;
                    Severity: Major
                    Found in Web.Admin/z-scripts/ng-file-upload-all.js - About 6 hrs to fix

                      Function setAreaCoords has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
                      Open

                      },setAreaCoords:function(_1d,_1e,_1f,_20,_21){
                      var _22=typeof _1e!="undefined"?_1e:false;
                      var _23=typeof _1f!="undefined"?_1f:false;
                      if(_1e){
                      var _24=_1d.x2-_1d.x1;
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/js/crop/cropper.js - About 6 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 onDrag has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
                      Open

                      },onDrag:function(e){
                      var _4f=null;
                      if(this.dragging||this.resizing){
                      var _50=this.getCurPos(e);
                      var _51=this.cloneCoords(this.areaCoords);
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/js/crop/cropper.js - About 6 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 column_comment has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
                      Open

                          function column_comment( $comment ) {
                              global $comment_status;
                              $post = get_post();
                      
                              $user_can = $this->user_can;

                      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