FarmBot/Farmbot-Web-App

View on GitHub
frontend/farm_designer/map/legend/z_display.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function ZDisplay has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const ZDisplay = (props: ZDisplayProps) => {
  const tools = props.allPoints.filter(p => p.body.pointer_type == "ToolSlot")
    .map(p => p.body.z).sort()[0];
  const soil = props.allPoints.filter(soilHeightPoint)
    .map(p => p.body.z).sort()[0];
Severity: Minor
Found in frontend/farm_designer/map/legend/z_display.tsx - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

            return "";
    Severity: Major
    Found in frontend/farm_designer/map/legend/z_display.tsx - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status