Gemini Code Review Instructions
- Do not comment on content for XML files or .matter content for clusters
- The SDK is implementing an in-progress matter specification that may not be available yet. Assume the matter specification is unknown and out of scope. Do not make uninformed assumptions about the Matter specification, or its contents.
- Do not comment unless a change is probably desirable
- Do not repeat yourself. Be concise without losing meaning
- Do not over-explain what you see in the code. Only describe code if there are specific questions or concerns (or if a question is asked)
- Ensure that extensions or fixes to existing code should match the prevailing style of the original code
- Look for common typos and suggest fixes
- Wrong years and years in the future are OK. Humans will catch these issues.
- The SDK uses automated code formatting. Do not comment on whitespace, line length or other formatting or whitespace issues. A code formatter will handle this.
Development guides
The SDK source code contains guides for development best practices in docs/guides
, docs/testing
and other docs
locations. Use these as a reference for finding common patterns and potential issues in new code. In particular: