Skip to content

Unreadable files silently reported as clean 0-token source #11

Description

@royalpinto007

Problem

A 200 KB mode-000 file scans as {tokens: 0, category: "source", trim: false}: unreadable files are silently reported as clean, undercounting waste with no warning.

Where

src/scan.js (read catch returns zero tokens, no unreadable flag).

Acceptance

Add a failing test first scanning a directory with an unreadable large file, expecting it surfaced (counted/warned), not silent keep. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions