FarmBot/Farmbot-Web-App

View on GitHub
frontend/logs/components/settings_menu.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

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

  render() {
    const { setFilterLevel, sourceFbosConfig, getConfigValue } = this.props;
    const LogSettingRow = (settingProps: LogSettingRecord) => {
      const { label, setting, tooltip } = settingProps;
      return <LogSetting
Severity: Minor
Found in frontend/logs/components/settings_menu.tsx - About 1 hr to fix

    Function LogSetting has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const LogSetting = (props: LogSettingProps) => {
      const { label, setting, toolTip, setFilterLevel, sourceFbosConfig } = props;
      /** Update the current filter level to a minimum needed for log display. */
      const updateMinFilterLevel = (key: keyof Filters, level: number) => {
        const currentLevel =
    Severity: Minor
    Found in frontend/logs/components/settings_menu.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status