Zum Inhalt springen
Kitbay

pr-to-go-linter

MITAktualisiert am 11. Nov. 20265.616GitHub-Sterne

A maintainer skill that turns a code pattern fixed in a pull request into a new custom Go linter for gh-aw.

Was der Skill vermittelt

A maintainer skill that turns a code pattern fixed in a pull request into a new custom Go linter for gh-aw. Given the repository, the pull request number and a linter name, the agent reads the pull request's changes, works out the rule, creates an analyzer under the linters package with tests and registers it with the runner, so the same mistake is caught automatically in later changes.

Funktionen

  • Read a pull request to find a fixed code pattern
  • Generate a go/analysis linter from that pattern
  • Add tests and register the new linter