Commons:User scripts/reports/MediaWiki:AjaxQuickDelete-dev.js
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]- ISSUE:
line 28 character 25
: Use '===' to compare with 'undefined'. - Evidence:if (jQuery.ui == undefined){
- ISSUE:
line 33 character 95
: Script URL. - Evidence:mw.util.addPortletLink('p-tb', 'javascript:AjaxQuickDelete.nominateForDeletion();', this.i18n.toolboxLinkDelete, 't-ajaxquickdelete', null);
- ISSUE:
line 35 character 91
: Script URL. - Evidence:mw.util.addPortletLink('p-tb', 'javascript:AjaxQuickDelete.discussCategory();', this.i18n.toolboxLinkDiscuss, 't-ajaxquickdiscusscat', null);
- ISSUE:
line 50 character 98
: Script URL. - Evidence:mw.util.addPortletLink('p-cactions', 'javascript:AjaxQuickDelete.moveFile("", "");', this.i18n.dropdownMove, 'ca-quickmove', 'ca-move');
- 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);
- ISSUE:
line 405 character 38
: Use '===' to compare with '0'. - Evidence:if (this.uploadersToNotify == 0) this.nextTask();
- ISSUE:
line 410 character 38
: Use '===' to compare with '0'. - Evidence:if (this.uploadersToNotify == 0) this.nextTask();
- ISSUE:
line 431 character 25
: 'query' is already defined. - Evidence:var query = {
- ISSUE:
line 442 character 26
: 'query' used out of scope. - Evidence:this.doAPICall(query, 'findCreatorCB');
- ISSUE:
line 455 character 58
: ['user'] is better written in dot notation. - Evidence:this.pageCreator = pages[id].revisions[0]['user'];
- ISSUE:
line 457 character 56
: ['timestamp'] is better written in dot notation. - Evidence:this.timestamp = pages[id].revisions[0]['timestamp'];
- ISSUE:
line 530 character 49
: ['from'] is better written in dot notation. - Evidence:delete this.uploaders[redirect['from'].replace(this.userTalkPrefix, '')];
- ISSUE:
line 532 character 43
: ['to'] is better written in dot notation. - Evidence:this.uploaders[ redirect['to'].replace(this.userTalkPrefix, '') ] = true;
- ISSUE:
line 560 character 52
: ['timestamp'] is better written in dot notation. - Evidence:this.timestamp = pages[id].revisions[0]['timestamp'];
- ISSUE:
line 668 character 64
: Use '!==' to compare with 'false'. - Evidence:if (event.keyCode == '13' && v.enterToSubmit != false) submitButton.click();
- ISSUE:
line 686 character 29
: Use '===' to compare with 'true'. - Evidence:this.exactDupes == true;
- ISSUE:
line 686 character 32
: Expected an assignment or function call and instead saw an expression. - Evidence:this.exactDupes == true;
- ISSUE:
line 757 character 43
: Use '!==' to compare with 'null'. - Evidence:while ((m = utf8.exec(str)) != null) {