Commons:User scripts/reports/MediaWiki:Gadget-jquery.jqplot.js

From Wikimedia Commons, the free media repository
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]

  1. ISSUE: line 188 character 9: Expected an identifier and instead saw 'undefined' (a reserved word). - Evidence: var undefined;
  2. ISSUE: line 191 character 50: Use '!==' to compare with 'null'. - Evidence: for ( var i = 0, elem; (elem = $(this)[i]) != null; i++ ) {
  3. ISSUE: line 549 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._elem;
  4. ISSUE: line 550 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._plotWidth;
  5. ISSUE: line 551 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._plotHeight;
  6. ISSUE: line 690 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.numberTicks;
  7. ISSUE: line 693 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.tickInterval;
  8. ISSUE: line 779 character 39: Use '===' to compare with 'null'. - Evidence: if (this.tickOptions.showMark == null) {
  9. ISSUE: line 782 character 39: Use '===' to compare with 'null'. - Evidence: if (this.tickOptions.showMark == null) {
  10. ISSUE: line 785 character 40: Use '===' to compare with 'null'. - Evidence: if (this.tickOptions.showLabel == null) {
  11. ISSUE: line 789 character 24: Use '===' to compare with 'null'. - Evidence: if (this.label == null || this.label == '') {
  12. ISSUE: line 789 character 46: Use '===' to compare with ''. - Evidence: if (this.label == null || this.label == '') {
  13. ISSUE: line 795 character 28: Use '===' to compare with 'false'. - Evidence: if (this.showLabel == false) {
  14. ISSUE: line 801 character 22: Use '===' to compare with '0'. - Evidence: if (this.pad == 0) {
  15. ISSUE: line 804 character 25: Use '===' to compare with '0'. - Evidence: if (this.padMax == 0) {
  16. ISSUE: line 807 character 25: Use '===' to compare with '0'. - Evidence: if (this.padMin == 0) {
  17. ISSUE: line 810 character 25: Use '===' to compare with 'null'. - Evidence: if (this.padMax == null) {
  18. ISSUE: line 813 character 25: Use '===' to compare with 'null'. - Evidence: if (this.padMin == null) {
  19. ISSUE: line 819 character 22: Use '!==' to compare with 'null'. - Evidence: if (this.min != null || this.max != null) {
  20. ISSUE: line 819 character 42: Use '!==' to compare with 'null'. - Evidence: if (this.min != null || this.max != null) {
  21. ISSUE: line 823 character 28: Use '===' to compare with 'null'. - Evidence: if (this.syncTicks == null && this.name.indexOf('y') > -1) {
  22. ISSUE: line 826 character 33: Use '===' to compare with 'null'. - Evidence: else if (this.syncTicks == null){
  23. ISSUE: line 852 character 23: Use '===' to compare with 'null'. - Evidence: if (this._min == null) {
  24. ISSUE: line 890 character 29: Use '!==' to compare with 'null'. - Evidence: if (s._type != null && s._type == 'ohlc') {
  25. ISSUE: line 895 character 32: 'l' is already defined. - Evidence: for (var j=0, l=d.length; j<l; j++) {
  26. ISSUE: line 897 character 38: Use '!==' to compare with 'null'. - Evidence: if ((d[j][0] != null && d[j][0] < db.min) || db.min == null) {
  27. ISSUE: line 897 character 77: Use '===' to compare with 'null'. - Evidence: if ((d[j][0] != null && d[j][0] < db.min) || db.min == null) {
  28. ISSUE: line 900 character 38: Use '!==' to compare with 'null'. - Evidence: if ((d[j][0] != null && d[j][0] > db.max) || db.max == null) {
  29. ISSUE: line 900 character 77: Use '===' to compare with 'null'. - Evidence: if ((d[j][0] != null && d[j][0] > db.max) || db.max == null) {
  30. ISSUE: line 905 character 44: Use '!==' to compare with 'null'. - Evidence: if ((d[j][minyidx] != null && d[j][minyidx] < db.min) || db.min == null) {
  31. ISSUE: line 905 character 89: Use '===' to compare with 'null'. - Evidence: if ((d[j][minyidx] != null && d[j][minyidx] < db.min) || db.min == null) {
  32. ISSUE: line 908 character 44: Use '!==' to compare with 'null'. - Evidence: if ((d[j][maxyidx] != null && d[j][maxyidx] > db.max) || db.max == null) {
  33. ISSUE: line 908 character 89: Use '===' to compare with 'null'. - Evidence: if ((d[j][maxyidx] != null && d[j][maxyidx] > db.max) || db.max == null) {
  34. ISSUE: line 922 character 112: Use '===' to compare with 'false'. - Evidence: else if (doforce && this._options.hasOwnProperty('forceTickAt0') && this._options.forceTickAt0 == false) {
  35. ISSUE: line 928 character 47: Use '!==' to compare with 'null'. - Evidence: if (this._options.pad != null || this._options.padMin != null) {
  36. ISSUE: line 928 character 79: Use '!==' to compare with 'null'. - Evidence: if (this._options.pad != null || this._options.padMin != null) {
  37. ISSUE: line 934 character 47: Use '!==' to compare with 'null'. - Evidence: if (this._options.pad != null || this._options.padMin != null) {
  38. ISSUE: line 934 character 79: Use '!==' to compare with 'null'. - Evidence: if (this._options.pad != null || this._options.padMin != null) {
  39. ISSUE: line 993 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.border;
  40. ISSUE: line 996 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.background;
  41. ISSUE: line 999 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.textColor;
  42. ISSUE: line 1002 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.fontFamily;
  43. ISSUE: line 1005 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.fontSize ;
  44. ISSUE: line 1069 character 45: Use '===' to compare with 'null'. - Evidence: if (this.marginLeft == null) {
  45. ISSUE: line 1076 character 30: Expected a 'break' statement before 'default'. - Evidence: case 'se':
  46. ISSUE: line 1078 character 46: Use '===' to compare with 'null'. - Evidence: if (this.marginRight == null) {
  47. ISSUE: line 1090 character 46: Use '===' to compare with 'null'. - Evidence: if (this.marginRight == null) {
  48. ISSUE: line 1097 character 30: Expected a 'break' statement before 'default'. - Evidence: case 'se':
  49. ISSUE: line 1099 character 45: Use '===' to compare with 'null'. - Evidence: if (this.marginLeft == null) {
  50. ISSUE: line 1115 character 44: Use '===' to compare with 'null'. - Evidence: if (this.marginTop == null) {
  51. ISSUE: line 1122 character 30: Expected a 'break' statement before 'default'. - Evidence: case 'nw':
  52. ISSUE: line 1124 character 47: Use '===' to compare with 'null'. - Evidence: if (this.marginBottom == null) {
  53. ISSUE: line 1136 character 47: Use '===' to compare with 'null'. - Evidence: if (this.marginBottom == null) {
  54. ISSUE: line 1143 character 30: Expected a 'break' statement before 'default'. - Evidence: case 'nw':
  55. ISSUE: line 1145 character 44: Use '===' to compare with 'null'. - Evidence: if (this.marginTop == null) {
  56. ISSUE: line 1199 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.fontFamily;
  57. ISSUE: line 1202 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.fontSize ;
  58. ISSUE: line 1205 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.textAlign;
  59. ISSUE: line 1208 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.textColor;
  60. ISSUE: line 1268 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._xaxis;
  61. ISSUE: line 1272 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._yaxis;
  62. ISSUE: line 1291 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.color;
  63. ISSUE: line 1295 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.negativeColor;
  64. ISSUE: line 1344 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.index;
  65. ISSUE: line 1351 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.fillColor;
  66. ISSUE: line 1355 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.fillAlpha;
  67. ISSUE: line 1424 character 26: Use '===' to compare with 'null'. - Evidence: if (d[i] == null || d[i][0] == null || d[i][1] == null) {
  68. ISSUE: line 1424 character 45: Use '===' to compare with 'null'. - Evidence: if (d[i] == null || d[i][0] == null || d[i][1] == null) {
  69. ISSUE: line 1424 character 64: Use '===' to compare with 'null'. - Evidence: if (d[i] == null || d[i][0] == null || d[i][1] == null) {
  70. ISSUE: line 1458 character 22: 'comp' is already defined. - Evidence: var comp = $.jqplot.getColorComponents(comp);
  71. ISSUE: line 1469 character 37: Use '===' to compare with 'null'. - Evidence: if (this.markerOptions.show == null) {
  72. ISSUE: line 1481 character 29: Use '===' to compare with 'undefined'. - Evidence: var options = (opts == undefined) ? {} : opts;
  73. ISSUE: line 1482 character 22: Use '===' to compare with 'undefined'. - Evidence: sctx = (sctx == undefined) ? this.canvas._ctx : sctx;
  74. ISSUE: line 1523 character 29: Use '===' to compare with 'undefined'. - Evidence: var options = (opts == undefined) ? {} : opts;
  75. ISSUE: line 1524 character 22: Use '===' to compare with 'undefined'. - Evidence: sctx = (sctx == undefined) ? this.shadowCanvas._ctx : sctx;
  76. ISSUE: line 1677 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._left;
  77. ISSUE: line 1678 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._top;
  78. ISSUE: line 1679 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._right;
  79. ISSUE: line 1680 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._bottom;
  80. ISSUE: line 1681 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._width;
  81. ISSUE: line 1682 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._height;
  82. ISSUE: line 1716 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this._ctx;
  83. ISSUE: line 1725 character 18: Use '!==' to compare with 'undefined'. - Evidence: if (clss != undefined) {
  84. ISSUE: line 1733 character 28: Use '!==' to compare with 'null'. - Evidence: if (plotDimensions != null) {
  85. ISSUE: line 1800 character 19: 'i' is already defined. - Evidence: for (var i=0, l=this.hooks.length; i<l; i++) {
  86. ISSUE: line 1862 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.dataRenderer;
  87. ISSUE: line 1866 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.dataRendererOptions;
  88. ISSUE: line 1912 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.fontFamily;
  89. ISSUE: line 1915 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.fontSize;
  90. ISSUE: line 1981 character 14: Expected an assignment or function call and instead saw an expression. - Evidence: this.textColor;
  91. ISSUE: line 2051 character 23: 'i' is already defined. - Evidence: for (var i=0; i<this.preInitHooks.hooks.length; i++) {
  92. ISSUE: line 2094 character 32: 'h' used out of scope. - Evidence: this._height = h = this.target.height();
  93. ISSUE: line 2111 character 31: 'w' used out of scope. - Evidence: this._width = w = this.target.width();
  94. ISSUE: line 2114 character 23: 'i' is already defined. - Evidence: for (var i=0, l=_axisNames.length; i<l; i++) {
  95. 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) {
  96. 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) {
  97. 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) {
  98. 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) {
  99. 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) {
  100. ISSUE: line 2143 character 47: Use '===' to compare with 'false'. - Evidence: if (this.noDataIndicator.show == false) {
  101. ISSUE: line 2201 character 23: 'i' is already defined. - Evidence: for (var i=0; i<this.series.length; i++) {
  102. ISSUE: line 2210 character 27: 'j' is already defined. - Evidence: for (var j=0; j<this.preSeriesInitHooks.hooks.length; j++) {
  103. ISSUE: line 2216 character 27: 'j' is already defined. - Evidence: for (var j=0; j<$.jqplot.postSeriesInitHooks.length; j++) {
  104. ISSUE: line 2219 character 27: 'j' is already defined. - Evidence: for (var j=0; j<this.postSeriesInitHooks.hooks.length; j++) {
  105. ISSUE: line 2228 character 23: 'i' is already defined. - Evidence: for (var i=0, l=_axisNames.length; i<l; i++) {
  106. ISSUE: line 2228 character 28: 'l' is already defined. - Evidence: for (var i=0, l=_axisNames.length; i<l; i++) {
  107. ISSUE: line 2233 character 49: Use '===' to compare with 'null'. - Evidence: if (this.axes[name].borderColor == null) {
  108. ISSUE: line 2251 character 23: 'i' is already defined. - Evidence: for (var i=0; i<$.jqplot.postInitHooks.length; i++) {
  109. ISSUE: line 2255 character 23: 'i' is already defined. - Evidence: for (var i=0; i<this.postInitHooks.hooks.length; i++) {
  110. ISSUE: line 2295 character 31: Use '===' to compare with 'null'. - Evidence: var tdata = (data == null) ? this.data : data;
  111. ISSUE: line 2301 character 23: 'i' is already defined. - Evidence: for (var i=0; i<this.preInitHooks.hooks.length; i++) {
  112. ISSUE: line 2325 character 23: 'i' is already defined. - Evidence: for (var i=0, l=_axisNames.length; i<l; i++) {
  113. ISSUE: line 2331 character 28: 'j' is already defined. - Evidence: for (var j = 0, tlen = t.length; j < tlen; j++) {
  114. ISSUE: line 2390 character 23: 'i' is already defined. - Evidence: for (var i=0, l=this.series.length; i<l; i++) {
  115. ISSUE: line 2390 character 28: 'l' is already defined. - Evidence: for (var i=0, l=this.series.length; i<l; i++) {
  116. ISSUE: line 2396 character 27: 'j' is already defined. - Evidence: for (var j=0; j<$.jqplot.preSeriesInitHooks.length; j++) {
  117. ISSUE: line 2399 character 27: 'j' is already defined. - Evidence: for (var j=0; j<this.preSeriesInitHooks.hooks.length; j++) {
  118. ISSUE: line 2405 character 27: 'j' is already defined. - Evidence: for (var j=0; j<$.jqplot.postSeriesInitHooks.length; j++) {
  119. ISSUE: line 2408 character 27: 'j' is already defined. - Evidence: for (var j=0; j<this.postSeriesInitHooks.hooks.length; j++) {
  120. ISSUE: line 2415 character 23: 'i' is already defined. - Evidence: for (var i=0, l=_axisNames.length; i<l; i++) {
  121. ISSUE: line 2415 character 28: 'l' is already defined. - Evidence: for (var i=0, l=_axisNames.length; i<l; i++) {
  122. ISSUE: line 2421 character 38: Use '===' to compare with 'null'. - Evidence: if (axis.borderColor == null) {
  123. ISSUE: line 2439 character 23: 'i' is already defined. - Evidence: for (var i=0, l=$.jqplot.postInitHooks.length; i<l; i++) {
  124. ISSUE: line 2439 character 28: 'l' is already defined. - Evidence: for (var i=0, l=$.jqplot.postInitHooks.length; i<l; i++) {
  125. ISSUE: line 2443 character 23: 'i' is already defined. - Evidence: for (var i=0, l=this.postInitHooks.hooks.length; i<l; i++) {
  126. ISSUE: line 2443 character 28: 'l' is already defined. - Evidence: for (var i=0, l=this.postInitHooks.hooks.length; i<l; i++) {
  127. ISSUE: line 2514 character 28: 'i' is already defined. - Evidence: for (var i = 0; i < t.length; i++) {
  128. ISSUE: line 2559 character 73: Don't make functions within a loop. - Evidence: d.sort(function(a,b) { return a[1] - b[1]; });
  129. ISSUE: line 2563 character 36: 'j' is already defined. - Evidence: for (var j = 0; j < d.length; j++) {
  130. ISSUE: line 2570 character 73: Don't make functions within a loop. - Evidence: d.sort(function(a,b) { return a[0] - b[0]; });
  131. ISSUE: line 2606 character 34: Use '===' to compare with 'null'. - Evidence: if (temp == null) {
  132. ISSUE: line 2645 character 22: 'i' used out of scope. - Evidence: for (i=series.data.length-1; i>-1; i--) {
  133. ISSUE: line 2645 character 46: 'i' used out of scope. - Evidence: for (i=series.data.length-1; i>-1; i--) {
  134. ISSUE: line 2645 character 52: 'i' used out of scope. - Evidence: for (i=series.data.length-1; i>-1; i--) {
  135. ISSUE: line 2646 character 49: 'i' used out of scope. - Evidence: series._sumy += series.data[i][1];
  136. ISSUE: line 2647 character 49: 'i' used out of scope. - Evidence: series._sumx += series.data[i][0];
  137. ISSUE: line 2676 character 42: Use '!==' to compare with 'null'. - Evidence: tempx = (dval[0] != null) ? dval[0] : 0;
  138. ISSUE: line 2677 character 42: Use '!==' to compare with 'null'. - Evidence: tempy = (dval[1] != null) ? dval[1] : 0;
  139. ISSUE: line 2699 character 27: 'i' is already defined. - Evidence: for (var i=0; i<series.data.length; i++) {
  140. ISSUE: line 2714 character 18: 'i' used out of scope. - Evidence: for (i=series.data.length-1; i>-1; i--) {
  141. ISSUE: line 2714 character 42: 'i' used out of scope. - Evidence: for (i=series.data.length-1; i>-1; i--) {
  142. ISSUE: line 2714 character 48: 'i' used out of scope. - Evidence: for (i=series.data.length-1; i>-1; i--) {
  143. ISSUE: line 2715 character 45: 'i' used out of scope. - Evidence: series._sumy += series.data[i][1];
  144. ISSUE: line 2716 character 45: 'i' used out of scope. - Evidence: series._sumx += series.data[i][0];
  145. ISSUE: line 2740 character 23: 'i' is already defined. - Evidence: for (var i=0; i<$.jqplot.preParseOptionsHooks.length; i++) {
  146. ISSUE: line 2753 character 27: 'i' is already defined. - Evidence: for (var i=0, l=temp.length; i<l; i++) {
  147. ISSUE: line 2755 character 49: Use '!==' to compare with 'null'. - Evidence: if (opts.fillBetween[tempi] != null) {
  148. ISSUE: line 2770 character 74: Use '!==' to compare with 'null'. - Evidence: this.defaultAxisStart = (options && options.defaultAxisStart != null) ? options.defaultAxisStart : this.defaultAxisStart;
  149. ISSUE: line 2777 character 44: Use '!==' to compare with 'null'. - Evidence: this.sortData = (opts.sortData != null) ? opts.sortData : this.sortData;
  150. ISSUE: line 2778 character 23: 'i' is already defined. - Evidence: for (var i=0; i<12; i++) {
  151. ISSUE: line 2778 character 23: Too many errors. (24% scanned). - Evidence: undefined