Skip to main content

validate_with_tools

Function validate_with_tools 

Source
pub fn validate_with_tools(code: &str, backend_name: &str) -> ToolValidation
Expand description

Validate generated code with the real compilers and linters for its language.

Returns ToolValidation::Unsupported when no validator exists for the backend’s language, and a per-tool ToolOutcome list otherwise. Callers must not treat “no errors” as “checked” without consulting ToolValidation::fully_checked or ToolValidation::into_result – see ToolOutcome for why.