Commons:User scripts/reports/MediaWiki:AjaxQuickDelete-dev.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

This is the report page for MediaWiki:AjaxQuickDelete-dev.js. It is bot-maintained. All manual changes might be overwritten.

jshint

[edit]
  1. ISSUE: line 28 character 25: Use '===' to compare with 'undefined'. - Evidence: if (jQuery.ui == undefined){
  2. ISSUE: line 33 character 95: Script URL. - Evidence: mw.util.addPortletLink('p-tb', 'javascript:AjaxQuickDelete.nominateForDeletion();', this.i18n.toolboxLinkDelete, 't-ajaxquickdelete', null);
  3. ISSUE: line 35 character 91: Script URL. - Evidence: mw.util.addPortletLink('p-tb', 'javascript:AjaxQuickDelete.discussCategory();', this.i18n.toolboxLinkDiscuss, 't-ajaxquickdiscusscat', null);
  4. ISSUE: line 50 character 98: Script URL. - Evidence: mw.util.addPortletLink('p-cactions', 'javascript:AjaxQuickDelete.moveFile("", "");', this.i18n.dropdownMove, 'ca-quickmove', 'ca-move');
  5. ISSUE: line 102 character 96: Script URL. - Evidence: mw.util.addPortletLink('p-tb', 'javascript:AjaxQuickDelete.insertTagOnPage("' + v.tag + '","' + v.img_summary + '","' + v.talk_tag + '","' + v.talk_summary + '","' + v.prompt_text + '");', v.label);
  6. ISSUE: line 405 character 38: Use '===' to compare with '0'. - Evidence: if (this.uploadersToNotify == 0) this.nextTask();
  7. ISSUE: line 410 character 38: Use '===' to compare with '0'. - Evidence: if (this.uploadersToNotify == 0) this.nextTask();
  8. ISSUE: line 431 character 25: 'query' is already defined. - Evidence: var query = {
  9. ISSUE: line 442 character 26: 'query' used out of scope. - Evidence: this.doAPICall(query, 'findCreatorCB');
  10. ISSUE: line 455 character 58: ['user'] is better written in dot notation. - Evidence: this.pageCreator = pages[id].revisions[0]['user'];
  11. ISSUE: line 457 character 56: ['timestamp'] is better written in dot notation. - Evidence: this.timestamp = pages[id].revisions[0]['timestamp'];
  12. ISSUE: line 530 character 49: ['from'] is better written in dot notation. - Evidence: delete this.uploaders[redirect['from'].replace(this.userTalkPrefix, '')];
  13. ISSUE: line 532 character 43: ['to'] is better written in dot notation. - Evidence: this.uploaders[ redirect['to'].replace(this.userTalkPrefix, '') ] = true;
  14. ISSUE: line 560 character 52: ['timestamp'] is better written in dot notation. - Evidence: this.timestamp = pages[id].revisions[0]['timestamp'];
  15. ISSUE: line 668 character 64: Use '!==' to compare with 'false'. - Evidence: if (event.keyCode == '13' && v.enterToSubmit != false) submitButton.click();
  16. ISSUE: line 686 character 29: Use '===' to compare with 'true'. - Evidence: this.exactDupes == true;
  17. ISSUE: line 686 character 32: Expected an assignment or function call and instead saw an expression. - Evidence: this.exactDupes == true;
  18. ISSUE: line 757 character 43: Use '!==' to compare with 'null'. - Evidence: while ((m = utf8.exec(str)) != null) {