Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
tertib
command
Command tertib checks code against team conventions defined in .tertib.yml, using an AI model, and reports violations with a CI-friendly exit code.
|
Command tertib checks code against team conventions defined in .tertib.yml, using an AI model, and reports violations with a CI-friendly exit code. |
|
internal
|
|
|
ci
Package ci detects the surrounding CI environment in a vendor-neutral way, so tertib can pick a sensible diff base without per-platform configuration.
|
Package ci detects the surrounding CI environment in a vendor-neutral way, so tertib can pick a sensible diff base without per-platform configuration. |
|
config
Package config loads, validates, and applies defaults to the tertib configuration file (.tertib.yml).
|
Package config loads, validates, and applies defaults to the tertib configuration file (.tertib.yml). |
|
dotenv
Package dotenv loads KEY=VALUE pairs from a file into the process environment.
|
Package dotenv loads KEY=VALUE pairs from a file into the process environment. |
|
engine
Package engine orchestrates convention checking: it matches rules to files, evaluates each rule/file pair against the model concurrently, and demotes findings that fall outside the changed lines in diff mode.
|
Package engine orchestrates convention checking: it matches rules to files, evaluates each rule/file pair against the model concurrently, and demotes findings that fall outside the changed lines in diff mode. |
|
findings
Package findings defines the violation type tertib produces and the severity logic that decides whether a run should fail CI.
|
Package findings defines the violation type tertib produces and the severity logic that decides whether a run should fail CI. |
|
gitdiff
Package gitdiff enumerates the files (and changed line ranges) tertib should review.
|
Package gitdiff enumerates the files (and changed line ranges) tertib should review. |
|
llm
Package llm is a minimal client for OpenAI-compatible chat completion endpoints.
|
Package llm is a minimal client for OpenAI-compatible chat completion endpoints. |
|
notify
Package notify delivers a run summary to external channels.
|
Package notify delivers a run summary to external channels. |
|
report
Package report renders an engine result as a human-readable markdown report or machine-readable JSON.
|
Package report renders an engine result as a human-readable markdown report or machine-readable JSON. |
|
secrets
Package secrets resolves secret values from vendor-neutral sources declared in tertib configuration.
|
Package secrets resolves secret values from vendor-neutral sources declared in tertib configuration. |
Click to show internal directories.
Click to hide internal directories.