package reviver
import "gvisor.dev/gvisor/tools/github/reviver"
Package reviver scans the code looking for TODOs and pass them to registered Buggers to ensure TODOs point to active issues.
Index ¶
- type Bugger
- type GitHubBugger
- func NewGitHubBugger(client *github.Client, owner, repo string, dryRun bool) (*GitHubBugger, error)
- func (b *GitHubBugger) Activate(todo *Todo) (bool, error)
- type Location
- type Reviver
- type Todo
Types ¶
type Bugger ¶
Bugger interface is called for every TODO found in the code. If it can handle the TODO, it must return true. If it returns false, the next Bugger is called. If no Bugger handles the TODO, it's dropped on the floor.
type GitHubBugger ¶
type GitHubBugger struct {
// contains filtered or unexported fields
}
GitHubBugger implements Bugger interface for github issues.
func NewGitHubBugger ¶
NewGitHubBugger creates a new GitHubBugger.
func (*GitHubBugger) Activate ¶
func (b *GitHubBugger) Activate(todo *Todo) (bool, error)
Activate implements Bugger.Activate.
type Location ¶
Location saves the location where the TODO was found.
type Reviver ¶
type Reviver struct {
// contains filtered or unexported fields
}
Reviver scans the given paths for TODOs and calls Buggers to handle them.
func New ¶
New create a new Reviver.
func (*Reviver) Run ¶
Run runs. It returns all errors found during processing, it doesn't stop on errors.
type Todo ¶
Todo represents a unique TODO. There can be several TODOs pointing to the same issue in the code. They are all grouped together.
Source Files ¶
github.go reviver.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 4 hours ago –
Tools for package owners.