Vizzuality/landgriffon

View on GitHub
api/src/modules/h3-data/h3-data-map.service.ts

Summary

Maintainability
A
2 hrs
Test Coverage

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

  async getImpactMapByResolution(
    getImpactMapDto:
      | GetImpactMapDto
      | GetActualVsScenarioImpactMapDto
      | GetScenarioVsScenarioImpactMapDto,
Severity: Minor
Found in api/src/modules/h3-data/h3-data-map.service.ts - About 1 hr to fix

    Function getMaterialsH3DataYearsList has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      private async getMaterialsH3DataYearsList(
        year: number,
        materialIds?: string[],
      ): Promise<MaterialsH3DataYears[]> {
        const materialsH3DataYears: MaterialsH3DataYears[] = [];
    Severity: Minor
    Found in api/src/modules/h3-data/h3-data-map.service.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status