CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method wp_xmlrpc_server has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function wp_xmlrpc_server() {
        $this->methods = array(
            // WordPress API
            'wp.getUsersBlogs'        => 'this:wp_getUsersBlogs',
            'wp.getPage'            => 'this:wp_getPage',
Severity: Major
Found in Web.Admin/2014/wordpress/xmlrpc.php - About 2 hrs to fix

    Method BigEndian2Float has 61 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function BigEndian2Float($byteword) {
            // ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic
            // http://www.psc.edu/general/software/packages/ieee/ieee.html
            // http://www.scri.fsu.edu/~jac/MAD3401/Backgrnd/ieee.html
    
    
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php - About 2 hrs to fix

      Method get_date has 61 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function get_date($date_format = 'j F Y, g:i a')
          {
              if (!isset($this->data['date']))
              {
                  if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'published'))
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 2 hrs to fix

        Method get_date has 61 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function get_date($date_format = 'j F Y, g:i a')
            {
                if (!isset($this->data['date']))
                {
                    if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'published'))
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

          Method get_status_header_desc has 61 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function get_status_header_desc( $code ) {
              global $wp_header_to_desc;
          
              $code = absint( $code );
          
          
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/functions.php - About 2 hrs to fix

            Method editor has 61 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function editor( $content, $editor_id, $settings = array() ) {
            
                    $set = self::parse_settings( $editor_id, $settings );
                    $editor_class = ' class="' . trim( $set['editor_class'] . ' wp-editor-area' ) . '"';
                    $tabindex = $set['tabindex'] ? ' tabindex="' . (int) $set['tabindex'] . '"' : '';
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/class-wp-editor.php - About 2 hrs to fix

              Method tag_close has 61 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function tag_close($parser, $tag) {
                      $valueFlag = false;
                      switch($tag) {
                          case 'int':
                          case 'i4':
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-IXR.php - About 2 hrs to fix

                Method CreateBody has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function CreateBody() {
                    $result = '';
                    if ($this->sign_key_file) {
                      $result .= $this->GetMailMIME();
                    }
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 2 hrs to fix

                  Function each has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                      each : function(o, cb, s) {
                          var n, l;
                  
                          if (!o)
                              return 0;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/js/utils.dev.js - About 2 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 each has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                      each : function(obj, cb, scope) {
                          var n, l;
                  
                          if ( !obj )
                              return 0;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/utils.js - About 2 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 tagName has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                      tagName: function(nodes, root, tagName, combinator) {
                        tagName = tagName.toUpperCase();
                        var results = [], h = Selector.handlers;
                        if (nodes) {
                          if (combinator) {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 2 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 keyHandler has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                      keyHandler : function(evt) {
                          keyCode = evt.keyCode;    
                          charCode = evt.charCode;
                  
                          if((evt.ctrlKey || evt.metaKey) && evt.shiftKey && charCode!=90)  { // shortcuts = ctrl||appleKey+shift+key!=z(undo) 
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/codepress/engines/opera.js - About 2 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 tagName has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                      tagName: function(nodes, root, tagName, combinator) {
                        tagName = tagName.toUpperCase();
                        var results = [], h = Selector.handlers;
                        if (nodes) {
                          if (combinator) {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 2 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 setup has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                    setup: function(){
                      function parseColor(color){
                        if (!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff';
                        color = color.parseColor();
                        return $R(0,2).map(function(i){
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js - About 2 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 parseColor has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                  String.prototype.parseColor = function() {  
                    var color = '#';
                    if (this.slice(0,4) == 'rgb(') {  
                      var cols = this.slice(4,this.length-1).split(',');  
                      var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3);  
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js - About 2 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 setDimensions has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                    setDimensions: function(height, width) {
                      var d = { };
                      if (this.options.scaleX) d.width = width.round() + 'px';
                      if (this.options.scaleY) d.height = height.round() + 'px';
                      if (this.options.scaleFromCenter) {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js - About 2 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 updateTracking has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                      SWFUpload.prototype.updateTracking = function (file, bytesUploaded) {
                          var tracking = this.fileSpeedStats[file.id];
                          if (!tracking) {
                              this.fileSpeedStats[file.id] = tracking = {};
                          }

                  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 privExtractFileInOutput has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                    function privExtractFileInOutput(&$p_entry, &$p_options)
                    {
                      $v_result=1;
                  
                      // ----- Read the file header
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 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 privAdd has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                    function privAdd($p_filedescr_list, &$p_result_list, &$p_options)
                    {
                      $v_result=1;
                      $v_list_detail = array();
                  
                  
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 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 meta_box_prefs has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function meta_box_prefs($page) {
                      global $wp_meta_boxes;
                  
                      if ( empty($wp_meta_boxes[$page]) )
                          return;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 2 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