mambax7/references

View on GitHub

Showing 290 of 2,627 total issues

File mootools.js has 3043 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 Script: Core.js
 MooTools - My Object Oriented JavaScript Tools.

 License:
Severity: Major
Found in assets/js/js/mootools.js - About 1 wk to fix

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

    (function () {
        /*
         * jQuery 1.2.6 - New Wave Javascript
         *
         * Copyright (c) 2008 John Resig (jquery.com)
    Severity: Major
    Found in assets/js/autocomplete/lib/jquery.js - About 6 days to fix

      File mootools-1.2-more.js has 1158 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      //MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2008 Valerio Proietti, <http://mad4milk.net>, MIT Style License.
      
      /*
       Script: Fx.Slide.js
       Effect to slide an element in and out of view.
      Severity: Major
      Found in assets/js/js/mootools-1.2-more.js - About 2 days to fix

        File references_utils.php has 1044 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * ****************************************************************************
         * references - MODULE FOR XOOPS
         * Copyright (c) Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
        Severity: Major
        Found in class/references_utils.php - About 2 days to fix

          File twitter.php has 877 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          
          /**
           * Twitter class
           *
          Severity: Major
          Found in plugins/actions/twitter/twitter.php - About 2 days to fix

            Twitter has 106 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Twitter
            {
                // internal constant to enable/disable debugging
                const DEBUG = false;
            
            
            Severity: Major
            Found in plugins/actions/twitter/twitter.php - About 2 days to fix

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

              /*
               * Autocomplete - jQuery plugin 1.0.2
               *
               * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
               *
              Severity: Major
              Found in assets/js/autocomplete/jquery.autocomplete.js - About 1 day to fix

                Function Autocompleter has 271 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    $.Autocompleter = function (input, options) {
                
                        var KEY = {
                            UP: 38,
                            DOWN: 40,
                Severity: Major
                Found in assets/js/autocomplete/jquery.autocomplete.js - About 1 day to fix

                  File main.php has 568 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * ****************************************************************************
                   * references - MODULE FOR XOOPS
                   * Copyright (c) Herv?? Thouzard of Instant Zero (http://www.instant-zero.com)
                  Severity: Major
                  Found in admin/main.php - About 1 day to fix

                    File PersistableObjectHandler.php has 557 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * ****************************************************************************
                     * myshop - MODULE FOR XOOPS
                     * Copyright (c) Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
                    Severity: Major
                    Found in class/PersistableObjectHandler.php - About 1 day to fix

                      Function _cleanDir has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function _cleanDir($dir, $group = false, $mode = 'ingroup')
                          {
                              if ($this->_fileNameProtection) {
                                  $motif = $group ? 'cache_' . md5($group) . '_' : 'cache_';
                              } else {
                      Severity: Minor
                      Found in class/lite.php - 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

                      File PEAR.php has 524 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * PEAR, the PHP Extension and Application Repository
                       *
                       * PEAR class and PEAR_Error class
                      Severity: Major
                      Found in class/PEAR.php - About 1 day to fix

                        references_utils has 56 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class references_utils
                        {
                            // Pour la portabilité de module à module
                            const MODULE_NAME    = 'references';
                            const MODULE_DIRNAME = REFERENCES_DIRNAME;
                        Severity: Major
                        Found in class/references_utils.php - About 1 day to fix

                          Function insert has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function insert(XoopsObject $obj, $force = false, $checkObject = true, $ignoreInsert = false)
                              {
                                  if ($checkObject != false) {
                                      if (!is_object($obj)) {
                                          trigger_error('Error, not object');
                          Severity: Minor
                          Found in class/PersistableObjectHandler.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 references_listFilter.php has 490 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          /**
                           * ****************************************************************************
                           * references - MODULE FOR XOOPS
                           * Copyright (c) Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
                          Severity: Minor
                          Found in class/references_listFilter.php - About 7 hrs to fix

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

                                $.Autocompleter.Select = function (options, input, select, config) {
                                    var CLASSES = {
                                        ACTIVE: "ac_over"
                                    };
                            
                            
                            Severity: Major
                            Found in assets/js/autocomplete/jquery.autocomplete.js - About 6 hrs to fix

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

                                      ajax: function (s) {
                                          // Extend the settings, but re-extend 's' so that it can be
                                          // checked again later (in the test suite, specifically)
                                          s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
                              
                              
                              Severity: Major
                              Found in assets/js/autocomplete/lib/jquery.js - About 6 hrs to fix

                                Function filter has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function filter()
                                    {
                                        $this->setupFilter();                // Réinitialisations
                                        $ts = MyTextSanitizer::getInstance();
                                        $this->setSortFieldsFromRequest();    // On récupère la zone de tri éventuellement passée dans la requête
                                Severity: Minor
                                Found in class/references_listFilter.php - About 5 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 lite.php has 404 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                <?php
                                
                                /**
                                 * Fast, light and safe Cache Class
                                 *
                                Severity: Minor
                                Found in class/lite.php - About 5 hrs to fix

                                  Method unhtml has 133 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public static function unhtml($chaine)
                                      {
                                          $search = $replace = array();
                                          $chaine = html_entity_decode($chaine);
                                  
                                  
                                  Severity: Major
                                  Found in class/references_utils.php - About 5 hrs to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language