Commons:User scripts/reports/MediaWiki:Gadget-jquery.jqplot.js
Jump to navigation
Jump to search
This is the report page for MediaWiki:Gadget-jquery.jqplot.js. It is bot-maintained. All manual changes might be overwritten.
jshint
[edit]- ISSUE:
line 188 character 9
: Expected an identifier and instead saw 'undefined' (a reserved word). - Evidence:var undefined;
- ISSUE:
line 191 character 50
: Use '!==' to compare with 'null'. - Evidence:for ( var i = 0, elem; (elem = $(this)[i]) != null; i++ ) {
- ISSUE:
line 549 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._elem;
- ISSUE:
line 550 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._plotWidth;
- ISSUE:
line 551 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._plotHeight;
- ISSUE:
line 690 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.numberTicks;
- ISSUE:
line 693 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.tickInterval;
- ISSUE:
line 779 character 39
: Use '===' to compare with 'null'. - Evidence:if (this.tickOptions.showMark == null) {
- ISSUE:
line 782 character 39
: Use '===' to compare with 'null'. - Evidence:if (this.tickOptions.showMark == null) {
- ISSUE:
line 785 character 40
: Use '===' to compare with 'null'. - Evidence:if (this.tickOptions.showLabel == null) {
- ISSUE:
line 789 character 24
: Use '===' to compare with 'null'. - Evidence:if (this.label == null || this.label == '') {
- ISSUE:
line 789 character 46
: Use '===' to compare with ''. - Evidence:if (this.label == null || this.label == '') {
- ISSUE:
line 795 character 28
: Use '===' to compare with 'false'. - Evidence:if (this.showLabel == false) {
- ISSUE:
line 801 character 22
: Use '===' to compare with '0'. - Evidence:if (this.pad == 0) {
- ISSUE:
line 804 character 25
: Use '===' to compare with '0'. - Evidence:if (this.padMax == 0) {
- ISSUE:
line 807 character 25
: Use '===' to compare with '0'. - Evidence:if (this.padMin == 0) {
- ISSUE:
line 810 character 25
: Use '===' to compare with 'null'. - Evidence:if (this.padMax == null) {
- ISSUE:
line 813 character 25
: Use '===' to compare with 'null'. - Evidence:if (this.padMin == null) {
- ISSUE:
line 819 character 22
: Use '!==' to compare with 'null'. - Evidence:if (this.min != null || this.max != null) {
- ISSUE:
line 819 character 42
: Use '!==' to compare with 'null'. - Evidence:if (this.min != null || this.max != null) {
- ISSUE:
line 823 character 28
: Use '===' to compare with 'null'. - Evidence:if (this.syncTicks == null && this.name.indexOf('y') > -1) {
- ISSUE:
line 826 character 33
: Use '===' to compare with 'null'. - Evidence:else if (this.syncTicks == null){
- ISSUE:
line 852 character 23
: Use '===' to compare with 'null'. - Evidence:if (this._min == null) {
- ISSUE:
line 890 character 29
: Use '!==' to compare with 'null'. - Evidence:if (s._type != null && s._type == 'ohlc') {
- ISSUE:
line 895 character 32
: 'l' is already defined. - Evidence:for (var j=0, l=d.length; j<l; j++) {
- ISSUE:
line 897 character 38
: Use '!==' to compare with 'null'. - Evidence:if ((d[j][0] != null && d[j][0] < db.min) || db.min == null) {
- ISSUE:
line 897 character 77
: Use '===' to compare with 'null'. - Evidence:if ((d[j][0] != null && d[j][0] < db.min) || db.min == null) {
- ISSUE:
line 900 character 38
: Use '!==' to compare with 'null'. - Evidence:if ((d[j][0] != null && d[j][0] > db.max) || db.max == null) {
- ISSUE:
line 900 character 77
: Use '===' to compare with 'null'. - Evidence:if ((d[j][0] != null && d[j][0] > db.max) || db.max == null) {
- ISSUE:
line 905 character 44
: Use '!==' to compare with 'null'. - Evidence:if ((d[j][minyidx] != null && d[j][minyidx] < db.min) || db.min == null) {
- ISSUE:
line 905 character 89
: Use '===' to compare with 'null'. - Evidence:if ((d[j][minyidx] != null && d[j][minyidx] < db.min) || db.min == null) {
- ISSUE:
line 908 character 44
: Use '!==' to compare with 'null'. - Evidence:if ((d[j][maxyidx] != null && d[j][maxyidx] > db.max) || db.max == null) {
- ISSUE:
line 908 character 89
: Use '===' to compare with 'null'. - Evidence:if ((d[j][maxyidx] != null && d[j][maxyidx] > db.max) || db.max == null) {
- ISSUE:
line 922 character 112
: Use '===' to compare with 'false'. - Evidence:else if (doforce && this._options.hasOwnProperty('forceTickAt0') && this._options.forceTickAt0 == false) {
- ISSUE:
line 928 character 47
: Use '!==' to compare with 'null'. - Evidence:if (this._options.pad != null || this._options.padMin != null) {
- ISSUE:
line 928 character 79
: Use '!==' to compare with 'null'. - Evidence:if (this._options.pad != null || this._options.padMin != null) {
- ISSUE:
line 934 character 47
: Use '!==' to compare with 'null'. - Evidence:if (this._options.pad != null || this._options.padMin != null) {
- ISSUE:
line 934 character 79
: Use '!==' to compare with 'null'. - Evidence:if (this._options.pad != null || this._options.padMin != null) {
- ISSUE:
line 993 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.border;
- ISSUE:
line 996 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.background;
- ISSUE:
line 999 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.textColor;
- ISSUE:
line 1002 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.fontFamily;
- ISSUE:
line 1005 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.fontSize ;
- ISSUE:
line 1069 character 45
: Use '===' to compare with 'null'. - Evidence:if (this.marginLeft == null) {
- ISSUE:
line 1076 character 30
: Expected a 'break' statement before 'default'. - Evidence:case 'se':
- ISSUE:
line 1078 character 46
: Use '===' to compare with 'null'. - Evidence:if (this.marginRight == null) {
- ISSUE:
line 1090 character 46
: Use '===' to compare with 'null'. - Evidence:if (this.marginRight == null) {
- ISSUE:
line 1097 character 30
: Expected a 'break' statement before 'default'. - Evidence:case 'se':
- ISSUE:
line 1099 character 45
: Use '===' to compare with 'null'. - Evidence:if (this.marginLeft == null) {
- ISSUE:
line 1115 character 44
: Use '===' to compare with 'null'. - Evidence:if (this.marginTop == null) {
- ISSUE:
line 1122 character 30
: Expected a 'break' statement before 'default'. - Evidence:case 'nw':
- ISSUE:
line 1124 character 47
: Use '===' to compare with 'null'. - Evidence:if (this.marginBottom == null) {
- ISSUE:
line 1136 character 47
: Use '===' to compare with 'null'. - Evidence:if (this.marginBottom == null) {
- ISSUE:
line 1143 character 30
: Expected a 'break' statement before 'default'. - Evidence:case 'nw':
- ISSUE:
line 1145 character 44
: Use '===' to compare with 'null'. - Evidence:if (this.marginTop == null) {
- ISSUE:
line 1199 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.fontFamily;
- ISSUE:
line 1202 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.fontSize ;
- ISSUE:
line 1205 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.textAlign;
- ISSUE:
line 1208 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.textColor;
- ISSUE:
line 1268 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._xaxis;
- ISSUE:
line 1272 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._yaxis;
- ISSUE:
line 1291 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.color;
- ISSUE:
line 1295 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.negativeColor;
- ISSUE:
line 1344 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.index;
- ISSUE:
line 1351 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.fillColor;
- ISSUE:
line 1355 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.fillAlpha;
- ISSUE:
line 1424 character 26
: Use '===' to compare with 'null'. - Evidence:if (d[i] == null || d[i][0] == null || d[i][1] == null) {
- ISSUE:
line 1424 character 45
: Use '===' to compare with 'null'. - Evidence:if (d[i] == null || d[i][0] == null || d[i][1] == null) {
- ISSUE:
line 1424 character 64
: Use '===' to compare with 'null'. - Evidence:if (d[i] == null || d[i][0] == null || d[i][1] == null) {
- ISSUE:
line 1458 character 22
: 'comp' is already defined. - Evidence:var comp = $.jqplot.getColorComponents(comp);
- ISSUE:
line 1469 character 37
: Use '===' to compare with 'null'. - Evidence:if (this.markerOptions.show == null) {
- ISSUE:
line 1481 character 29
: Use '===' to compare with 'undefined'. - Evidence:var options = (opts == undefined) ? {} : opts;
- ISSUE:
line 1482 character 22
: Use '===' to compare with 'undefined'. - Evidence:sctx = (sctx == undefined) ? this.canvas._ctx : sctx;
- ISSUE:
line 1523 character 29
: Use '===' to compare with 'undefined'. - Evidence:var options = (opts == undefined) ? {} : opts;
- ISSUE:
line 1524 character 22
: Use '===' to compare with 'undefined'. - Evidence:sctx = (sctx == undefined) ? this.shadowCanvas._ctx : sctx;
- ISSUE:
line 1677 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._left;
- ISSUE:
line 1678 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._top;
- ISSUE:
line 1679 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._right;
- ISSUE:
line 1680 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._bottom;
- ISSUE:
line 1681 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._width;
- ISSUE:
line 1682 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._height;
- ISSUE:
line 1716 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this._ctx;
- ISSUE:
line 1725 character 18
: Use '!==' to compare with 'undefined'. - Evidence:if (clss != undefined) {
- ISSUE:
line 1733 character 28
: Use '!==' to compare with 'null'. - Evidence:if (plotDimensions != null) {
- ISSUE:
line 1800 character 19
: 'i' is already defined. - Evidence:for (var i=0, l=this.hooks.length; i<l; i++) {
- ISSUE:
line 1862 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.dataRenderer;
- ISSUE:
line 1866 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.dataRendererOptions;
- ISSUE:
line 1912 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.fontFamily;
- ISSUE:
line 1915 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.fontSize;
- ISSUE:
line 1981 character 14
: Expected an assignment or function call and instead saw an expression. - Evidence:this.textColor;
- ISSUE:
line 2051 character 23
: 'i' is already defined. - Evidence:for (var i=0; i<this.preInitHooks.hooks.length; i++) {
- ISSUE:
line 2094 character 32
: 'h' used out of scope. - Evidence:this._height = h = this.target.height();
- ISSUE:
line 2111 character 31
: 'w' used out of scope. - Evidence:this._width = w = this.target.width();
- ISSUE:
line 2114 character 23
: 'i' is already defined. - Evidence:for (var i=0, l=_axisNames.length; i<l; i++) {
- ISSUE:
line 2141 character 22
: Use '===' to compare with 'null'. - Evidence:if (data == null || $.isArray(data) == false || data.length == 0 || $.isArray(data[0]) == false || data[0].length == 0) {
- ISSUE:
line 2141 character 49
: Use '===' to compare with 'false'. - Evidence:if (data == null || $.isArray(data) == false || data.length == 0 || $.isArray(data[0]) == false || data[0].length == 0) {
- ISSUE:
line 2141 character 73
: Use '===' to compare with '0'. - Evidence:if (data == null || $.isArray(data) == false || data.length == 0 || $.isArray(data[0]) == false || data[0].length == 0) {
- ISSUE:
line 2141 character 100
: Use '===' to compare with 'false'. - Evidence:if (data == null || $.isArray(data) == false || data.length == 0 || $.isArray(data[0]) == false || data[0].length == 0) {
- ISSUE:
line 2141 character 127
: Use '===' to compare with '0'. - Evidence:if (data == null || $.isArray(data) == false || data.length == 0 || $.isArray(data[0]) == false || data[0].length == 0) {
- ISSUE:
line 2143 character 47
: Use '===' to compare with 'false'. - Evidence:if (this.noDataIndicator.show == false) {
- ISSUE:
line 2201 character 23
: 'i' is already defined. - Evidence:for (var i=0; i<this.series.length; i++) {
- ISSUE:
line 2210 character 27
: 'j' is already defined. - Evidence:for (var j=0; j<this.preSeriesInitHooks.hooks.length; j++) {
- ISSUE:
line 2216 character 27
: 'j' is already defined. - Evidence:for (var j=0; j<$.jqplot.postSeriesInitHooks.length; j++) {
- ISSUE:
line 2219 character 27
: 'j' is already defined. - Evidence:for (var j=0; j<this.postSeriesInitHooks.hooks.length; j++) {
- ISSUE:
line 2228 character 23
: 'i' is already defined. - Evidence:for (var i=0, l=_axisNames.length; i<l; i++) {
- ISSUE:
line 2228 character 28
: 'l' is already defined. - Evidence:for (var i=0, l=_axisNames.length; i<l; i++) {
- ISSUE:
line 2233 character 49
: Use '===' to compare with 'null'. - Evidence:if (this.axes[name].borderColor == null) {
- ISSUE:
line 2251 character 23
: 'i' is already defined. - Evidence:for (var i=0; i<$.jqplot.postInitHooks.length; i++) {
- ISSUE:
line 2255 character 23
: 'i' is already defined. - Evidence:for (var i=0; i<this.postInitHooks.hooks.length; i++) {
- ISSUE:
line 2295 character 31
: Use '===' to compare with 'null'. - Evidence:var tdata = (data == null) ? this.data : data;
- ISSUE:
line 2301 character 23
: 'i' is already defined. - Evidence:for (var i=0; i<this.preInitHooks.hooks.length; i++) {
- ISSUE:
line 2325 character 23
: 'i' is already defined. - Evidence:for (var i=0, l=_axisNames.length; i<l; i++) {
- ISSUE:
line 2331 character 28
: 'j' is already defined. - Evidence:for (var j = 0, tlen = t.length; j < tlen; j++) {
- ISSUE:
line 2390 character 23
: 'i' is already defined. - Evidence:for (var i=0, l=this.series.length; i<l; i++) {
- ISSUE:
line 2390 character 28
: 'l' is already defined. - Evidence:for (var i=0, l=this.series.length; i<l; i++) {
- ISSUE:
line 2396 character 27
: 'j' is already defined. - Evidence:for (var j=0; j<$.jqplot.preSeriesInitHooks.length; j++) {
- ISSUE:
line 2399 character 27
: 'j' is already defined. - Evidence:for (var j=0; j<this.preSeriesInitHooks.hooks.length; j++) {
- ISSUE:
line 2405 character 27
: 'j' is already defined. - Evidence:for (var j=0; j<$.jqplot.postSeriesInitHooks.length; j++) {
- ISSUE:
line 2408 character 27
: 'j' is already defined. - Evidence:for (var j=0; j<this.postSeriesInitHooks.hooks.length; j++) {
- ISSUE:
line 2415 character 23
: 'i' is already defined. - Evidence:for (var i=0, l=_axisNames.length; i<l; i++) {
- ISSUE:
line 2415 character 28
: 'l' is already defined. - Evidence:for (var i=0, l=_axisNames.length; i<l; i++) {
- ISSUE:
line 2421 character 38
: Use '===' to compare with 'null'. - Evidence:if (axis.borderColor == null) {
- ISSUE:
line 2439 character 23
: 'i' is already defined. - Evidence:for (var i=0, l=$.jqplot.postInitHooks.length; i<l; i++) {
- ISSUE:
line 2439 character 28
: 'l' is already defined. - Evidence:for (var i=0, l=$.jqplot.postInitHooks.length; i<l; i++) {
- ISSUE:
line 2443 character 23
: 'i' is already defined. - Evidence:for (var i=0, l=this.postInitHooks.hooks.length; i<l; i++) {
- ISSUE:
line 2443 character 28
: 'l' is already defined. - Evidence:for (var i=0, l=this.postInitHooks.hooks.length; i<l; i++) {
- ISSUE:
line 2514 character 28
: 'i' is already defined. - Evidence:for (var i = 0; i < t.length; i++) {
- ISSUE:
line 2559 character 73
: Don't make functions within a loop. - Evidence:d.sort(function(a,b) { return a[1] - b[1]; });
- ISSUE:
line 2563 character 36
: 'j' is already defined. - Evidence:for (var j = 0; j < d.length; j++) {
- ISSUE:
line 2570 character 73
: Don't make functions within a loop. - Evidence:d.sort(function(a,b) { return a[0] - b[0]; });
- ISSUE:
line 2606 character 34
: Use '===' to compare with 'null'. - Evidence:if (temp == null) {
- ISSUE:
line 2645 character 22
: 'i' used out of scope. - Evidence:for (i=series.data.length-1; i>-1; i--) {
- ISSUE:
line 2645 character 46
: 'i' used out of scope. - Evidence:for (i=series.data.length-1; i>-1; i--) {
- ISSUE:
line 2645 character 52
: 'i' used out of scope. - Evidence:for (i=series.data.length-1; i>-1; i--) {
- ISSUE:
line 2646 character 49
: 'i' used out of scope. - Evidence:series._sumy += series.data[i][1];
- ISSUE:
line 2647 character 49
: 'i' used out of scope. - Evidence:series._sumx += series.data[i][0];
- ISSUE:
line 2676 character 42
: Use '!==' to compare with 'null'. - Evidence:tempx = (dval[0] != null) ? dval[0] : 0;
- ISSUE:
line 2677 character 42
: Use '!==' to compare with 'null'. - Evidence:tempy = (dval[1] != null) ? dval[1] : 0;
- ISSUE:
line 2699 character 27
: 'i' is already defined. - Evidence:for (var i=0; i<series.data.length; i++) {
- ISSUE:
line 2714 character 18
: 'i' used out of scope. - Evidence:for (i=series.data.length-1; i>-1; i--) {
- ISSUE:
line 2714 character 42
: 'i' used out of scope. - Evidence:for (i=series.data.length-1; i>-1; i--) {
- ISSUE:
line 2714 character 48
: 'i' used out of scope. - Evidence:for (i=series.data.length-1; i>-1; i--) {
- ISSUE:
line 2715 character 45
: 'i' used out of scope. - Evidence:series._sumy += series.data[i][1];
- ISSUE:
line 2716 character 45
: 'i' used out of scope. - Evidence:series._sumx += series.data[i][0];
- ISSUE:
line 2740 character 23
: 'i' is already defined. - Evidence:for (var i=0; i<$.jqplot.preParseOptionsHooks.length; i++) {
- ISSUE:
line 2753 character 27
: 'i' is already defined. - Evidence:for (var i=0, l=temp.length; i<l; i++) {
- ISSUE:
line 2755 character 49
: Use '!==' to compare with 'null'. - Evidence:if (opts.fillBetween[tempi] != null) {
- ISSUE:
line 2770 character 74
: Use '!==' to compare with 'null'. - Evidence:this.defaultAxisStart = (options && options.defaultAxisStart != null) ? options.defaultAxisStart : this.defaultAxisStart;
- ISSUE:
line 2777 character 44
: Use '!==' to compare with 'null'. - Evidence:this.sortData = (opts.sortData != null) ? opts.sortData : this.sortData;
- ISSUE:
line 2778 character 23
: 'i' is already defined. - Evidence:for (var i=0; i<12; i++) {
- ISSUE:
line 2778 character 23
: Too many errors. (24% scanned). - Evidence:undefined