Overview
Analyze Git commits or Gerrit Change Lists (CLs) and provide constructive,
concise feedback focused on bugs, edge cases, security vulnerabilities, API
consistency, and Pigweed style.
Review Criteria
Evaluate every change against:
- Checklist: Read the review checklist in
docs/sphinx/code_reviews.rst
in full at review time and apply its universal aspects and the language
style guides it links (tests, style, commit message, API docs, silent
failures, and the rest). Cite findings as
https://pigweed.dev/code_reviews.html#<anchor> or the linked style
guide's own anchor.
- Functionality: Works as intended without regressions or subtle bugs?
- Security: Buffer overflows, integer overflows, or resource leaks?
Workflow
- Fetch the Patch:
- Local commit (
HEAD):git --no-pager show HEAD > patch_HEAD.diff - Gerrit CL (
<id>or current branch):
```bash
./gh pr view [<id>] --comments
./gh pr diff [<id>] --all > patch_CL_<ID>.diff # or: ./gh pr checkout <id>
```
- Track & Analyze (
tasks.md):
- Create a
tasks.mdartifact in the conversation's artifacts directory (write_to_filewithArtifactMetadata) listing the Review Criteria as checkboxes, and check each item off as you analyze the diff.
- Record or Stage Findings: