module

Ignorelint::Checks::GitignoreSemantics

Gitignore-specific semantic checks.

These rules catch patterns that are technically valid but likely indicate a misunderstanding of gitignore semantics.

Instance methods

check(pat : Pattern) : Array(Issue)

Check a single pattern for gitignore-specific issues.

Currently checks:

  • IG-011: Negated pattern with leading / — anchoring has no effect on negation because negated patterns are already relative to the ignore file's directory.