undergroundwires/privacy.sexy

View on GitHub
src/presentation/components/Code/CodeButtons/ScriptErrorDialog.ts

Summary

Maintainability
A
3 hrs
Test Coverage

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

function createAntivirusErrorDialog(
  information: ScriptErrorDetails,
  diagnostics: ScriptDiagnosticData | undefined,
): ErrorDialogParameters {
  const defenderSteps = generateDefenderSteps(information, diagnostics);
Severity: Minor
Found in src/presentation/components/Code/CodeButtons/ScriptErrorDialog.ts - About 1 hr to fix

    Function createGenericErrorDialog has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function createGenericErrorDialog(
      information: ScriptErrorDetails,
      diagnostics: ScriptDiagnosticData | undefined,
    ): ErrorDialogParameters {
      return [
    Severity: Minor
    Found in src/presentation/components/Code/CodeButtons/ScriptErrorDialog.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status