pub fn apply(
graph: &CodeGraph,
source: &str,
violations: Vec<Violation>,
) -> Vec<Violation>Expand description
Strip violations suppressed by // code-moniker: ignore (or #/--)
directives in comment-defs of the graph.
ignore (no -file suffix) suppresses violations on the comment def
that carries the directive and the next def whose position starts
at or after the comment’s end byte. ignore-file applies to every
violation in the file. The optional [id1, id2, ...] list scopes the
suppression by rule-id suffix; without it, all rules are suppressed.