Commons:User scripts/users namespace/reports/User:Avicennasis/HotCatMod.js
This is the report page for User:Avicennasis/HotCatMod.js. It is bot-maintained. All manual changes might be overwritten.
jshint edit
- ISSUE:
line 136 character 60
: ['creator'] is better written in dot notation. - Evidence:&& ( wgNamespaceNumber == wgNamespaceIds['creator']
- ISSUE:
line 137 character 60
: ['timedtext'] is better written in dot notation. - Evidence:|| wgNamespaceNumber == wgNamespaceIds['timedtext']
- ISSUE:
line 138 character 60
: ['institution'] is better written in dot notation. - Evidence:|| wgNamespaceNumber == wgNamespaceIds['institution']
- ISSUE:
line 221 character 71
: Unnecessary semicolon. - Evidence:function LoadTrigger () { this.initialize.apply (this, arguments); };
- ISSUE:
line 318 character 5
: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence:function autoLocalize (namespaceNumber, fallback) {
- ISSUE:
line 388 character 33
: Use '!==' to compare with '0'. - Evidence:if (href.indexOf (prefix) != 0) prefix = wgServer + prefix; // Fully expanded URL?
- ISSUE:
line 389 character 33
: Use '!==' to compare with '0'. - Evidence:if (href.indexOf (prefix) != 0 && prefix.substring(0, 2) == '//') prefix = document.location.protocol + prefix; // Protocol-relative wgServer?
- ISSUE:
line 440 character 55
: Use '!==' to compare with 'null'. - Evidence:while ((curr_match = cat_regex.exec (copiedtext)) != null) {
- ISSUE:
line 457 character 42
: Use '!==' to compare with 'null'. - Evidence:while (findCatsRE.exec(copiedtext) != null) index = findCatsRE.lastIndex;
- ISSUE:
line 495 character 19
: Use '===' to compare with 'null'. - Evidence:if (key == null) key = matches[0].match[2]; // Remember the category key, if any.
- ISSUE:
line 524 character 19
: 'matches' is already defined. - Evidence:var matches = find_category (wikitext, toAdd);
- ISSUE:
line 669 character 16
: eval can be harmful. - Evidence:setPage (eval ('(' + request.responseText + ')'));
- ISSUE:
line 760 character 50
: Use '===' to compare with '0'. - Evidence:commitForm.wpWatchthis.checked = wgArticleId == 0 && watchCreate || watchEdit || pageWatched;
- ISSUE:
line 770 character 19
: 'i' is already defined. - Evidence:for (var i=0; i < deleted.length; i++) {
- ISSUE:
line 778 character 19
: 'i' is already defined. - Evidence:for (var i=0; i < added.length; i++) {
- ISSUE:
line 788 character 19
: 'i' is already defined. - Evidence:for (var i=0; i < changed.length; i++) {
- ISSUE:
line 843 character 16
: 'i' is already defined. - Evidence:for (var i = 0; i < toResolve.length; i++) {
- ISSUE:
line 861 character 38
: eval can be harmful. - Evidence:resolveRedirects (toResolve, eval ('(' + request.responseText + ')'));
- ISSUE:
line 881 character 26
: ['title'] is better written in dot notation. - Evidence:var cat = cats[c]['title'];
- ISSUE:
line 897 character 20
: ['ns'] is better written in dot notation. - Evidence:if ( lks[i]['ns'] == 14 // Category namespace
- ISSUE:
line 898 character 20
: ['title'] is better written in dot notation. - Evidence:&& lks[i]['title'] && lks[i]['title'].length > 0) // Name not empty
- ISSUE:
line 898 character 39
: ['title'] is better written in dot notation. - Evidence:&& lks[i]['title'] && lks[i]['title'].length > 0) // Name not empty
- ISSUE:
line 901 character 27
: ['title'] is better written in dot notation. - Evidence:var match = lks[i]['title'];
- ISSUE:
line 906 character 16
: 'j' is already defined. - Evidence:for (var j = 0; j < toResolve.length; j++) {
- ISSUE:
line 914 character 48
: Use '!==' to compare with 'null'. - Evidence:titles[0] + (toResolve[j].currentKey != null ? '|' + toResolve[j].currentKey : "");
- ISSUE:
line 969 character 31
: eval can be harmful. - Evidence:var queryResult = eval ('(' + responseText + ')');
- ISSUE:
line 970 character 32
: Use '!==' to compare with 'null'. - Evidence:if ( queryResult != null && queryResult.length == 2
- ISSUE:
line 996 character 31
: eval can be harmful. - Evidence:var queryResult = eval ('(' + responseText + ')');
- ISSUE:
line 1002 character 59
: Use '!==' to compare with '0'. - Evidence:if (titles[i].toLowerCase().indexOf (key) != 0) {
- ISSUE:
line 1017 character 31
: eval can be harmful. - Evidence:var queryResult = eval ('(' + responseText + ')');
- ISSUE:
line 1033 character 31
: eval can be harmful. - Evidence:var queryResult = eval ('(' + responseText + ')');
- ISSUE:
line 1058 character 74
: Unnecessary semicolon. - Evidence:function CategoryEditor () { this.initialize.apply (this, arguments); };
- ISSUE:
line 1357 character 65
: Use '!==' to compare with 'null'. - Evidence:this.text.value = this.currentCategory + (this.currentKey != null ? '|' + this.currentKey : "");
- ISSUE:
line 1458 character 50
: Variables should not be deleted. - Evidence:window.setTimeout (function () {delete self;}, 10);
- ISSUE:
line 1510 character 35
: Use '!==' to compare with 'null'. - Evidence:|| HotCat.blacklist != null && HotCat.blacklist.test(v))
- ISSUE:
line 1522 character 43
: Use '!==' to compare with '0'. - Evidence:this.noCommit = (evtKeys (evt) & 1) != 0;
- ISSUE:
line 1608 character 31
: Use '!==' to compare with 'null'. - Evidence:|| HotCat.blacklist != null && HotCat.blacklist.test (this.currentCategory)
- ISSUE:
line 1702 character 27
: Use '!==' to compare with 'null'. - Evidence:if (this.text.value != null && this.text.value != v)
- ISSUE:
line 1718 character 53
: Use '!==' to compare with 'null'. - Evidence:if (r.status == 200 && r.responseText != null) {
- ISSUE:
line 1721 character 36
: Use '===' to compare with 'null'. - Evidence:if (cb.allTitles == null) {
- ISSUE:
line 1737 character 24
: Variables should not be deleted. - Evidence:delete cb;
- ISSUE:
line 1764 character 59
: Use '!==' to compare with 'null'. - Evidence:this.ok.disabled = v.length > 0 && HotCat.blacklist != null && HotCat.blacklist.test (v);
- ISSUE:
line 1814 character 42
: Use '!==' to compare with 'null'. - Evidence:haveEngine = this.engineSelector != null;
- ISSUE:
line 1819 character 47
: Use '!==' to compare with '0'. - Evidence:if (this.lastInput.indexOf (queryKey) != 0) return;
- ISSUE:
line 1833 character 30
: Use '!==' to compare with 'null'. - Evidence:if (HotCat.blacklist != null) {
- ISSUE:
line 1860 character 20
: 'i' is already defined. - Evidence:for (var i = 0; i < titles.length; i++) {
- ISSUE:
line 1985 character 18
: 'i' is already defined. - Evidence:for (var i = 0 ; i < titles.length ; i++) {
- ISSUE:
line 2015 character 49
: Use '!==' to compare with '0'. - Evidence:if (dontModify || newVal.indexOf (actVal) != 0) return false;
- ISSUE:
line 2047 character 26
: Expected a 'break' statement before 'case'. - Evidence:case 38: dir = -1; // Up arrow
- ISSUE:
line 2048 character 40
: Expected a 'break' statement before 'case'. - Evidence:case 40: if (dir === 0) dir = 1; // Down arrow
- ISSUE:
line 2048 character 40
: Too many errors. (78% scanned). - Evidence:undefined