Skip to main content

count_custom_assertion_lines

Function count_custom_assertion_lines 

Source
pub fn count_custom_assertion_lines(
    source_lines: &[&str],
    patterns: &[String],
) -> usize
Expand description

Text-based fallback for T001 escape hatch. Patterns are literal substrings, not regex. Matches in comments, strings, and imports are included by design. Returns the number of source lines that contain any pattern as a substring.