Skip to content

Pass ignore.files patterns to scanning tools#36

Open
Nefleex wants to merge 1 commit intomillionco:mainfrom
Nefleex:honor-ignore-rules
Open

Pass ignore.files patterns to scanning tools#36
Nefleex wants to merge 1 commit intomillionco:mainfrom
Nefleex:honor-ignore-rules

Conversation

@Nefleex
Copy link

@Nefleex Nefleex commented Feb 18, 2026

Summary

Pass ignore.files config patterns down to runOxlint and runKnip so excluded files are skipped during scanning, not just filtered from results after the fact.

Motivation

The ignore.files config option is documented and accepted, but it only post-filters diagnostics in filterIgnoredDiagnostics. The scanning tools (oxlint and knip) still process every file regardless. This means projects with large build artifact directories still get hundreds of false positive "unused file" warnings from generated output, even when those paths are configured to be ignored.

Usage

{
  "ignore": {
    "files": ["build/**", ".cache/**"]
  }
}

With this change, the patterns above are now forwarded to:

  • oxlint via --ignore-pattern CLI flags
  • knip via post-filter using the existing compileGlobPattern utility

@vercel
Copy link

vercel bot commented Feb 18, 2026

@Nefleex is attempting to deploy a commit to the Million Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant