AutolabJS/AutolabJS

View on GitHub

Showing 4,708 of 4,708 total issues

A space is required before '}'.
Open

app.use(bodyParser.json({limit: nodes_data.load_balancer.maxLogLength}));
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

Expected indentation of 8 spaces but found 10.
Open

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

Missing space before function parentheses.
Open

var request = https.request(https_job_options,function(response)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Unexpected var, use let or const instead.
Open

var fs = require('fs');
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Expected empty line after require statement not followed by another require.
Open

var httpolyglot = require('httpolyglot');
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Unexpected function expression.
Open

app.get('/userCheck', function (req,res) {
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Expected indentation of 2 spaces but found 6.
Open

console.log(req.body)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Missing semicolon.
Open

console.log(req.body)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Expected indentation of 4 spaces but found 5.
Open

console.log(node_queue.length + ' ' + job_queue.length)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

All 'var' declarations must be at the top of the function scope.
Open

var assigned_node = node_queue.pop();
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Missing trailing comma.
Open

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

All 'var' declarations must be at the top of the function scope.
Open

var assigned_port = assigned_node.port;
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

All 'var' declarations must be at the top of the function scope.
Open

var https_job_options={
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Strings must use singlequote.
Open

method: "POST",
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

A space is required after ','.
Open

var request = https.request(https_job_options,function(response)
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Block must not be padded by blank lines.
Open

{
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

A space is required after '{'.
Open

app.use(bodyParser.json({limit: nodes_data.load_balancer.maxLogLength}));
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Strings must use singlequote.
Open

console.log("Connection check request completed");
Severity: Minor
Found in load_balancer/load_balancer.js by eslint

Missing space before opening brace.
Open

app.post('/submit', function(req, res){
Severity: Minor
Found in load_balancer/load_balancer.js by eslint
Severity
Category
Status
Source
Language