serge-web/serge-web

View on GitHub
client/src/Components/local/atoms/core-mapping/helper/feature-generator.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function generateFeatures has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const generateFeatures = (bounds: L.LatLngBounds, numPoints: number, numShapes: number): FeatureCollection => {
  const features: Feature[] = []
  const x_min = bounds.getEast()
  const x_max = bounds.getWest()
  const y_min = bounds.getSouth()

    There are no issues that match your filters.

    Category
    Status