()
| 1639 | } |
| 1640 | |
| 1641 | fn print_help() { |
| 1642 | println!( |
| 1643 | "fastled-lint\n\ |
| 1644 | \n\ |
| 1645 | Usage:\n\ |
| 1646 | fastled-lint [--format text|json] [--checker name[,name...]] [--project-root PATH] [files-or-globs...]\n\ |
| 1647 | \n\ |
| 1648 | When no files are supplied, scans src/, examples/, and tests/ under --project-root.\n\ |
| 1649 | Use --list-checkers to print the Rust-supported checker names." |
| 1650 | ); |
| 1651 | } |
| 1652 | |
| 1653 | fn print_text_results(violations: &[LintViolation], project_root: &Path) { |
| 1654 | if violations.is_empty() { |