-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcspell.json
More file actions
44 lines (44 loc) · 1.39 KB
/
cspell.json
File metadata and controls
44 lines (44 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"version": "0.2",
"language": "en-US", // we always use American English
// whitelist: disable all file types, then re-enable only what we want
"enableFiletypes": ["!*", "markdown", "plaintext", "r", "qmd"],
"useGitignore": true, // respect .gitignore (avoids checking generated/ignored files)
// additional paths to ignore beyond .gitignore
"ignorePaths": [
"*.Rd", // generated roxygen docs
"*.rda", // R binary data
"*.Rds", // R binary data
"*.lock", // lockfiles
"man/", // generated man pages
"renv/" // renv library
],
// use cspell R-dictionary + project-specific word list
"dictionaries": ["r", "project-words"],
"dictionaryDefinitions": [
{
"name": "project-words",
// shared word list — commit this file so the whole team benefits
"path": "./.cspell/project-words.txt",
// enables "Add to project dictionary" command in VS Code / Cursor
"addWords": true
}
],
"languageSettings": [
{
"languageId": "r",
// only spell-check comments in R files, not code identifiers
"includeRegExpList": [
"/#.*$/gm"
]
},
{
"languageId": "c,cpp",
// only spell-check comments in C/C++ files, not code identifiers
"includeRegExpList": [
"//.*", // single-line comments: // ...
"/\\*[\\s\\S]*?\\*/" // block comments: /* ... */
]
}
]
}