baseline

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 1

Variables

This section is empty.

Functions

func Validate

func Validate(file File) error

func Write

func Write(path string, file File) error

Types

type Entry

type Entry struct {
	Fingerprint string `json:"fingerprint"`
	RuleID      string `json:"ruleId"`
	Path        string `json:"path"`
	Message     string `json:"message"`
	Line        int    `json:"line"`
}

type File

type File struct {
	Version int     `json:"version"`
	Entries []Entry `json:"entries"`
}

func Generate

func Generate(diagnostics []diagnostic.Diagnostic, sources map[string][]byte, projectDir string) File

func Load

func Load(path string) (File, error)

type Match

type Match struct {
	Remaining []diagnostic.Diagnostic
	Current   File
	Stale     int
}

func Apply

func Apply(file File, diagnostics []diagnostic.Diagnostic, sources map[string][]byte, projectDir string) Match

Jump to

Keyboard shortcuts

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