๐๏ธ Rules Overview
Rules are the core of Comply. Each rule defines a convention to enforce and how to evaluate it against a git diff.
๐๏ธ LLM Rules
LLM rules send the git diff to a language model with a custom prompt and evaluate the response.
๐๏ธ Regex Rules
Regex rules match patterns against the raw git diff text. They run locally with no API calls.
๐๏ธ AST Rules
AST rules analyze Python source files in the diff using Python's built-in ast module. They check structural properties without running the code.
๐๏ธ Rule Chaining
The depends_on field lets you skip rules when a prerequisite rule has not passed.