exclusion

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package exclusion provides file exclusion rules based on regex patterns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rules

type Rules []*regexp.Regexp

Rules represents a collection of regex patterns for file exclusion.

func New

func New() (Rules, error)

New creates exclusion rules from the configuration.

func (Rules) IsFileExcluded

func (r Rules) IsFileExcluded(path string) bool

IsFileExcluded returns true if the given path matches any of the exclusion rules.

Jump to

Keyboard shortcuts

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