AutolabJS/AutolabJS

View on GitHub

Showing 4,708 of 4,708 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

if(job_queue.length!==0)
{
 
var assigned_node = node_queue.pop();
var assigned_hostname = assigned_node.hostname;
Severity: Major
Found in load_balancer/load_balancer.js and 1 other location - About 1 day to fix
load_balancer/load_balancer.js on lines 230..265

Identical blocks of code found in 2 locations. Consider refactoring.
Open

if(job_queue.length!==0)
{
var assigned_node = node_queue.pop();
var assigned_hostname = assigned_node.hostname;
var assigned_port = assigned_node.port;
Severity: Major
Found in load_balancer/load_balancer.js and 1 other location - About 1 day to fix
load_balancer/load_balancer.js on lines 108..144

Identical blocks of code found in 2 locations. Consider refactoring.
Open

Severity: Major
Found in docs/examples/unit_tests/test_cases/python2/tests/Test4.py and 1 other location - About 7 hrs to fix
docs/examples/unit_tests/test_cases/python3/tests/Test4.py on lines 0..17

Identical blocks of code found in 2 locations. Consider refactoring.
Open

Severity: Major
Found in docs/examples/unit_tests/test_cases/python3/tests/Test4.py and 1 other location - About 7 hrs to fix
docs/examples/unit_tests/test_cases/python2/tests/Test4.py on lines 0..17

Identical blocks of code found in 2 locations. Consider refactoring.
Open

Severity: Major
Found in docs/examples/unit_tests/test_cases/python2/tests/Test2.py and 1 other location - About 6 hrs to fix
docs/examples/unit_tests/test_cases/python3/tests/Test2.py on lines 0..15

Identical blocks of code found in 2 locations. Consider refactoring.
Open

Severity: Major
Found in docs/examples/unit_tests/test_cases/python3/tests/Test2.py and 1 other location - About 6 hrs to fix
docs/examples/unit_tests/test_cases/python2/tests/Test2.py on lines 0..15

File load_balancerTest.js has 386 lines of code (exceeds 250 allowed). Consider refactoring.
Open

const chai = require('chai');
const dirtyChai = require('dirty-chai');
const request = require('request');
const nock = require('nock');
const dns = require('dns');
Severity: Minor
Found in load_balancer/test/functional/load_balancerTest.js - About 5 hrs to fix

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    Severity: Major
    Found in docs/examples/unit_tests/author_solution/python2/Buyer.py and 3 other locations - About 5 hrs to fix
    docs/examples/unit_tests/author_solution/python3/Buyer.py on lines 0..14
    docs/examples/unit_tests/student_solution/python2/Buyer.py on lines 0..14
    docs/examples/unit_tests/student_solution/python3/Buyer.py on lines 0..14

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    Severity: Major
    Found in docs/examples/unit_tests/student_solution/python3/Buyer.py and 3 other locations - About 5 hrs to fix
    docs/examples/unit_tests/author_solution/python2/Buyer.py on lines 0..14
    docs/examples/unit_tests/author_solution/python3/Buyer.py on lines 0..14
    docs/examples/unit_tests/student_solution/python2/Buyer.py on lines 0..14

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    Severity: Major
    Found in docs/examples/unit_tests/author_solution/python3/Buyer.py and 3 other locations - About 5 hrs to fix
    docs/examples/unit_tests/author_solution/python2/Buyer.py on lines 0..14
    docs/examples/unit_tests/student_solution/python2/Buyer.py on lines 0..14
    docs/examples/unit_tests/student_solution/python3/Buyer.py on lines 0..14

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    Severity: Major
    Found in docs/examples/unit_tests/student_solution/python2/Buyer.py and 3 other locations - About 5 hrs to fix
    docs/examples/unit_tests/author_solution/python2/Buyer.py on lines 0..14
    docs/examples/unit_tests/author_solution/python3/Buyer.py on lines 0..14
    docs/examples/unit_tests/student_solution/python3/Buyer.py on lines 0..14

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    Severity: Major
    Found in docs/examples/unit_tests/author_solution/python2/Seller.py and 3 other locations - About 4 hrs to fix
    docs/examples/unit_tests/author_solution/python3/Seller.py on lines 0..18
    docs/examples/unit_tests/student_solution/python2/Seller.py on lines 0..18
    docs/examples/unit_tests/student_solution/python3/Seller.py on lines 0..18

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    Severity: Major
    Found in docs/examples/unit_tests/author_solution/python3/Seller.py and 3 other locations - About 4 hrs to fix
    docs/examples/unit_tests/author_solution/python2/Seller.py on lines 0..18
    docs/examples/unit_tests/student_solution/python2/Seller.py on lines 0..18
    docs/examples/unit_tests/student_solution/python3/Seller.py on lines 0..18

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    Severity: Major
    Found in docs/examples/unit_tests/student_solution/python2/Seller.py and 3 other locations - About 4 hrs to fix
    docs/examples/unit_tests/author_solution/python2/Seller.py on lines 0..18
    docs/examples/unit_tests/author_solution/python3/Seller.py on lines 0..18
    docs/examples/unit_tests/student_solution/python3/Seller.py on lines 0..18

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    Severity: Major
    Found in docs/examples/unit_tests/student_solution/python3/Seller.py and 3 other locations - About 4 hrs to fix
    docs/examples/unit_tests/author_solution/python2/Seller.py on lines 0..18
    docs/examples/unit_tests/author_solution/python3/Seller.py on lines 0..18
    docs/examples/unit_tests/student_solution/python2/Seller.py on lines 0..18

    Function exports has 112 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(socket)
    {
     
     
    if(socket.handshake.session.key)
    Severity: Major
    Found in main_server/admin.js - About 4 hrs to fix

      File main_server.js has 329 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* eslint import/no-dynamic-require: 0 */
      var fs = require('fs');
      var express = require('express');
      var path = require('path');
      var app = express();
      Severity: Minor
      Found in main_server/main_server.js - About 3 hrs to fix

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

        Severity: Major
        Found in docs/examples/unit_tests/test_cases/python3/tests/Test1.py and 1 other location - About 3 hrs to fix
        docs/examples/unit_tests/test_cases/python2/tests/Test1.py on lines 0..13

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

        Severity: Major
        Found in docs/examples/unit_tests/test_cases/python2/tests/Test1.py and 1 other location - About 3 hrs to fix
        docs/examples/unit_tests/test_cases/python3/tests/Test1.py on lines 0..13

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

        Severity: Major
        Found in docs/examples/unit_tests/test_cases/python3/tests/Test3.py and 1 other location - About 3 hrs to fix
        docs/examples/unit_tests/test_cases/python2/tests/Test3.py on lines 0..12
        Severity
        Category
        Status
        Source
        Language