MCPcopy Create free account
hub / github.com/FastLED/FastLED / print_text_results

Function print_text_results

ci/lint_cpp_rs/src/lib.rs:1653–1668  ·  view source on GitHub ↗
(violations: &[LintViolation], project_root: &Path)

Source from the content-addressed store, hash-verified

1651}
1652
1653fn print_text_results(violations: &[LintViolation], project_root: &Path) {
1654 if violations.is_empty() {
1655 println!("All Rust C++ linting checks passed!");
1656 return;
1657 }
1658
1659 let mut current_checker = "";
1660 for violation in violations {
1661 if violation.checker != current_checker {
1662 current_checker = &violation.checker;
1663 println!("\n[{current_checker}]");
1664 }
1665 let display_path = relative_display_path(&violation.path, project_root);
1666 println!(" {display_path}:{}: {}", violation.line, violation.message);
1667 }
1668}
1669
1670fn collect_input_files(project_root: &Path, inputs: &[String]) -> Result<Vec<PathBuf>, DynError> {
1671 let mut files = BTreeSet::new();

Callers 1

run_cliFunction · 0.85

Calls 2

relative_display_pathFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected