Skip to main content

Interface: IgnorePathPresets

Defined in: packages/cspell-types/dist/index.d.mts:1610

Presets of files to skip. Each one is enabled or disabled on its own.

Properties​

git?​

optional git?: boolean

Defined in: packages/cspell-types/dist/index.d.mts:1627

Skip git's own files inside the root folder:

  • a file named .git, which git puts in a worktree or a submodule
  • everything inside a .git folder, except git's message files

Files outside the root folder are not skipped. For example, a submodule's commit message is in the parent repository's .git folder.

Git's message files stay checked, so a commit-msg hook can spell check the commit message. They are the files whose names end in MSG, such as COMMIT_EDITMSG, MERGE_MSG, and TAG_EDITMSG, and EDIT_DESCRIPTION. They are kept in two places:

  • directly inside a .git folder
  • directly inside a linked worktree's folder in .git/worktrees

Default​

true

nestedWorktrees?​

optional nestedWorktrees?: boolean

Defined in: packages/cspell-types/dist/index.d.mts:1640

Skip git worktrees inside the root folder, such as .worktrees/feature. A worktree is another checkout of the same repository, often of another branch.

The worktrees are found in the repository's own records, in .git/worktrees, so finding them does not search the folders. Only the worktrees of the repository that holds the root folder are skipped. Submodules and other repositories inside the root folder are still checked.

When the root folder is inside a worktree, that worktree's files are still checked.

Default​

true