Lambda-School-Labs/Labs26-StorySquad-BE-TeamB

View on GitHub
api/mod/BallotGeneration.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function VSequence has 28 lines of code (exceeds 25 allowed). Consider refactoring.
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 = []
Severity: Minor
Found in api/mod/BallotGeneration.js - About 1 hr to fix

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

    const incrementVotesCasted =(squads, ID, FO) =>{
        let iSquads = squads[`${ID}`]
        let newArr = []
        let returnObject = {}
        iSquads.forEach(s =>{
    Severity: Minor
    Found in api/mod/BallotGeneration.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status