Commons:User scripts/reports/MediaWiki:Populate-category.js

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

  1. 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; }
  2. ISSUE: line 15 character 18: Use '===' to compare with 'null'. - Evidence: if (galleryhint==null) return;
  3. ISSUE: line 21 character 17: Use '===' to compare with ''. - Evidence: if(galleryhint==''){
  4. ISSUE: line 24 character 12: 'txt' is already defined. - Evidence: var txt = '{{Populate category|gallery=' + galleryhint + '}}';
  5. ISSUE: line 26 character 40: 'txt' used out of scope. - Evidence: document.editform.wpTextbox1.value = txt + document.editform.wpTextbox1.value;
  6. 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]]';
  7. ISSUE: line 33 character 58: Script URL. - Evidence: addLink('p-tb', 'javascript:pc_nomPopulateCategory()', pc_text, 'pop-cat', pc_tooltip);