Commons:User scripts/users namespace/reports/User:Philroc/common.js
This is the report page for User:Philroc/common.js. It is bot-maintained. All manual changes might be overwritten.
jshint edit
- ISSUE:
line 1037 character 97
: Don't make functions within a loop. - Evidence:&& !Array.exists(this.annotations, function (note) { return note.model.id == id; })
- ISSUE:
line 1054 character 50
: Use '===' to compare with '0'. - Evidence:if (!this.main_div || this.main_div.length == 0)
- ISSUE:
line 1104 character 10
: Don't make functions within a loop. - Evidence:});
- ISSUE:
line 1260 character 11
: 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 intersect_rectangles (a, b) {
- ISSUE:
line 1911 character 11
: 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 get_size (info) {
- ISSUE:
line 1923 character 25
: Use '!==' to compare with '0'. - Evidence:if (i != 0 || !self.may_edit || !info.protection || mw.config.get('wgNamespaceNumber') != 6) return;
- ISSUE:
line 2050 character 23
: 'item' is already defined. - Evidence:for (var item in self.defaults) {
- ISSUE:
line 2282 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 track (evt) {
- ISSUE:
line 2309 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 pause (evt) {
- ISSUE:
line 2316 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 resume (evt) {
- ISSUE:
line 2327 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 stop_tracking (evt) {
- ISSUE:
line 2374 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 start_tracking (evt) {
- ISSUE:
line 2407 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 add_new (evt) {
- ISSUE:
line 2681 character 12
: Don't make functions within a loop. - Evidence:});