api/mod/BallotGeneration.js
Function VSequence
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VSequence = (squads, data) =>{
//pull squad keys that which are equivilent to squad numbers
let allSquadNums = Object.keys(squads)
//converts all indecies into integers
let formatedSquadNum = []
Function incrementVotesCasted
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const incrementVotesCasted =(squads, ID, FO) =>{
let iSquads = squads[`${ID}`]
let newArr = []
let returnObject = {}
iSquads.forEach(s =>{