Commons:User scripts/reports/MediaWiki:Utilities.js

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

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

jshint

[edit]
  1. ISSUE: line 72 character 46: Script URL. - Evidence: var link = makeRawLink (name, 'javascript:' + script, null, tooltip);
  2. ISSUE: line 101 character 25: Use '===' to compare with 'null'. - Evidence: if (document.editform == null || document.editform.wpSummary == null) return;
  3. ISSUE: line 101 character 64: Use '===' to compare with 'null'. - Evidence: if (document.editform == null || document.editform.wpSummary == null) return;
  4. ISSUE: line 103 character 15: Use '===' to compare with 'null'. - Evidence: if (summary == null || summary.length == 0)
  5. ISSUE: line 103 character 41: Use '===' to compare with '0'. - Evidence: if (summary == null || summary.length == 0)
  6. ISSUE: line 110 character 43: Do not use String as a constructor. - Evidence: + new String (text.charAt (0)).toLowerCase ()
  7. ISSUE: line 127 character 32: Use '===' to compare with '0'. - Evidence: if (!group || group.length == 0) group = '*';
  8. ISSUE: line 138 character 32: Use '===' to compare with '0'. - Evidence: if (!group || group.length == 0) group = '*';
  9. ISSUE: line 169 character 26: Use '===' to compare with '0'. - Evidence: if (!str || str.length == 0) return result;
  10. ISSUE: line 279 character 29: Use '!==' to compare with '0'. - Evidence: if (href.indexOf (prefix) != 0) prefix = mw.config.get('wgServer') + prefix; // Fully expanded URL?
  11. ISSUE: line 280 character 29: Use '!==' to compare with '0'. - Evidence: if (href.indexOf (prefix) != 0 && prefix.indexOf ('//') == 0) prefix = document.location.protocol + prefix; // Protocol-relative wgServer?
  12. ISSUE: line 280 character 59: Use '===' to compare with '0'. - Evidence: if (href.indexOf (prefix) != 0 && prefix.indexOf ('//') == 0) prefix = document.location.protocol + prefix; // Protocol-relative wgServer?
  13. ISSUE: line 281 character 29: Use '===' to compare with '0'. - Evidence: if (href.indexOf (prefix) == 0)