Skip to content

shouldIgnoreFile

shouldIgnoreFile(filePath, rootDir, customPatterns?, enabled?): boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/aiignoreUtils.ts:50

Check if a file path should be ignored based on aiignore patterns

string

The file path to check

string

The root directory for relative pattern matching

string[] | undefined

Optional custom patterns to use instead of loading from file

boolean = true

Whether aiignore is enabled

boolean

True if the file should be ignored, false otherwise