IgnoreParser is a wrapping interface for gitignore.IgnoreParser that adds a method to find out if the parser has any negating patterns
| 12 | // IgnoreParser is a wrapping interface for gitignore.IgnoreParser that |
| 13 | // adds a method to find out if the parser has any negating patterns |
| 14 | type IgnoreParser interface { |
| 15 | // Matches returns if the given relative path matches the ignore parser |
| 16 | Matches(relativePath string, isDir bool) bool |
| 17 | |
| 18 | // RequireFullScan is useful for optimization, since if an ignore parser has no |
| 19 | // general negate patterns, we can skip certain sub trees that do are ignored |
| 20 | // by another rule. |
| 21 | RequireFullScan() bool |
| 22 | } |
| 23 | |
| 24 | type ignoreParser struct { |
| 25 | ignoreParser gitignore.IgnoreParser |
no outgoing calls
no test coverage detected