Commit Graph

3 Commits

Author SHA1 Message Date
camc314 fdd4c92791 refactor(oxlint,oxfmt): share config discovery code (#21642) 2026-04-23 10:12:18 +00:00
leaysgur 6f49fada82 fix(oxfmt): Respect nested config.ignorePatterns (#21489)
Previously, `ignorePatterns` could not skip directories in `filter_entry()` because doing so might hide nested configs beneath them.

This PR pre-scans config locations before the walk, so `filter_entry()` can safely skip `ignorePatterns` directories that have no nested config beneath them.

With all configs known upfront, the walk also resolves each file's scope dynamically from a pre-loaded scope map, replacing the sequential child-scope walks (`run_child_scope()` recursion) with a single parallel walk.

The pre-scan also preserves current streaming architecture (walk → channel → format workers), keeping format workers busy sooner than a batch-collect alternative would.
2026-04-16 08:10:30 +00:00
leaysgur c9b4db9ff7 test(oxfmt): Rework test/cli tests (#21463)
Switch to a fixture-based testing approach, similar to apps/oxlint.
2026-04-15 09:13:40 +00:00