EmmaRamirez/Clickopolis

View on GitHub
src/utils/population.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function updatePopulation has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function updatePopulation(pop:number, playerCiv:Civilization, game:Game, citizens:Collection<Citizen>, options) {
  let popGrowthCost = u.elt('.pop-growth-cost-text');
  let populationText = u.elt('.population-text');
  let popMetric = u.elt('.metric-population');

Severity: Minor
Found in src/utils/population.ts - About 1 hr to fix

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

    export function updatePopulation(pop:number, playerCiv:Civilization, game:Game, citizens:Collection<Citizen>, options) {
    Severity: Minor
    Found in src/utils/population.ts - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status