Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCaseInsensitiveFS ¶ added in v0.7.1
func IsCaseInsensitiveFS() bool
IsCaseInsensitiveFS reports whether the OS resolves filenames case-insensitively by default. In GoCode, Windows and macOS are treated as case-insensitive filesystems per project platform policy (NTFS and default APFS/HFS+ are case-insensitive). Note: While macOS supports case-sensitive APFS volumes as an opt-in format, standard installations are case-insensitive, matching Git's core.ignoreCase default.
Types ¶
type Matcher ¶
Matcher evaluates whether file paths match ignore patterns.
func LoadMatcher ¶
LoadMatcher searches for .gocodeignore (or .gitignore as fallback) starting from dir.
type SensitiveMatcher ¶ added in v0.4.0
SensitiveMatcher also checks built-in sensitive file patterns.
func NewSensitiveMatcher ¶ added in v0.4.0
func NewSensitiveMatcher(inner Matcher, extraPatterns []string) *SensitiveMatcher
NewSensitiveMatcher combines an inner matcher with sensitive patterns.
func (*SensitiveMatcher) IsIgnored ¶ added in v0.4.0
func (s *SensitiveMatcher) IsIgnored(path string, isDir bool) bool
IsIgnored checks both the inner matcher and the sensitive file patterns.
func (*SensitiveMatcher) IsSensitive ¶ added in v0.4.0
func (s *SensitiveMatcher) IsSensitive(path string) string
IsSensitive returns the matching pattern, or "" if not sensitive.
func (*SensitiveMatcher) ShouldBlock ¶ added in v0.4.0
func (s *SensitiveMatcher) ShouldBlock(path string, isDir bool) (bool, string)
ShouldBlock combines IsIgnored and IsSensitive checks.