BallStateCBER/datacenter-plugin-cakephp3

View on GitHub

Showing 955 of 1,787 total issues

File jquery-ui.js has 12606 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! jQuery UI - v1.11.3 - 2015-02-13
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs.js, tooltip.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */

Severity: Major
Found in webroot/jquery-ui-1.11.3.custom/jquery-ui.js - About 1 mo to fix

    Function process has a Cognitive Complexity of 1784 (exceeds 5 allowed). Consider refactoring.
    Open

        function process($server_path = null) {
    
            $this->error        = '';
            $this->processed    = true;
            $return_mode        = false;
    Severity: Minor
    Found in webroot/js/tiny_mce/plugins/phpimage/classes/class.upload.php - About 1 mo 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 tiny_mce_src.js has 9335 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    var tinymce = {
        majorVersion : '3',
        minorVersion : '2.7',
        releaseDate : '2009-09-22',
    
    
    Severity: Major
    Found in webroot/js/tiny_mce/tiny_mce_src.js - About 3 wks to fix

      File jquery.js has 6641 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * jQuery JavaScript Library v1.10.2
       * http://jquery.com/
       *
       * Includes Sizzle.js
      Severity: Major
      Found in webroot/jquery-ui-1.11.3.custom/external/jquery/jquery.js - About 2 wks to fix

        File jquery-1.7.1.js has 6373 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * jQuery JavaScript Library v1.7.1
         * http://jquery.com/
         *
         * Copyright 2011, John Resig
        Severity: Major
        Found in webroot/js/jquery-1.7.1.js - About 2 wks to fix

          File less-1.7.3.js has 6224 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * Less - Leaner CSS v1.7.3
           * http://lesscss.org
           *
           * Copyright (c) 2009-2014, Alexis Sellier <self@cloudhead.net>
          Severity: Major
          Found in webroot/js/less-1.7.3.js - About 2 wks to fix

            Function Parser has 1397 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            less.Parser = function Parser(env) {
                var input,       // LeSS input string
                    i,           // current index in `input`
                    j,           // current chunk
                    saveStack = [],   // holds state for backtracking
            Severity: Major
            Found in webroot/js/less-1.7.3.js - About 6 days to fix

              Method process has 1376 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function process($server_path = null) {
              
                      $this->error        = '';
                      $this->processed    = true;
                      $return_mode        = false;
              Severity: Major
              Found in webroot/js/tiny_mce/plugins/phpimage/classes/class.upload.php - About 6 days to fix

                File class.upload.php has 2363 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                // +------------------------------------------------------------------------+
                // | class.upload.php                                                       |
                // +------------------------------------------------------------------------+
                // | Copyright (c) Colin Verot 2003-2009. All rights reserved.              |
                Severity: Major
                Found in webroot/js/tiny_mce/plugins/phpimage/classes/class.upload.php - About 6 days to fix

                  File jquery.qtip.js has 2351 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*
                   * qTip2 - Pretty powerful tooltips - v2.0.1-108
                   * http://qtip2.com
                   *
                   * Copyright (c) 2013 Craig Michael Thompson
                  Severity: Major
                  Found in webroot/js/jquery.qtip.js - About 6 days to fix

                    Function upload has a Cognitive Complexity of 227 (exceeds 5 allowed). Consider refactoring.
                    Open

                        function upload($file, $lang = 'en_GB') {
                    
                            $this->version            = '0.28';
                    
                            $this->file_src_name      = '';
                    Severity: Minor
                    Found in webroot/js/tiny_mce/plugins/phpimage/classes/class.upload.php - About 4 days 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 jQuery has 592 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var jQuery = (function() {
                    
                    // Define a local copy of jQuery
                    var jQuery = function( selector, context ) {
                            // The jQuery object is actually just the init constructor 'enhanced'
                    Severity: Major
                    Found in webroot/js/jquery-1.7.1.js - About 2 days to fix

                      Method upload has 476 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function upload($file, $lang = 'en_GB') {
                      
                              $this->version            = '0.28';
                      
                              $this->file_src_name      = '';
                      Severity: Major
                      Found in webroot/js/tiny_mce/plugins/phpimage/classes/class.upload.php - About 2 days to fix

                        File jquery.svg.js has 863 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /* http://keith-wood.name/svg.html
                           SVG for jQuery v1.4.5.
                           Written by Keith Wood (kbwood{at}iinet.com.au) August 2007.
                           Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and 
                           MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. 
                        Severity: Major
                        Found in webroot/js/jquery.svg.js - About 2 days to fix

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

                          function generateCSS() {
                              var ce = document.getElementById('container'), f = document.forms[0], num = new RegExp('[0-9]+', 'g'), s, t;
                          
                              ce.style.cssText = "";
                          
                          
                          Severity: Minor
                          Found in webroot/js/tiny_mce/plugins/style/js/props.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 parse has 256 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  parse: function (str, callback, additionalData) {
                                      var root, line, lines, error = null, globalVars, modifyVars, preText = "";
                          
                                      i = j = currentPos = furthest = 0;
                          
                          
                          Severity: Major
                          Found in webroot/js/less-1.7.3.js - About 1 day to fix

                            Function ajax has 242 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                ajax: function( url, options ) {
                            
                                    // If url is an object, simulate pre-1.5 signature
                                    if ( typeof url === "object" ) {
                                        options = url;
                            Severity: Major
                            Found in webroot/js/jquery-1.7.1.js - About 1 day to fix

                              Function ajax has 240 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  ajax: function( url, options ) {
                              
                                      // If url is an object, simulate pre-1.5 signature
                                      if ( typeof url === "object" ) {
                                          options = url;
                              Severity: Major
                              Found in webroot/jquery-ui-1.11.3.custom/external/jquery/jquery.js - About 1 day to fix

                                Function _addEvents has 235 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _addEvents : function() {
                                            // 'focus', 'blur', 'dblclick', 'beforedeactivate', submit, reset
                                            var t = this, i, s = t.settings, lo = {
                                                mouseup : 'onMouseUp',
                                                mousedown : 'onMouseDown',
                                Severity: Major
                                Found in webroot/js/tiny_mce/tiny_mce_src.js - About 1 day to fix

                                  Function setupIframe has 218 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          setupIframe : function() {
                                              var t = this, s = t.settings, e = DOM.get(t.id), d = t.getDoc(), h, b;
                                  
                                              // Setup iframe body
                                              if (!isIE || !tinymce.relaxedDomain) {
                                  Severity: Major
                                  Found in webroot/js/tiny_mce/tiny_mce_src.js - About 1 day to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language