antongolub/yarn-audit-fix

View on GitHub
src/main/ts/lockfile/v2.ts

Summary

Maintainability
A
2 hrs
Test Coverage
B
87%

Function format has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const format = (lockfile: TLockfileObject): string => {
  const keymap = Object.entries(lockfile).reduce<Record<string, any>>(
    (m, [k, { resolution }]) => {
      const entry = m[resolution] || (m[resolution] = [])
      entry.push(k)
Severity: Minor
Found in src/main/ts/lockfile/v2.ts - About 1 hr to fix

    Function audit has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const audit = (
      flags: TFlags,
      temp: string,
      bins: Record<string, string>,
    ): TAuditReport => {
    Severity: Minor
    Found in src/main/ts/lockfile/v2.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status