Commons:User scripts/users namespace/reports/User:Satnav/Gadget-Cat-a-lot.js
Jump to navigation
Jump to search
This is the report page for User:Satnav/Gadget-Cat-a-lot.js. It is bot-maintained. All manual changes might be overwritten.
jshint
[edit]- ISSUE:
line 81 character 40
: The array literal notation [] is preferable. - Evidence:catALot.subCats = new Array();
- ISSUE:
line 98 character 43
: The array literal notation [] is preferable. - Evidence:catALot.parentCats = new Array();
- ISSUE:
line 100 character 48
: Use '===' to compare with ''. - Evidence:if (pages[-1] && pages[-1].missing == '') {
- ISSUE:
line 112 character 33
: 'cats' used out of scope. - Evidence:for (var i = 0; i < cats.length; i++) {
- ISSUE:
line 113 character 41
: 'cats' used out of scope. - Evidence:catALot.parentCats.push(cats[i].title.replace(/^[^:]+:/, ""));
- ISSUE:
line 165 character 20
: Use '===' to compare with 'null'. - Evidence:if (result == null) {
- ISSUE:
line 179 character 51
: ['timestamp'] is better written in dot notation. - Evidence:var timestamp = pages[id].revisions[0]['timestamp'];
- ISSUE:
line 185 character 121
: 'otext' used out of scope. - Evidence:if (mode != "remove" && sourcecat.toLowerCase() != targetcat.toLowerCase() && this.regexBuilder(targetcat).test(otext)) {
- ISSUE:
line 197 character 20
: 'otext' used out of scope. - Evidence:var text = otext;
- ISSUE:
line 210 character 18
: 'otext' used out of scope. - Evidence:if ( otext == text ) {
- ISSUE:
line 224 character 21
: 'otext' used out of scope. - Evidence:if (text == otext) {
- ISSUE:
line 240 character 29
: 'starttimestamp' used out of scope. - Evidence:starttimestamp: starttimestamp,
- ISSUE:
line 241 character 28
: 'timestamp' used out of scope. - Evidence:basetimestamp: timestamp,
- ISSUE:
line 322 character 26
: Use '===' to compare with '0'. - Evidence:if (files.length == 0) {
- ISSUE:
line 353 character 10
: Missing semicolon. - Evidence:}
- ISSUE:
line 379 character 14
: Don't make functions within a loop. - Evidence:});
- ISSUE:
line 385 character 18
: Don't make functions within a loop. - Evidence:});
- ISSUE:
line 390 character 18
: Don't make functions within a loop. - Evidence:});
- ISSUE:
line 395 character 18
: Don't make functions within a loop. - Evidence:});
- ISSUE:
line 401 character 78
: 'add' used out of scope. - Evidence:if (list[i] != wgTitle && this.searchmode) li.append(' ').append(add);
- ISSUE:
line 402 character 84
: 'move' used out of scope. - Evidence:else if (list[i] != wgTitle && !this.searchmode) li.append(' ').append(move).append(' ').append(copy);
- ISSUE:
line 402 character 109
: 'copy' used out of scope. - Evidence:else if (list[i] != wgTitle && !this.searchmode) li.append(' ').append(move).append(' ').append(copy);