dotconnor/sized

View on GitHub

Showing 3 of 29 total issues

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

async function sizeOfDir(
  dir: string,
  options: IOptions,
  limit: (...args: any[]) => any,
  cb: (size: IBlock) => void
Severity: Minor
Found in src/index.ts - About 1 hr to fix

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

    export function getLargest(
      blocks: IBlock[],
      depth: number = 1,
      inset: number = 0,
      dir: string = `.`,
    Severity: Minor
    Found in src/utils.ts - About 1 hr to fix

      Function getLargest has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        blocks: IBlock[],
        depth: number = 1,
        inset: number = 0,
        dir: string = `.`,
        padding?: number
      Severity: Minor
      Found in src/utils.ts - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language