Showing 4,708 of 4,708 total issues
Similar blocks of code found in 2 locations. Consider refactoring. Open
const startExecutionNode = function startExecutionNode() { delete require.cache[require.resolve('../../execute_node.js')]; // eslint-disable-next-line global-require executeNode = require('../../execute_node.js');};
- Read upRead up
Avoid deeply nested control flow statements. Open
if(current_time - hard < 0) { status =2; penalty=lab_config.Labs[i].penalty; }
Function revaluation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function revaluation(lab,start_time,end_time,admin_key,callback)
Function submit
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
const submit = function submit(host, idNo, currentLab, commitHash, language) {
Similar blocks of code found in 2 locations. Consider refactoring. Open
if(process.env.mode !== "TESTING"){ server.listen(config_details.main_server.port); console.log("Listening at "+config_details.main_server.port);
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
if(process.env.mode !== "TESTING"){ server.listen(nodes_data.load_balancer.port); console.log("Listening at "+nodes_data.load_balancer.port);}
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (testDetails.requestRunNockObj != null) { testDetails.requestRunNockObj.isDone().should.equal(testDetails.requestRunVal); }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (testDetails.resultsNockObj != null) { testDetails.resultsNockObj.isDone().should.equal(testDetails.resultsVal); }
- Read upRead up
Method insert
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
private BTNode insert(BTNode node, int data) { if (node == null) node = new BTNode(data); else
- Read upRead up
Using the '.*' form of import should be avoided - java.io.*. Open
import java.io.*;
- Read upRead up
- Exclude checks
Each variable declaration must be in its own statement. Open
BTNode left, right;
- Read upRead up
- Exclude checks
Wrong lexicographical order for 'java.text.*' import. Should be before 'java.util.*'. Open
import java.text.*;
- Read upRead up
- Exclude checks
'METHOD_DEF' should be separated from previous line. Open
public void setRight(BTNode n)
- Read upRead up
- Exclude checks
Using the '.*' form of import should be avoided - org.junit.Assert.*. Open
import static org.junit.Assert.*;
- Read upRead up
- Exclude checks
'METHOD_DEF' should be separated from previous line. Open
public void setData(int d)
- Read upRead up
- Exclude checks
'METHOD_DEF' should be separated from previous line. Open
public void insert(int data)
- Read upRead up
- Exclude checks
'METHOD_DEF' should be separated from previous line. Open
public boolean runTest(Class<?> clazz) {
- Read upRead up
- Exclude checks