FarmBot/Farmbot-Web-App

View on GitHub
frontend/app.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

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

  render() {
    const syncLoaded = this.isLoaded;
    const { bot, dispatch, getConfigValue } = this.props;
    const landingPage = getConfigValue(StringSetting.landing_page);
    return <div className="app">
Severity: Major
Found in frontend/app.tsx - About 2 hrs to fix

    Function mapStateToProps has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function mapStateToProps(props: Everything): AppProps {
      const webAppConfigValue = getWebAppConfigValue(() => props);
      return {
        timeSettings: maybeGetTimeSettings(props.resources.index),
        dispatch: props.dispatch,
    Severity: Minor
    Found in frontend/app.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status