Commons:User scripts/reports/MediaWiki:Populate-category.js
Jump to navigation
Jump to search
This is the report page for MediaWiki:Populate-category.js. It is bot-maintained. All manual changes might be overwritten.
jshint
[edit]- ISSUE:
line 6 character 23
: Use '===' to compare with 'false'. - Evidence:if(window.pc_autosave == false){}else if(window.pc_autosave){}else{ pc_autosave = true; }
- ISSUE:
line 15 character 18
: Use '===' to compare with 'null'. - Evidence:if (galleryhint==null) return;
- ISSUE:
line 21 character 17
: Use '===' to compare with ''. - Evidence:if(galleryhint==''){
- ISSUE:
line 24 character 12
: 'txt' is already defined. - Evidence:var txt = '{{Populate category|gallery=' + galleryhint + '}}';
- ISSUE:
line 26 character 40
: 'txt' used out of scope. - Evidence:document.editform.wpTextbox1.value = txt + document.editform.wpTextbox1.value;
- ISSUE:
line 27 character 51
: 'txt' used out of scope. - Evidence:document.editform.wpSummary.value = 'Adding ' + txt + ' using [[MediaWiki:Populate-category.js|Populate-category.js]]';
- ISSUE:
line 33 character 58
: Script URL. - Evidence:addLink('p-tb', 'javascript:pc_nomPopulateCategory()', pc_text, 'pop-cat', pc_tooltip);