Skip to content

[AVC] Update golang filter#15520

Merged
tjprescott merged 1 commit intomainfrom
avc/update-golang-filter-20260506
May 7, 2026
Merged

[AVC] Update golang filter#15520
tjprescott merged 1 commit intomainfrom
avc/update-golang-filter-20260506

Conversation

@tjprescott
Copy link
Copy Markdown
Member

Filter additions based on a review of feedback collected during April 2026.

Rule 3 added: DO NOT suggest changing error code constant string values to match the constant name's capitalization. Error code values are wire-format strings defined by the service and must not be altered.

Rule 4 added: DO NOT suggest renaming functions that use 'WithNoCredential' to 'WithoutCredential'. The 'NoCredential' naming is the established Go SDK pattern.

Evidence: 2 downvoted comments from jhendrixMSFT on the azblob review (1 FactuallyIncorrect, 1 AcceptedSDKPattern).

Copilot AI review requested due to automatic review settings May 6, 2026 17:20
@tjprescott tjprescott added the APIView Copilot Issues related to APIView Copilot label May 6, 2026
@tjprescott tjprescott self-assigned this May 6, 2026
@tjprescott tjprescott requested a review from jhendrixMSFT May 6, 2026 17:20
@github-project-automation github-project-automation Bot moved this to 🆕 New in APIView May 6, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Go-language exception filter for APIView Copilot based on April 2026 feedback, adding two new “do not suggest” rules to prevent factually incorrect or pattern-breaking review comments.

Changes:

  • Add a new exception rule disallowing suggestions to change error code constant string values to match constant name capitalization (wire-format values must remain service-defined).
  • Add a new exception rule disallowing suggestions to rename WithNoCredential functions to WithoutCredential (keeps established Go SDK naming patterns).

@tjprescott tjprescott moved this from 🆕 New to 👀In PR in APIView May 6, 2026
@tjprescott tjprescott merged commit ac52e5e into main May 7, 2026
15 checks passed
@tjprescott tjprescott deleted the avc/update-golang-filter-20260506 branch May 7, 2026 18:15
@github-project-automation github-project-automation Bot moved this from 👀In PR to ✅ Done in APIView May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

APIView Copilot Issues related to APIView Copilot

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants