iterative/vscode-dvc

View on GitHub
webview/src/setup/components/dvc/Dvc.tsx

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function Dvc has 49 lines of code (exceeds 40 allowed). Consider refactoring.
Open

export const Dvc: React.FC = () => {
  const dispatch = useDispatch()
  const hasWebviewData = useSelector(
    (state: SetupState) => state.webview.hasData
  )
Severity: Minor
Found in webview/src/setup/components/dvc/Dvc.tsx - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      return (
        <EmptyState isFullScreen={false}>
          <h1>Setup Complete</h1>
          {children}
          <p>
    Severity: Major
    Found in webview/src/setup/components/dvc/Dvc.tsx - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status