Commons:User scripts/users namespace/reports/User:ProméthéeBot/Gadget-RenommageCategorie.js

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

This is the report page for User:ProméthéeBot/Gadget-RenommageCategorie.js. It is bot-maintained. All manual changes might be overwritten.

jshint[edit]

  1. ISSUE: line 113 character 147: Value of 'e' may be overwritten in IE 8 and earlier. - Evidence: http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
  2. ISSUE: line 113 character 213: Value of 'e' may be overwritten in IE 8 and earlier. - Evidence: http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
  3. ISSUE: line 113 character 236: Unnecessary semicolon. - Evidence: http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
  4. ISSUE: line 113 character 454: Use '===' to compare with 'false'. - Evidence: http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
  5. ISSUE: line 113 character 612: Unnecessary semicolon. - Evidence: http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
  6. ISSUE: line 113 character 663: Unnecessary semicolon. - Evidence: http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
  7. ISSUE: line 128 character 75: Script URL. - Evidence: movelink.href = "javascript:RenommageCategorie_OpenMenu();";
  8. ISSUE: line 131 character 2: Missing semicolon. - Evidence: }
  9. ISSUE: line 145 character 26: 'LargeurEcran' is already defined. - Evidence: var LargeurEcran = parseInt(window.innerWidth);
  10. ISSUE: line 146 character 26: 'HauteurEcran' is already defined. - Evidence: var HauteurEcran = parseInt(window.innerHeight);
  11. ISSUE: line 159 character 32: 'LargeurEcran' used out of scope. - Evidence: PositionGauche = parseInt((LargeurEcran-Menu.clientWidth)/2) ;
  12. ISSUE: line 160 character 30: 'HauteurEcran' used out of scope. - Evidence: PositionHaut = parseInt((HauteurEcran-Menu.clientHeight)/3) ;
  13. ISSUE: line 188 character 2: Missing semicolon. - Evidence: }
  14. ISSUE: line 196 character 2: Missing semicolon. - Evidence: }
  15. ISSUE: line 215 character 2: Missing semicolon. - Evidence: }
  16. ISSUE: line 221 character 40: The array literal notation [] is preferable. - Evidence: if(!CatArray) CatArray = new Array();
  17. ISSUE: line 235 character 2: Missing semicolon. - Evidence: }
  18. ISSUE: line 253 character 2: Missing semicolon. - Evidence: }
  19. ISSUE: line 258 character 46: The array literal notation [] is preferable. - Evidence: window.RenommageCategorie_CatList = new Array();
  20. ISSUE: line 275 character 104: Missing semicolon. - Evidence: + RenommageCategorie_Text_Delay.split('$1').join(RenommageCategorie_TimeOut)
  21. ISSUE: line 279 character 28: 'Text' is already defined. - Evidence: var Text = ''
  22. ISSUE: line 281 character 104: Missing semicolon. - Evidence: + RenommageCategorie_Text_Delay.split('$1').join(RenommageCategorie_TimeOut)
  23. ISSUE: line 287 character 2: Missing semicolon. - Evidence: }
  24. ISSUE: line 295 character 2: Missing semicolon. - Evidence: }
  25. ISSUE: line 304 character 39: Use '!==' to compare with ''. - Evidence: if(RenommageCategorie_AddCat!='') CreateNewCat_SurEtCertain = confirm(RenommageCategorie_Text_ConfirmMoveS.split('$1').join(RenommageCategorie_RemoveCat).split('$2').join(RenommageCategorie_AddCat));
  26. ISSUE: line 344 character 2: Missing semicolon. - Evidence: }
  27. ISSUE: line 363 character 40: Use '!==' to compare with ''. - Evidence: if ( RenommageCategorie_RemoveCat != "" ) {
  28. ISSUE: line 369 character 29: Use '===' to compare with 'null'. - Evidence: if (NewCatmatches == null && OldCatmatches != null && OldCatmatches.length == 1) { // Found one occurrence of the category - good!
  29. ISSUE: line 369 character 54: Use '!==' to compare with 'null'. - Evidence: if (NewCatmatches == null && OldCatmatches != null && OldCatmatches.length == 1) { // Found one occurrence of the category - good!
  30. ISSUE: line 370 character 45: Use '!==' to compare with ''. - Evidence: if(RenommageCategorie_AddCat != ""){
  31. ISSUE: line 379 character 32: Use '!==' to compare with 'null'. - Evidence: if(NewCatmatches!=null){
  32. ISSUE: line 381 character 38: Use '===' to compare with 'null'. - Evidence: }else if(OldCatmatches==null){
  33. ISSUE: line 425 character 16: ['bot'] is better written in dot notation. - Evidence: datas['bot'] = 1;
  34. ISSUE: line 445 character 2: Missing semicolon. - Evidence: }
  35. ISSUE: line 452 character 2: Missing semicolon. - Evidence: }
  36. ISSUE: line 458 character 32: ['query'] is better written in dot notation. - Evidence: var userRights = data['query']['userinfo']['rights'];
  37. ISSUE: line 458 character 41: ['userinfo'] is better written in dot notation. - Evidence: var userRights = data['query']['userinfo']['rights'];
  38. ISSUE: line 458 character 53: ['rights'] is better written in dot notation. - Evidence: var userRights = data['query']['userinfo']['rights'];
  39. ISSUE: line 469 character 26: ['noredirect'] is better written in dot notation. - Evidence: moveParams['noredirect'] = '';
  40. ISSUE: line 483 character 89: ['to'] is better written in dot notation. - Evidence: alert(RenommageCategorie_Text_NewPageExists.replace('$1', moveParams['to']));
  41. ISSUE: line 491 character 2: Missing semicolon. - Evidence: }
  42. ISSUE: line 502 character 35: Use '===' to compare with ''. - Evidence: if(RenommageCategorie_AddCat==''){
  43. ISSUE: line 516 character 2: Missing semicolon. - Evidence: }
  44. ISSUE: line 529 character 35: Use '===' to compare with ''. - Evidence: if(RenommageCategorie_AddCat==''){
  45. ISSUE: line 541 character 2: Missing semicolon. - Evidence: }
  46. ISSUE: line 552 character 35: Read only. - Evidence: if(OldElement.parentNode){document=OldElement.parentNode.removeChild(OldElement);}
  47. ISSUE: line 554 character 2: Missing semicolon. - Evidence: }
  48. ISSUE: line 560 character 15: Use '===' to compare with 'null'. - Evidence: if(Matches==null) return OldText;
  49. ISSUE: line 564 character 22: Use '!==' to compare with 'null'. - Evidence: if(catNSmatch!=null){
  50. ISSUE: line 580 character 2: Missing semicolon. - Evidence: }
  51. ISSUE: line 580 character 2: Too many errors. (95% scanned). - Evidence: undefined