Expand description
External tool runner and auto-formatter detection.
Provides subprocess execution with timeout protection, language-to-formatter
mapping, and the auto_format entry point used by write_format_validate.
Structs§
- External
Tool Result - Result of running an external tool subprocess.
- Missing
Tool - A configured formatter/checker that cannot be resolved for configure warnings.
- Validation
Error - A structured error from a type checker.
Enums§
- Format
Error - Errors from external tool execution.
Functions§
- auto_
format - Auto-format a file using the detected formatter for its language.
- clear_
tool_ cache - detect_
formatter - Detect the appropriate formatter command and arguments for a file.
- detect_
missing_ tools - Detect configured formatters/checkers that are missing for languages present in the project.
- detect_
type_ checker - Detect the appropriate type checker command and arguments for a file.
- parse_
checker_ output - Parse type checker output into structured validation errors.
- run_
external_ tool - Spawn a subprocess and wait for completion with timeout protection.
- run_
external_ tool_ capture - Spawn a subprocess and capture output regardless of exit code.
- validate_
full - Run the project’s type checker and return structured validation errors.