2.0 KiB
2.0 KiB
Code Review Checklist
Use selectively based on the diff. Do not turn this into a mechanical list of comments.
Scope and context
- Confirm branch/base/commit range or exact working-tree diff.
- Read repository instructions/context and accepted task intent.
- Identify high-risk changed areas first.
Correctness
- Trace changed conditionals and state transitions.
- Check edge/null/empty/error cases.
- Check changed callers and public contracts.
- Verify retries/side effects are not duplicated or skipped.
Auth/security
- Backend authentication present where required.
- Role/ownership/object authorization preserved.
- No secrets/sensitive data leaked.
- No obvious injection/path/redirect/deserialization exposure introduced.
API/data contracts
- Request/response/status shapes remain coherent.
- Frontend/backend field expectations match.
- Validation covers boundaries and malformed input.
- Pagination/filter/order/date semantics remain stable.
Database/migrations
- Model and migration agree.
- Existing rows survive new constraints/defaults.
- FK/unique/index/cascade semantics are intentional.
- Upgrade/deployment order is safe.
- Downgrade is coherent where repository practice requires it.
Frontend
- Props/context/hook contracts preserved.
- Async state handles race/error/loading paths.
- Forms send correct payloads.
- Route/navigation/auth behavior remains correct.
- Interaction changes do not create obvious accessibility regressions.
Runtime/config
- Env/config names and defaults remain compatible.
- Entry points/imports/startup commands still work.
- Docker/CI/deployment wiring matches changed paths/dependencies.
- No secret committed or logged.
Tests
- Meaningful changed behavior has regression coverage.
- Negative/auth/error paths are tested where risk warrants it.
- Tests would actually fail for the suspected regression.
Final signal check
- Remove speculative or stylistic findings.
- Merge duplicates sharing one root cause.
- Order findings by severity/impact.
- It is acceptable to return no findings.