Code Review Configuration
The Go project uses Gerrit for code reviews. The default review branch ismaster.
Code Review Workflow
Review Guidelines
For Contributors
- Be responsive: Reply to review comments promptly
- Be open to feedback: Reviewers are helping improve the code
- Keep changes focused: Each change should address one issue or feature
- Write clear descriptions: Explain what and why, not just how
For Reviewers
- Be constructive: Provide helpful suggestions, not just criticism
- Be thorough: Check for correctness, style, and test coverage
- Be timely: Try to review changes within a reasonable timeframe
- Be respectful: Remember there’s a person behind the code
Code Style
Go has strong conventions for code style:Formatting
Use
go fmt to format all code automaticallyDocumentation
Document all exported functions, types, and packages
Naming
Follow Go naming conventions (MixedCaps, not underscores)
Testing
Write tests for all new functionality