gfw-api/gfw-analysis-gee

View on GitHub
gfwanalysis/routes/api/v1/composite_service_router.py

Summary

Maintainability
B
4 hrs
Test Coverage
D
62%

Function get_by_hash has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

def get_by_hash(geojson, area_ha, instrument, date_range, thumb_size, classify, band_viz, get_dem, get_stats,
Severity: Major
Found in gfwanalysis/routes/api/v1/composite_service_router.py - About 1 hr to fix

    Function get_by_geom has 11 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def get_by_geom(geojson, area_ha, instrument, date_range, thumb_size, classify, band_viz, get_dem, get_stats,
    Severity: Major
    Found in gfwanalysis/routes/api/v1/composite_service_router.py - About 1 hr to fix

      Function composite has 10 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def composite(geojson, instrument, date_range, thumb_size, classify, band_viz, get_dem, get_stats, show_bounds,
      Severity: Major
      Found in gfwanalysis/routes/api/v1/composite_service_router.py - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status