bemusic/bemuse

View on GitHub
bemuse/src/ui-dialogs/index.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function showAlert has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function showAlert(title: string, message: ReactNode) {
  await registerActiveModal(
    new Promise<void>((resolve) => {
      const container = document.createElement('div')
      const root = createRoot(container)
Severity: Minor
Found in bemuse/src/ui-dialogs/index.tsx - About 1 hr to fix

    Function showQuickPick has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export async function showQuickPick<T extends QuickPickItem>(
      items: T[],
      options: QuickPickOptions
    ) {
      return registerActiveModal(
    Severity: Minor
    Found in bemuse/src/ui-dialogs/index.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status