iterative/vscode-dvc

View on GitHub
webview/src/experiments/components/table/body/RowContextMenu.tsx

Summary

Maintainability
C
1 day
Test Coverage
A
100%

File RowContextMenu.tsx has 398 lines of code (exceeds 300 allowed). Consider refactoring.
Open

import React, { useMemo } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import {
  MessageFromWebview,
  MessageFromWebviewType
Severity: Minor
Found in webview/src/experiments/components/table/body/RowContextMenu.tsx - About 4 hrs to fix

    Function getSingleSelectMenuOptions has 104 lines of code (exceeds 40 allowed). Consider refactoring.
    Open

    const getSingleSelectMenuOptions = (
      id: string,
      sha: string | undefined,
      isWorkspace: boolean,
      hasRunningWorkspaceExperiment: boolean,
    Severity: Major
    Found in webview/src/experiments/components/table/body/RowContextMenu.tsx - About 3 hrs to fix

      Function getMultiSelectMenuOptions has 61 lines of code (exceeds 40 allowed). Consider refactoring.
      Open

      const getMultiSelectMenuOptions = (
        selectedRowsList: SelectedRow[],
        hasRunningWorkspaceExperiment: boolean
      ) => {
        const {
      Severity: Major
      Found in webview/src/experiments/components/table/body/RowContextMenu.tsx - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status