jasonraimondi/zod-friendly-forms

View on GitHub
index.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Function flattenErrors has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

function flattenErrors(result: z.SafeParseError<unknown>) {
  return result.error.errors.reduce<Record<string, string>>(
    (prev: Record<string, string>, next) => {
      const result = { ...prev };
      const key = next.path.join(".");
Severity: Minor
Found in index.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status