You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actions[bot] edited this page Oct 5, 2026
·
1 revision
Defines the contract for classifying .gitignore entries.
This classifier SHALL inspect a raw .gitignore entry and determine whether the
entry expresses directory semantics or file semantics. Implementations MUST
preserve deterministic classification for identical inputs. Blank entries and
comment entries MUST be treated as file-oriented values to avoid incorrectly
inferring directory intent where no effective pattern exists.
Full name: \FastForward\DevTools\GitIgnore\ClassifierInterface
Methods
classify
Classifies a .gitignore entry as directory or file pattern.
publicclassify(string $entry): "directory"|"file"
Parameters:
Parameter
Type
Description
$entry
string
the .gitignore entry to classify
Return Value:
the classification result
isDirectory
Determines whether the entry represents a directory pattern.
publicisDirectory(string $entry): bool
Parameters:
Parameter
Type
Description
$entry
string
the .gitignore entry to check
Return Value:
true if the entry is a directory pattern
isFile
Determines whether the entry represents a file pattern.