filter

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 8 Imported by: ? 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

func FilterFiles

func FilterFiles(project *model.ProjectAnnotation, opts *filter.Options)

func FilterFilesWithCheck

func FilterFilesWithCheck(project *model.ProjectAnnotation, check func(file model.RelativeFile) bool)

func MakeFilter

func MakeFilter(profileLang lang.ProfileLanguage) *filter.Options

func MakeProjectFilter added in v0.0.11

func MakeProjectFilter(profileLang lang.ProfileLanguage, include, exclude []string) *filter.Options

MakeProjectFilter intersects system/language rules with project rules.

func NewChecker

func NewChecker(opts *filter.Options) *checker

func PrepareForConsumption added in v0.0.11

func PrepareForConsumption(project *model.ProjectAnnotation, language lang.ProfileLanguage, include, exclude []string, requireDiff bool) (*model.ProjectAnnotation, error)

PrepareForConsumption filters a request-owned, decoded annotation before validating it. Only file/type maps are copied: no second large decoded tree is allocated. File contents remain request-owned and may be computed in place.

func ReserveForLineView

func ReserveForLineView(project *model.ProjectAnnotation, opts *ReserveOptions) *model.ProjectAnnotation

func ReserveForLineViewChecked added in v0.0.11

func ReserveForLineViewChecked(project *model.ProjectAnnotation, opts *ReserveOptions) (*model.ProjectAnnotation, error)

ReserveForLineViewChecked returns incomplete annotations as an error instead of panicking. The legacy API remains for source compatibility.

Types

type MissingDiffFileOption

type MissingDiffFileOption int
const (
	MissingDiffOption_Error MissingDiffFileOption = 0
	// when will this be useful? a go file is invovled in compilation, but excluded by git,
	// for example, local debug files
	MissingDiffOption_AsUnchanged MissingDiffFileOption = 1
)

type ReserveOptions

type ReserveOptions struct {
	ChangedOnly           bool
	MissingDiffFileOption MissingDiffFileOption
}

Jump to

Keyboard shortcuts

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