FarmBot/Farmbot-Web-App

View on GitHub
frontend/farm_designer/map/background/map_background.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function MapBackground has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function MapBackground(props: MapBackgroundProps) {
  const { mapTransformProps, plantAreaOffset, templateView } = props;
  const gridSize = getMapSize(mapTransformProps);
  const boardWidth = 20;
  const mapSize = getMapSize(mapTransformProps, plantAreaOffset);
Severity: Minor
Found in frontend/farm_designer/map/background/map_background.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status