AutolabJS/AutolabJS

View on GitHub

Showing 4,708 of 4,708 total issues

Identifier 'total_score' is not in camel case.
Open

total_score=total_score+parseInt(array[i]);
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

'array' is not defined.
Open

total_score=total_score+parseInt(array[i]);
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Infix operators must be spaced.
Open

q="SELECT * FROM "+table_name+" WHERE id_no = \'"+submission_json.id_no+"\'";
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Identifier 'table_name' is not in camel case.
Open

q="SELECT * FROM "+table_name+" WHERE id_no = \'"+submission_json.id_no+"\'";
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

'table_name' is not defined.
Open

q="SELECT * FROM "+table_name+" WHERE id_no = \'"+submission_json.id_no+"\'";
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

A space is required after ','.
Open

connection.query(q ,function(err, rows, fields) {
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Missing space before function parentheses.
Open

connection.query(q ,function(err, rows, fields) {
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Strings must use singlequote.
Open

"Content-Type": "application/json",
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Unexpected function expression.
Open

response.on('data',function(chunk)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Expected indentation of 6 spaces but found 8.
Open

"Content-Length": Buffer.byteLength(body)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Strings must use singlequote.
Open

"Content-Length": Buffer.byteLength(body)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

'body' used outside of binding context.
Open

"Content-Length": Buffer.byteLength(body)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Missing space before function parentheses.
Open

response.on('data',function(chunk)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Expected space(s) after "if".
Open

if(submission_json.status == 1 || submission_json.status == 2)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Expected '===' and instead saw '=='.
Open

if(submission_json.status == 1 || submission_json.status == 2)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Identifier 'total_score' is not in camel case.
Open

total_score=total_score+parseInt(array[i]);
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

'total_score' is not defined.
Open

total_score=total_score+parseInt(array[i]);
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Identifier 'total_score' is not in camel case.
Open

total_score = 0;
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Unnecessary escape character: \'.
Open

q="SELECT * FROM "+table_name+" WHERE id_no = \'"+submission_json.id_no+"\'";
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

'q' is not defined.
Open

connection.query(q ,function(err, rows, fields) {
Severity: Minor
Found in load_balancer/load_balancer.js by eslint
Severity
Category
Status
Source
Language