What problem does it solve?
Review Pebble code reviews for structured detection of correctness issues, resource leaks, and concurrency bugs that can lead to bugs or data corruption. Use when asked to review code, a pull request, diff, or changes.
Core Features & Use Cases
- Resource Leak Detection: Flag patterns where Get() callers return a closer that must be closed and ensure proper deferral of Close().
- Concurrency Safety: Enforce per-goroutine iterators and safe lock handling to avoid race conditions.
- Iterator Misuse Prevention: Ensure proper positioning before accessing Key/Value and verify iteration errors via Error() after loops.
- Lint Compliance: Highlight common lint violations and coding standards to maintain Pebble's quality bar.
- PR/Diff Review Guidance: Provide a standardized review checklist to accelerate code reviews and maintainability.
Quick Start
Review the latest Pebble PR or code diff to surface correctness and safety issues.