Commons:User scripts/reports/MediaWiki:Utilities.js
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]- ISSUE:
line 72 character 46
: Script URL. - Evidence:var link = makeRawLink (name, 'javascript:' + script, null, tooltip);
- ISSUE:
line 101 character 25
: Use '===' to compare with 'null'. - Evidence:if (document.editform == null || document.editform.wpSummary == null) return;
- ISSUE:
line 101 character 64
: Use '===' to compare with 'null'. - Evidence:if (document.editform == null || document.editform.wpSummary == null) return;
- ISSUE:
line 103 character 15
: Use '===' to compare with 'null'. - Evidence:if (summary == null || summary.length == 0)
- ISSUE:
line 103 character 41
: Use '===' to compare with '0'. - Evidence:if (summary == null || summary.length == 0)
- ISSUE:
line 110 character 43
: Do not use String as a constructor. - Evidence:+ new String (text.charAt (0)).toLowerCase ()
- ISSUE:
line 127 character 32
: Use '===' to compare with '0'. - Evidence:if (!group || group.length == 0) group = '*';
- ISSUE:
line 138 character 32
: Use '===' to compare with '0'. - Evidence:if (!group || group.length == 0) group = '*';
- ISSUE:
line 169 character 26
: Use '===' to compare with '0'. - Evidence:if (!str || str.length == 0) return result;
- 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?
- 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?
- 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?
- ISSUE:
line 281 character 29
: Use '===' to compare with '0'. - Evidence:if (href.indexOf (prefix) == 0)