BugdrLog in
All problems
MediumJavaScriptDevOps / Infra · cli · file-filtering · glob · javascript · picomatch

File ignore pattern matching

★ 0.0 (0 ratings)45 min0 engineers solved this

Your assignment

This is a toolkit for running automated source code transformations (codemods) over many files. The CLI takes a transform script and one or more source paths, walks the file tree, and applies the transform to each matching file in worker processes. Users can exclude files with the --ignore-pattern flag or an ignore file; these patterns are registered in the ignoreFiles module, which keeps a module-level list of glob matchers. The file walker in Runner calls shouldIgnore on each discovered path before dispatching it to a worker. Other modules such as the argument parser and the Collection API do not touch file filtering.

What the team is seeing

incident log
When I run the tool on a folder whose location I type with two dots at the start, the ignore option I pass has no effect and dependency folders still get processed. If I give the full absolute location of the same folder, the ignore option works as expected.

Acceptance checks 1

  • Check 1

Discussion is locked — log in and complete this problem to join the discussion and rate your experience.