XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

Function _contactContainers has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _contactContainers: function(event) {
        var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, cur, nearBottom, floating, axis,
            innermostContainer = null,
            innermostIndex = null;

Severity: Major
Found in assets/js/jqueryui.min.js - About 2 hrs to fix

    Function _processTabs has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _processTabs: function() {
            var that = this,
                prevTabs = this.tabs,
                prevAnchors = this.anchors,
                prevPanels = this.panels;
    Severity: Major
    Found in assets/js/jqueryui.min.js - About 2 hrs to fix

      SwDatabase has 25 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class SwDatabase
      {
          /**
           * getJobsToDiv method
           *
      Severity: Minor
      Found in class/SwDatabase.php - About 2 hrs to fix

        File xoops_version.php has 284 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /*
         * You may not change or alter any portion of this comment or credits
         * of supporting developers from this source code or any supporting source code
         * which is considered copyrighted (c) material of the original comment or credit authors.
        Severity: Minor
        Found in xoops_version.php - About 2 hrs to fix

          Function _create has 70 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _create: function() {
                  this.activeMenu = this.element;
          
                  // Flag used to prevent firing of the click handler
                  // as the event bubbles up through nested menus
          Severity: Major
          Found in assets/js/jqueryui.min.js - About 2 hrs to fix

            Function elastic has 70 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    elastic: function () {
            
                        //    We will create a div clone of the textarea
                        //    by copying these attributes from the textarea to the div.
                        var mimics = [
            Severity: Major
            Found in assets/js/jquery.elastic.source.js - About 2 hrs to fix

              Function slide has 70 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          slide: function (options, additions) {
                              options = $.extend({
                                  easing: "swing",
                                  duration: 300
                              }, options, additions);
              Severity: Major
              Found in assets/js/jquery-ui-1.8.11.custom.js - About 2 hrs to fix

                Function formatDate has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        formatDate: function (format, date, settings) {
                            if (!date)
                                return '';
                            var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
                            var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
                Severity: Major
                Found in assets/js/jquery-ui-1.8.11.custom.js - About 2 hrs to fix

                  Function validate has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                  Open

                      protected function validate($uploaded_file, $file, $error, $index)
                      {
                          if ($error) {
                              $file->error = $this->get_error_message($error);
                  
                  
                  Severity: Minor
                  Found in class/UploadHandler.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 resizeImage has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function resizeImage()
                      {
                          // check file extension
                          switch ($this->imageMimetype) {
                              case'image/png':
                  Severity: Minor
                  Found in class/Common/Resizer.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 _keydown has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _keydown: function( event ) {
                          var match, prev, character, skip,
                              preventDefault = true;
                  
                          switch ( event.keyCode ) {
                  Severity: Major
                  Found in assets/js/jqueryui.min.js - About 2 hrs to fix

                    Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                        var bySet = setMatchers.length > 0,
                            byElement = elementMatchers.length > 0,
                            superMatcher = function( seed, context, xml, results, outermost ) {
                                var elem, j, matcher,
                    Severity: Major
                    Found in assets/js/jquery.min.js - About 2 hrs to fix

                      Function launch has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function launch(target) {
                              if (!closing) {
                      
                                  element = target;
                      
                      
                      Severity: Major
                      Found in assets/js/jquery.colorbox.js - About 2 hrs to fix

                        Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function done( status, nativeStatusText, responses, headers ) {
                                    var isSuccess, success, error, response, modified,
                                        statusText = nativeStatusText;
                        
                                    // Called once
                        Severity: Major
                        Found in assets/js/jquery.min.js - About 2 hrs to fix

                          Function _onSend has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  _onSend: function (e, data) {
                                      var that = this,
                                          jqXHR,
                                          aborted,
                                          slot,
                          Severity: Major
                          Found in assets/js/jquery.fileupload.js - About 2 hrs to fix

                            Function _generatePosition has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _generatePosition: function( event, constrainPosition ) {
                            
                                    var containment, co, top, left,
                                        o = this.options,
                                        scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] ),
                            Severity: Major
                            Found in assets/js/jqueryui.min.js - About 2 hrs to fix

                              Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                                  if ( postFilter && !postFilter[ expando ] ) {
                                      postFilter = setMatcher( postFilter );
                                  }
                                  if ( postFinder && !postFinder[ expando ] ) {
                              Severity: Major
                              Found in assets/js/jquery.min.js - About 2 hrs to fix

                                Function _clickHandler has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _clickHandler: function (event, target) {
                                            var options = this.options;
                                            if (options.disabled) {
                                                return;
                                            }
                                Severity: Major
                                Found in assets/js/jquery-ui-1.8.11.custom.js - About 2 hrs to fix

                                  Function position has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      publicMethod.position = function (speed, loadedCallback) {
                                          var
                                              css,
                                              top = 0,
                                              left = 0,
                                  Severity: Major
                                  Found in assets/js/jquery.colorbox.js - About 2 hrs to fix

                                    Function _showDatepicker has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            _showDatepicker: function (input) {
                                                input = input.target || input;
                                                if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
                                                    input = $('input', input.parentNode)[0];
                                                if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here
                                    Severity: Major
                                    Found in assets/js/jquery-ui-1.8.11.custom.js - About 2 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language