check_guarantees
Check code against defined guarantees and return violations with file, line, and rule name. Validates specific rules or all.
Instructions
Validate code against defined guarantees and return violations.
Use this to:
Find violations: Run all rules, get list of breaking code
Verify specific rule: check_guarantees(names=["no-eval"]) — test one guarantee
Pre-commit validation: Catch issues before code review
After code changes: Verify you didn't break existing rules
Returns: Violations array with node IDs, file, line, rule name. Empty array = all guarantees pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | No | List of guarantee names to check (omit to check all) |