ignore

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package ignore implements checking if a certain file (typically .proto or .go) should be ignored by the open2opaque pipeline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	IgnoredFiles map[string]bool
	IgnoredDirs  []string
}

List allows checking if a certain file (typically .proto or .go files) should be ignored by the open2opaque pipeline.

func LoadList

func LoadList(pattern string) (*List, error)

LoadList loads an ignore list from files matching the provided glob pattern (see http://godoc/3/file/base/go/file#Match for the syntax definition).

func (*List) Add

func (l *List) Add(path string)

Add adds the depot path to the ignore list.

func (*List) Contains

func (l *List) Contains(path string) bool

Contains returns true if the loaded ignorelist contains path.

Jump to

Keyboard shortcuts

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