ignore

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package ignore provides functionality for parsing and applying ignore rules defined in .codexsentinel.ignore file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IgnoreRule

type IgnoreRule struct {
	File    string // optional file path, may contain wildcards
	Line    int    // optional line number, 0 = any line
	RuleID  string // rule to ignore, required
	Comment string // optional comment after #
	// contains filtered or unexported fields
}

IgnoreRule represents a single parsed ignore rule.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager holds and evaluates parsed ignore rules.

func NewManager

func NewManager() *Manager

NewManager creates a new empty ignore manager.

func (*Manager) IsIgnored

func (m *Manager) IsIgnored(file string, line int, ruleID string) bool

IsIgnored checks if a given rule ID at file:line should be ignored.

func (*Manager) LoadFile

func (m *Manager) LoadFile(path string) error

LoadFile parses the ignore rules from the given file path.

Jump to

Keyboard shortcuts

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