FarmBot/Farmbot-Web-App

View on GitHub
frontend/farmware/farmware_forms.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function render has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const { farmware, env, dispatch, botOnline } = this.props;

    const collapsed = (config: FarmwareConfig) =>
      farmware.name == FarmwareName.MeasureSoilHeight
Severity: Minor
Found in frontend/farmware/farmware_forms.tsx - About 1 hr to fix

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

    export function ConfigFields(props: ConfigFieldsProps): JSX.Element {
      const { farmwareName, farmwareConfigs, getValue, userEnv } = props;
      return <div className={"farmware-config-fields"}>
        {farmwareConfigs.map(config => {
          const configEnvName = getConfigEnvName(farmwareName, config.name);
    Severity: Minor
    Found in frontend/farmware/farmware_forms.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status