publiccontent

package
v1.0.76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Rule       string
	Action     report.Action
	File       string
	Line       int
	Source     string
	Excerpt    string
	Message    string
	Suggestion string
}

func Collect

func Collect(ctx context.Context, opts Options) ([]Finding, error)

func ScanComment

func ScanComment(kind, body string) []Finding

func ScanCommentAtPath added in v1.0.73

func ScanCommentAtPath(kind, path, body string) []Finding

func ScanFile

func ScanFile(path string, data []byte) []Finding

type Metadata

type Metadata struct {
	Title  string `json:"title"`
	Body   string `json:"body"`
	Branch string `json:"branch"`
}

func LoadMetadata

func LoadMetadata(path string) (Metadata, error)

type Options

type Options struct {
	Repo         string
	ChangedFrom  string
	MetadataPath string
	BranchName   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL