emugaya/pop-api

View on GitHub
endpoints/population.js

Summary

Maintainability
A
1 hr
Test Coverage

Function calculatePopulation has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var calculateLocationPopulationFromChildren = async function calculatePopulation(location) {
    let areaPopulation = {
        id: location.id,
        name: location.name,
        parentLocationId: location.parent,
Severity: Minor
Found in endpoints/population.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status