Commons:User scripts/users namespace/reports/User:Magister Mathematicae/vector.js

This is the report page for User:Magister Mathematicae/vector.js. It is bot-maintained. All manual changes might be overwritten.

jshint edit

  1. ISSUE: line 82 character 34: Bad or unnecessary escaping. - Evidence: v = new RegExp('\.' + v + '$', 'i');
  2. ISSUE: line 215 character 28: Use '===' to compare with '0'. - Evidence: if( height == 0 ) height = 20;
  3. ISSUE: line 257 character 24: Use '!==' to compare with ''. - Evidence: if (source != '') {
  4. ISSUE: line 258 character 38: Use '!==' to compare with ''. - Evidence: if (this.attribution != '') this.attribution += " (" + source + ")";
  5. ISSUE: line 287 character 37: The array literal notation [] is preferable. - Evidence: var licenses = new Array();
  6. ISSUE: line 297 character 19: ['link'] is better written in dot notation. - Evidence: cL['link'] = $(this).find('.licensetpl_link').html();
  7. ISSUE: line 298 character 19: ['short'] is better written in dot notation. - Evidence: cL['short'] = $(this).find('.licensetpl_short').html();
  8. ISSUE: line 299 character 19: ['long'] is better written in dot notation. - Evidence: cL['long'] = $(this).find('.licensetpl_long').html();
  9. ISSUE: line 300 character 19: ['attr'] is better written in dot notation. - Evidence: cL['attr'] = $(this).find('.licensetpl_attr').html();
  10. ISSUE: line 301 character 19: ['aut'] is better written in dot notation. - Evidence: cL['aut'] = $(this).find('.licensetpl_aut').html();
  11. ISSUE: line 302 character 19: ['link_req'] is better written in dot notation. - Evidence: cL['link_req'] = $(this).find('.licensetpl_link_req').html();
  12. ISSUE: line 303 character 19: ['attr_req'] is better written in dot notation. - Evidence: cL['attr_req'] = $(this).find('.licensetpl_attr_req').html();
  13. ISSUE: line 305 character 23: ['short'] is better written in dot notation. - Evidence: if (cL['short'] !== null) licenses.push(cL);
  14. ISSUE: line 310 character 26: ['attr_req'] is better written in dot notation. - Evidence: if (v['attr_req'] == "false") StockPhoto.attrRequired = false;
  15. ISSUE: line 311 character 26: ['short'] is better written in dot notation. - Evidence: if (v['short'].indexOf('GFDL') != -1) StockPhoto.gfdl_note = true;
  16. ISSUE: line 312 character 43: ['link'] is better written in dot notation. - Evidence: if (generate_html && v['link']) {
  17. ISSUE: line 313 character 54: ['link'] is better written in dot notation. - Evidence: licenses[k] = '<a href="' + v['link'] + '">' + v['short'] + '</a>';
  18. ISSUE: line 313 character 73: ['short'] is better written in dot notation. - Evidence: licenses[k] = '<a href="' + v['link'] + '">' + v['short'] + '</a>';
  19. ISSUE: line 316 character 44: ['short'] is better written in dot notation. - Evidence: licenses[k] = v['short'] + ' (' + v['link'] + ')';
  20. ISSUE: line 316 character 64: ['link'] is better written in dot notation. - Evidence: licenses[k] = v['short'] + ' (' + v['link'] + ')';
  21. ISSUE: line 318 character 44: ['short'] is better written in dot notation. - Evidence: licenses[k] = v['short'];
  22. ISSUE: line 355 character 51: Missing semicolon. - Evidence: idtext = (id) ? "id='" + id + "'" : ""
  23. ISSUE: line 371 character 39: Bad or unnecessary escaping. - Evidence: var re = new RegExp('\.' + v + '$', 'i');
  24. ISSUE: line 415 character 45: The array literal notation [] is preferable. - Evidence: var dl_links = new Array();
  25. ISSUE: line 416 character 28: 'widths' used out of scope. - Evidence: $.each(widths, function (i, v) {
  26. ISSUE: line 441 character 28: 'widths' used out of scope. - Evidence: $.each(widths, function (i, v) {
  27. ISSUE: line 557 character 6: Missing semicolon. - Evidence: }