stevenocchipinti/dwi-visualiser

View on GitHub

Showing 319 of 620 total issues

Function axisToCanvasCoords has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function axisToCanvasCoords(pos) {
            // get canvas coords from the first pair of x/y found in pos
            var res = {}, i, axis, key;

            for (i = 0; i < xaxes.length; ++i) {
Severity: Minor
Found in public/lib/jquery.flot.js - About 1 hr to fix

    Function setTicks has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function setTicks(axis) {
                var oticks = axis.options.ticks, ticks = [];
                if (oticks == null || (typeof oticks == "number" && oticks > 0))
                    ticks = axis.tickGenerator(axis);
                else if (oticks) {
    Severity: Minor
    Found in public/lib/jquery.flot.js - About 1 hr to fix

      Function > has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              ">": function( checkSet, part ) {
                  var elem,
                      isPartStr = typeof part === "string",
                      i = 0,
                      l = checkSet.length;
      Severity: Minor
      Found in public/lib/jquery.js - About 1 hr to fix

        Function set has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                set: function( elem, value ) {
                    var parsed, curElem,
                        backgroundColor = "";
        
                    if ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) {
        Severity: Minor
        Found in public/lib/jquery-ui.js - About 1 hr to fix

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

                  $.fn.position = function( options ) {
                      if ( !options || !options.offset ) {
                          return _position.call( this, options );
                      }
                      var offset = options.offset.split( " " ),
          Severity: Minor
          Found in public/lib/jquery-ui.js - About 1 hr to fix

            Function focus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                focus: function( event, item ) {
                    var nested, focused;
                    this.blur( event, event && event.type === "focus" );
            
                    this._scrollIntoView( item );
            Severity: Minor
            Found in public/lib/jquery-ui.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                                      if (series[i].bars.horizontal ? 
                                          (mx <= Math.max(b, x) && mx >= Math.min(b, x) && 
                                           my >= y + barLeft && my <= y + barRight) :
                                          (mx >= x + barLeft && mx <= x + barRight &&
                                           my >= Math.min(b, y) && my <= Math.max(b, y)))
              Severity: Major
              Found in public/lib/jquery.flot.js - About 1 hr to fix

                Function plotPoints has 8 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                            function plotPoints(datapoints, radius, fillStyle, offset, shadow, axisx, axisy, symbol) {
                Severity: Major
                Found in public/lib/jquery.flot.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                      if ( s.dataTypes[ 0 ] === "jsonp" ||
                          originalSettings.jsonpCallback ||
                          originalSettings.jsonp != null ||
                          s.jsonp !== false && ( jsre.test( s.url ) ||
                                  dataIsString && jsre.test( s.data ) ) ) {
                  Severity: Major
                  Found in public/lib/jquery.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
                                var that = this;
                                $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
                                    if(that._trigger("stop", event) !== false) {
                                        that._clear();
                    Severity: Major
                    Found in public/lib/jquery-ui.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if ($.datepicker._datepickerShowing)
                                  switch (event.keyCode) {
                                      case 9: $.datepicker._hideDatepicker();
                                              handled = false;
                                              break; // hide on tab out
                      Severity: Major
                      Found in public/lib/jquery-ui.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
                                        (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                        Severity: Major
                        Found in public/lib/jquery-ui.js - About 1 hr to fix

                          Function _generateMonthYearHeader has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
                                      secondary, monthNames, monthNamesShort) {
                          Severity: Major
                          Found in public/lib/jquery-ui.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if(       this.options.tolerance == "pointer"
                                        || this.options.forcePointerForContainers
                                        || (this.options.tolerance != "pointer" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])
                                    ) {
                                        return isOverElement;
                            Severity: Major
                            Found in public/lib/jquery-ui.js - About 1 hr to fix

                              Function plotBars has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                          function plotBars(datapoints, barLeft, barRight, offset, fillStyleCallback, axisx, axisy) {
                              Severity: Major
                              Found in public/lib/jquery.flot.js - About 50 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                } else if ( copy !== undefined ) {
                                                    target[ name ] = copy;
                                                }
                                Severity: Major
                                Found in public/lib/jquery.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if ( relativeHierarchySelector && hasParent ) {
                                                          context = context.parentNode;
                                                      }
                                  Severity: Major
                                  Found in public/lib/jquery.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
                                                                tbody[ j ].parentNode.removeChild( tbody[ j ] );
                                                            }
                                    Severity: Major
                                    Found in public/lib/jquery.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
                                                              if ( item ) {
                                                                  found = filter( item, match, i, curLoop );
                                                                  var pass = not ^ !!found;
                                      
                                      
                                      Severity: Major
                                      Found in public/lib/jquery.js - About 45 mins to fix

                                        Function dirNodeCheck has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                                        Severity: Minor
                                        Found in public/lib/jquery.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language