archunit

Function gather_file_dependency_violations

Source
pub fn gather_file_dependency_violations(
    edges: &[ProjectedEdge],
    subject_filters: &[Filter],
    object_filters: &[Filter],
    is_negated: bool,
) -> Vec<Violation>
Expand description

Judges internal dependencies from selected subject files to an object-file allowlist or denylist.

A positive rule treats the object filters as an allowlist and reports subject dependencies whose targets do not match every object filter. A negated rule treats them as a denylist and reports dependencies whose targets do match every filter. Subject filters and object filters each use AND semantics.