pub fn resolve_scope(
files: &[&str],
scope_defs: &[ScopeDefinition],
) -> Option<String>Expand description
Resolves the best scope for a set of files using scope definition file patterns.
More specific patterns (more literal path components) win regardless of
definition order in scopes.yaml. Equally specific matches are joined
with “, “. Returns None when scope_defs or files is empty, or no
scope definition matches.