FarmBot/Farmbot-Web-App

View on GitHub
frontend/settings/firmware/firmware_path.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function ChangeFirmwarePath has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const ChangeFirmwarePath = (props: ChangeFirmwarePathProps) => {
  const OPTIONS: Record<string, DropDownItem> = {
    "": { label: t("Change firmware path to..."), value: "" },
    ttyACM0: { label: t("ttyACM0 (recommended for Genesis)"), value: "ttyACM0" },
    ttyAMA0: {
Severity: Minor
Found in frontend/settings/firmware/firmware_path.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status