Tyriar/pathfinding-visualiser

View on GitHub

Showing 7 of 22 total issues

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

module.exports = function(grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    eslint: {
Severity: Minor
Found in GruntFile.js - About 2 hrs to fix

Function run has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  module.run = function (map, callback, Heap) {
    var distance = {};
    var queue = new Heap();
    var queueNodes = {};
    var queuedPaints = [];
Severity: Minor
Found in src/algorithms/dijkstra-heap.js - About 1 hr to fix

Function run has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  module.run = function (map, callback) {
    var i;
    var closedList = [];
    var openList = [];
    var start = map.start;
Severity: Minor
Found in src/algorithms/a-star-array.js - About 1 hr to fix

Function run has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  module.run = function (map, callback, Heap, convertHeapToList) {
    var closedList = {};
    var openHash = {};
    var openList = new Heap();
    var start = map.start;
Severity: Minor
Found in src/algorithms/a-star-heap.js - About 1 hr to fix

Function paintNodes has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function paintNodes(queuedPaints, goalNode, openList, getSpeed) {
    if (!queuedPaints.length) {
      return;
    }
    var paint = queuedPaints.shift();
Severity: Minor
Found in src/pathfinding-visualiser.js - About 1 hr to fix

Function addNodesToOpenList has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function addNodesToOpenList(nodes, openList, openHash, closedList, goal, queuedPaints) {
Severity: Minor
Found in src/algorithms/a-star-heap.js - About 45 mins to fix

Function addNodesToOpenList has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function addNodesToOpenList(nodes, goal, openList, closedList, queuedPaints) {
Severity: Minor
Found in src/algorithms/a-star-array.js - About 35 mins to fix
Severity
Category
Status
Source
Language