publiccontent

package
v1.0.61 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 16 Imported by: 0

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 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