Usage
Modules
To get the best performance out of reviewer, you can configure each module with specific review criteria that fits your needs. All modules except description
support criteria.
Criteria serve as guardrails for the reviewer when creating reviews and filtering hallucinations. Each review must match specified criteria.
Best practices for Review criteria
- Clear and concise criteria produce better results
- Avoid broad criteria like
find all bugs
ordo not hallucinate
- Make sure to specify what reviewer should do instead of what it shouldn’t
Criteria templating
You can use Go
templating to specify language specific criteria. Available variables are:
{{ .Language }}
- represents file extension in format.<ext>
(.go
,.py
, …)
Example use:
Default Review Criteria
Each module comes with predefined set of default criteria.
You can modify these by specifying a criteria key for each module in .callstack.yml
.
Specifying criteria in .callstack.yml
will override the default criteria.
.callstack.yml