FarmBot/Farmbot-Web-App

View on GitHub

Showing 646 of 1,897 total issues

Avoid too many return statements within this function.
Open

    return Mode.boxSelect;
Severity: Major
Found in frontend/farm_designer/map/util.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          if (!(variable && variable.vector)) { return; }
    Severity: Major
    Found in frontend/farm_designer/map/sequence_visualization.tsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return {
              x: variable.vector.x + offset.x,
              y: variable.vector.y + offset.y,
            };
      Severity: Major
      Found in frontend/farm_designer/map/sequence_visualization.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return Mode.createPoint;
        Severity: Major
        Found in frontend/farm_designer/map/util.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            return Mode.none;
          Severity: Major
          Found in frontend/farm_designer/map/util.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              if (includes(lower, "seed bin")) { return ToolName.seedBin; }
            Severity: Major
            Found in frontend/farm_designer/map/tool_graphics/all_tools.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return Mode.createWeed;
              Severity: Major
              Found in frontend/farm_designer/map/util.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  if (includes(lower, "seed tray")) { return ToolName.seedTray; }
                Severity: Major
                Found in frontend/farm_designer/map/tool_graphics/all_tools.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      Path.getSlug(Path.cropSearch())) { return Mode.clickToAdd; }
                  Severity: Major
                  Found in frontend/farm_designer/map/util.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return Mode.points;
                    Severity: Major
                    Found in frontend/farm_designer/map/util.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        if (includes(lower, "soil sensor")) { return ToolName.soilSensor; }
                      Severity: Major
                      Found in frontend/farm_designer/map/tool_graphics/all_tools.tsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                          if (Path.lastChunkIsNum()) { return Mode.editPlant; }
                        Severity: Major
                        Found in frontend/farm_designer/map/util.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                            if (includes(lower, "seeder")) { return ToolName.seeder; }
                          Severity: Major
                          Found in frontend/farm_designer/map/tool_graphics/all_tools.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                              return ToolName.tool;
                            Severity: Major
                            Found in frontend/farm_designer/map/tool_graphics/all_tools.tsx - About 30 mins 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

                                Avoid too many return statements within this function.
                                Open

                                      if (!sequenceUuid) { return; }
                                Severity: Major
                                Found in frontend/farm_designer/map/sequence_visualization.tsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                    if (includes(lower, "seed trough")) { return ToolName.seedTrough; }
                                  Severity: Major
                                  Found in frontend/farm_designer/map/tool_graphics/all_tools.tsx - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return Mode.weeds;
                                    Severity: Major
                                    Found in frontend/farm_designer/map/util.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return SemverResult.RIGHT_IS_GREATER;
                                      Severity: Major
                                      Found in frontend/util/version.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return SemverResult.LEFT_IS_GREATER;
                                        Severity: Major
                                        Found in frontend/util/version.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language