trufflesuite/truffle

View on GitHub
packages/db-kit/src/cli/menu/Menu.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function Menu has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const Menu = (props: Props) => {
  const { config, db, project, onDone } = props;
  const [mode, setMode] = useState<"wait" | ModeName<MenuModes>>("wait");

  const handleSelect = ({ value }) => {
Severity: Major
Found in packages/db-kit/src/cli/menu/Menu.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status