Ignorelint::GitignoreStyleLinter
Inherits Ignorelint::FormatLinter < Struct < Value < Object
The linter adapter for gitignore-style files.
Combines three sets of checks:
CommonGlob.check— shared glob-validity rules (IG-009, IG-010)GitignoreSemantics.check— gitignore-specific rules (IG-011)Conflicts.check— cross-pattern conflict detection (IG-012)
This is a struct that include FormatLinter. The struct is instantiated
once in FormatLinterRegistry::LINTERS and reused for every file.
Constructors
new
Instance methods
check_pattern(pat : Pattern) : Array(Issue)
Check a single pattern: common glob + gitignore-specific checks.
check_patterns(patterns : Array(Pattern), issues : Array(Issue)) : Nil
Check the full pattern list for cross-pattern conflicts.
initialize