microsoft / microsoft/go

Refactor versionguardcheck onto golang.org/x/tools/go/analysis

Open
#2,259 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
431
Forks
44
Avg merge
21h 18m
Merged PRs (30d)
30

Description

versionguardcheck is currently a hand-rolled Go program

Expose the analyzer as an analysis.Analyzer, replace main with singlechecker.Main, and swap our custom test code for analysistest. Adds golang.org/x/tools as the repo's first external dep.

Follow up for

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing versionguardcheck program and its custom tests. Review the golang.org/x/tools/go/analysis, singlechecker, and analysistest entry points, then confirm that the analyzer is exposed through analysis.Analyzer, main uses singlechecker.Main, and the tests use analysistest with the new dependency recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.