From 4c2aac5d036f93e909b7f120eae97769e4a9bcaf Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Sat, 21 Mar 2026 06:45:58 -0500 Subject: [PATCH 1/2] .github/copilot-instructions.md: add go style guidelines Added code style guidelines and reviewer recommendations. --- .github/copilot-instructions.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index cb5eea1974c..7a4b5563a80 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -18,3 +18,12 @@ Identify specific code blocks that require **scrupulous human review**. Focus on Analyze the `CODEOWNERS` file and the git history (recent editors) to suggest the most qualified reviewers. - Prioritize individuals who have made significant recent contributions to the specific files modified. - Cross-reference these contributors with the defined `CODEOWNERS` for the directory. + +### 4. Code Style +Give style advice based on the following guides, in order of priority. +1. [Effective Go](https://go.dev/doc/effective_go) +2. [Google Code Review Comments](https://go.dev/wiki/CodeReviewComments) +3. [Google Style Guide](https://google.github.io/styleguide/go/) +4. [Uber Style Guide](https://github.com/uber-go/guide/blob/master/style.md) + +Style exceptions are acceptable when aligning with pre-existing "local" style from the same file or package, but they should still be noted. From 79566f7d14f424f8516603fde649904942dd04aa Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Mon, 23 Mar 2026 09:54:32 -0500 Subject: [PATCH 2/2] remove uber to reduce context window --- .github/copilot-instructions.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 7a4b5563a80..9d956f81b16 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -24,6 +24,5 @@ Give style advice based on the following guides, in order of priority. 1. [Effective Go](https://go.dev/doc/effective_go) 2. [Google Code Review Comments](https://go.dev/wiki/CodeReviewComments) 3. [Google Style Guide](https://google.github.io/styleguide/go/) -4. [Uber Style Guide](https://github.com/uber-go/guide/blob/master/style.md) Style exceptions are acceptable when aligning with pre-existing "local" style from the same file or package, but they should still be noted.