Ignorelint::NpmignoreStyleLinter
Inherits Ignorelint::FormatLinter < Struct < Value < Object
The linter adapter for npmignore files.
Combines:
CommonGlob.check— shared glob-validity rulesGitignoreSemantics.check— gitignore-specific rules (reused)NpmignoreSemantics.check— redundant built-in exclude/include checksConflicts.check— cross-pattern conflict detection
Constructors
new
Instance methods
check_pattern(pat : Pattern) : Array(Issue)
Check a single pattern for format-specific issues.
Returns an array of Issue values (empty if the pattern is clean for
this format). Called once per active (non-blank, non-comment) pattern.
check_patterns(patterns : Array(Pattern), issues : Array(Issue)) : Nil
Check the full pattern list for cross-pattern issues.
Used for conflict detection (e.g. "build" followed by "!build").
Mutates the issues array in place for efficiency.
initialize