vorteil/direktiv

View on GitHub
ui/src/design/WorkflowDiagram/index.stories.tsx

Summary

Maintainability
C
7 hrs
Test Coverage

File index.stories.tsx has 308 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import Button from "../Button";
import { ButtonBar } from "../ButtonBar";
import { Card } from "../Card";
import { Orientation } from "./types";
import WorkflowDiagram from "./index";
Severity: Minor
Found in ui/src/design/WorkflowDiagram/index.stories.tsx - About 3 hrs to fix

    Function UpdateWorkflow has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const UpdateWorkflow = () => {
      const [workflow, setWorkflow] = useState(exampleWorkflow);
      const [orientation, setOrientation] = useState<Orientation>("horizontal");
    
      return (
    Severity: Minor
    Found in ui/src/design/WorkflowDiagram/index.stories.tsx - About 1 hr to fix

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

      export const ComplexWorkflowDiagram = () => {
        const allStates = [
          "validate-input-2",
          "request-prediction",
          "evaluate-created-prediction",
      Severity: Minor
      Found in ui/src/design/WorkflowDiagram/index.stories.tsx - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status