2.1.23.8.4. cli.pre_commit_scripts.check_sections.run_check
- cli.pre_commit_scripts.check_sections.run_check(filename: Path, file_type: Literal['src.c', 'src.h', 'test.c', 'test.h']) int
Check a file for correct section marker usage and order.
- Parameters:
filename – Path to the file to check.
file_type – Expected file type string for section markers.
- Returns:
Number of section marker or formatting issues found.