BallStateCBER/datacenter-plugin-cakephp3

View on GitHub

Showing 1,787 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

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      var ImageDialog = {
          preInit : function() {
              var url;
      
              tinyMCEPopup.requireLangPack();
      Severity: Major
      Found in webroot/js/tiny_mce/plugins/phpimage/js/image.js and 1 other location - About 3 wks to fix
      webroot/js/tiny_mce/plugins/advimage/js/image.js on lines 1..440

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 4366.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      var ImageDialog = {
          preInit : function() {
              var url;
      
              tinyMCEPopup.requireLangPack();
      Severity: Major
      Found in webroot/js/tiny_mce/plugins/advimage/js/image.js and 1 other location - About 3 wks to fix
      webroot/js/tiny_mce/plugins/phpimage/js/image.js on lines 1..440

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 4366.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      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

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                        tree.colors = {
                            'aliceblue':'#f0f8ff',
                            'antiquewhite':'#faebd7',
                            'aqua':'#00ffff',
                            'aquamarine':'#7fffd4',
                    Severity: Major
                    Found in webroot/js/less-1.7.3.js and 1 other location - About 4 days to fix
                    webroot/js/tiny_mce/themes/advanced/js/color_picker.js on lines 35..59

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 737.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    var named = {
                        '#F0F8FF':'AliceBlue','#FAEBD7':'AntiqueWhite','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige',
                        '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'BlanchedAlmond','#0000FF':'Blue','#8A2BE2':'BlueViolet','#A52A2A':'Brown',
                        '#DEB887':'BurlyWood','#5F9EA0':'CadetBlue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'CornflowerBlue',
                        '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'DarkBlue','#008B8B':'DarkCyan','#B8860B':'DarkGoldenRod',
                    Severity: Major
                    Found in webroot/js/tiny_mce/themes/advanced/js/color_picker.js and 1 other location - About 4 days to fix
                    webroot/js/less-1.7.3.js on lines 2872..3020

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 737.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    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

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      jQuery.extend = jQuery.fn.extend = function() {
                          var src, copyIsArray, copy, name, options, clone,
                              target = arguments[0] || {},
                              i = 1,
                              length = arguments.length,
                      Severity: Major
                      Found in webroot/jquery-ui-1.11.3.custom/external/jquery/jquery.js and 1 other location - About 2 days to fix
                      webroot/js/jquery-1.7.1.js on lines 324..386

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 453.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                      jQuery.extend = jQuery.fn.extend = function() {
                          var options, name, src, copy, copyIsArray, clone,
                              target = arguments[0] || {},
                              i = 1,
                              length = arguments.length,
                      Severity: Major
                      Found in webroot/js/jquery-1.7.1.js and 1 other location - About 2 days to fix
                      webroot/jquery-ui-1.11.3.custom/external/jquery/jquery.js on lines 314..376

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 453.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      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

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                            setOffset: function( elem, options, i ) {
                                var position = jQuery.css( elem, "position" );
                        
                                // set position first, in-case top/left are set even on static elem
                                if ( position === "static" ) {
                        Severity: Major
                        Found in webroot/jquery-ui-1.11.3.custom/external/jquery/jquery.js and 1 other location - About 2 days to fix
                        webroot/js/jquery-1.7.1.js on lines 9030..9071

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 406.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Severity
                        Category
                        Status
                        Source
                        Language