Problem
Further to discussion in #8927.
For the vscode extension, default ignores have this default:
"cSpell.ignorePaths": [
"package-lock.json",
"node_modules",
"vscode-extension",
".git/{info,lfs,logs,refs,objects}/**",
".git/{index,*refs,*HEAD}",
".vscode",
".vscode-insiders"
],
However this is the default for the library/cli:
const defaultExcludeGlobs = ['node_modules/'];
I think most people would be surprised that .git/ (and others things) is not auto-ignored.
Solution
The default should probably be something like this:
const defaultExcludeGlobs = ['.git/', 'node_modules/'];
Maybe it should also include package-lock.json and pnpm-lock.yaml.
Is there a reason the library/cli default is so minimal?
Alternatives
In cspell.json:
"ignorePaths": [".git/", "node_modules/", "pnpm-lock.yaml"]
And, better docs here so people don't fall into this trap.
Additional Context
No response
Code of Conduct
Problem
Further to discussion in #8927.
For the vscode extension, default ignores have this default:
However this is the default for the library/cli:
I think most people would be surprised that
.git/(and others things) is not auto-ignored.Solution
The default should probably be something like this:
Maybe it should also include
package-lock.jsonandpnpm-lock.yaml.Is there a reason the library/cli default is so minimal?
Alternatives
In
cspell.json:And, better docs here so people don't fall into this trap.
Additional Context
No response
Code of Conduct