mambax7/references

View on GitHub

Showing 2,627 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

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

                            Element.Properties.morph = {
                            
                                set: function (options) {
                                    var morph = this.retrieve('morph');
                                    if (morph) morph.cancel();
                            Severity: Major
                            Found in assets/js/js/mootools.js and 2 other locations - About 7 hrs to fix
                            assets/js/js/mootools-1.2-more.js on lines 109..125
                            assets/js/js/mootools.js on lines 3434..3450

                            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 189.

                            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 3 locations. Consider refactoring.
                            Open

                            Element.Properties.slide = {
                            
                                set: function (options) {
                                    var slide = this.retrieve('slide');
                                    if (slide) slide.cancel();
                            Severity: Major
                            Found in assets/js/js/mootools-1.2-more.js and 2 other locations - About 7 hrs to fix
                            assets/js/js/mootools.js on lines 3434..3450
                            assets/js/js/mootools.js on lines 3547..3563

                            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 189.

                            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 3 locations. Consider refactoring.
                            Open

                            Element.Properties.tween = {
                            
                                set: function (options) {
                                    var tween = this.retrieve('tween');
                                    if (tween) tween.cancel();
                            Severity: Major
                            Found in assets/js/js/mootools.js and 2 other locations - About 7 hrs to fix
                            assets/js/js/mootools-1.2-more.js on lines 109..125
                            assets/js/js/mootools.js on lines 3547..3563

                            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 189.

                            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

                                        mouseenter: {
                                            setup: function () {
                                                if (jQuery.browser.msie) return false;
                                                jQuery(this).bind("mouseover", jQuery.event.special.mouseenter.handler);
                                                return true;
                            Severity: Major
                            Found in assets/js/autocomplete/lib/jquery.js and 1 other location - About 7 hrs to fix
                            assets/js/autocomplete/lib/jquery.js on lines 2304..2324

                            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 186.

                            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

                                        mouseleave: {
                                            setup: function () {
                                                if (jQuery.browser.msie) return false;
                                                jQuery(this).bind("mouseout", jQuery.event.special.mouseleave.handler);
                                                return true;
                            Severity: Major
                            Found in assets/js/autocomplete/lib/jquery.js and 1 other location - About 7 hrs to fix
                            assets/js/autocomplete/lib/jquery.js on lines 2282..2302

                            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 186.

                            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