Skip to content

Feat/go language review rules - #568

Closed
amh1k wants to merge 3 commits into
alibaba:mainfrom
amh1k:feat/go-language-review-rules
Closed

Feat/go language review rules#568
amh1k wants to merge 3 commits into
alibaba:mainfrom
amh1k:feat/go-language-review-rules

Conversation

@amh1k

@amh1k amh1k commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Description

Adds built-in, Go-specific review rules and maps **/*.go files to them.

The new rule focuses on high-confidence Go correctness, concurrency, resource-lifecycle, boundary, and security findings. It includes evidence requirements and avoids duplicating findings better handled by gofmt, go vet, Staticcheck, the compiler, or the race detector.

It preserves the default exclusion of *_test.go files.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (no functional changes)
  • Documentation update
  • CI / Build / Tooling

How Has This Been Tested?

  • make test passes locally

  • Manual testing (describe below)

  • Ran go test ./... successfully.

  • Added resolver coverage confirming root, nested, and uppercase .GO paths select the built-in **/*.go rule.

  • Confirmed the existing *_test.go default exclusion remains covered by allowlist tests.

Checklist

  • My code follows the project's coding style (go fmt, go vet)
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly (if applicable)
  • I have signed the CLA

Related Issues

Closes #550

@github-actions

Copy link
Copy Markdown
Contributor

OpenCodeReview: No comments generated. Looks good to me.

@amh1k amh1k closed this Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add built-in Go (Golang) code review rules

1 participant