Skip to content

Commit 3a94bde

Browse files
authored
.github/copilot-instructions.md: add go style guidelines (#21629)
* .github/copilot-instructions.md: add go style guidelines Added code style guidelines and reviewer recommendations. * remove uber to reduce context window
1 parent 8f535f8 commit 3a94bde

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/copilot-instructions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@ Identify specific code blocks that require **scrupulous human review**. Focus on
1818
Analyze the `CODEOWNERS` file and the git history (recent editors) to suggest the most qualified reviewers.
1919
- Prioritize individuals who have made significant recent contributions to the specific files modified.
2020
- Cross-reference these contributors with the defined `CODEOWNERS` for the directory.
21+
22+
### 4. Code Style
23+
Give style advice based on the following guides, in order of priority.
24+
1. [Effective Go](https://go.dev/doc/effective_go)
25+
2. [Google Code Review Comments](https://go.dev/wiki/CodeReviewComments)
26+
3. [Google Style Guide](https://google.github.io/styleguide/go/)
27+
28+
Style exceptions are acceptable when aligning with pre-existing "local" style from the same file or package, but they should still be noted.

0 commit comments

Comments
 (0)