Skip to main content

load_yuiignore

Function load_yuiignore 

Source
pub fn load_yuiignore(source: &Utf8Path) -> Result<Gitignore>
Expand description

Load $source/.yuiignore as a gitignore-style matcher.

Returns an empty matcher when the file is absent (so is_ignored becomes a no-op). Patterns use full gitignore syntax: glob (*, **), negation (!), trailing-slash dir-only matching, comments (#).

Currently only the repo-root .yuiignore is honored — nested .yuiignore files inside subdirectories are not yet walked. (The 95% case is “exclude **/lock.json once at the top”.) If you need per-subtree rules, file an issue with the use case.