Skip to main content

load_exclude_sets

Function load_exclude_sets 

Source
pub fn load_exclude_sets(db_path: &Path) -> HashMap<String, Vec<String>>
Expand description

Plan J t-011: load named exclude sets from .asd/scopes.toml.

Format (sits alongside the bare-key scope aliases):

# bare entries remain positive scope aliases (load_scope_aliases)
drift-pad = ["App/**/DriftPad*"]

# new: exclude sets keyed under a dedicated table
[exclude_sets]
tests = ["**/test_*.py", "tests/**", "**/*_test.go"]
generated = ["**/generated/**", "**/*_pb2.py"]

--exclude-set tests on the CLI expands to those globs and merges into FtsFilters::exclude_paths. Returns an empty map when no [exclude_sets] table is present (or when the file is missing).