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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
{
"words" : [
"astable",
"behavioural",
"datasheet",
"datasheets",
"demultiplexer",
"demultiplexers",
"highpass",
"lowpass",
"misformatted", // not in leo
"monostable",
"presettable", // not in leo
"transconductance",
"retriggerable", // not in leo
// Names
"Chebyshev",
"Raphson",
"Schmitt",
"Schottky",
"Zener",
"Thevenin",
// Company names
"Fairchild",
"Signetics",
"Mostek",
// Technical terms
"cmos",
"kaby", // Kaby Lake
"mosfet",
"mosfets",
"nmos",
"opamp",
"opamps",
"picosecond",
"pmos",
// Physics
"atto",
"centi",
"deca",
"femto",
"giga",
"hecto",
"peta",
"tera",
"yocto",
"yotta",
"zepto",
"zetta",
// Software
"kicad",
// C library functions / definitions
"feenableexcept",
"fedisableexcept",
// asm
"rdtsc",
"rdtscp",
"cpuid",
// Specific project terms
"MAME",
"Couriersud",
"netlist",
"netlists",
"nltool",
"nlwav",
"nvcc",
"lfsr",
"gmres",
"nlmod_",
// FIXME: Remove everything below here again
// Excluded for now ... Still over 1000 in the log
"plib", // namespace
"isnull",
"pstring",
"passert",
"putf",
"tokstor",
"psplit",
"gmin",
"lastx",
"idrn",
"preprocessor",
"ppreprocessor",
"psource",
"psemaphore",
"modacc",
"Ainv",
"anetlist",
"netdev",
"solv",
"sexpr",
"pstonum",
"pmfp",
"pmatrix",
"pfmt",
"nlname",
"nlparse",
"nlstate",
"nlconst",
"nlsetup",
"pfmp",
"resched",
"tokenizer",
"ptokenizer",
"pexception",
"devs",
"gonn",
"nzbd",
"nthcode",
"Vcrit",
"perrmsg",
"pfunction",
"tname",
"stname",
"parray",
"nzrd"
],
"languageSettings": [
// This one works with Python
{
"languageId": "python",
"includeRegExpList": [
"/#.*/",
"/('''|\"\"\")[^\\1]+?\\1/g",
"strings"
]
},
// This one works with JavaScript, Typescript, etc
{
"languageId": "javascript,typescript",
"includeRegExpList": [
"CStyleComment",
"strings"
]
},
// Use with cpp or c files
{
"languageId": "cpp,c,h",
// Turn off compound words, because it is only checking strings.
"allowCompoundWords": false,
// Only check comments and strings
//"includeRegExpList": [
// "CStyleComment",
// "string"
//],
"ignoreRegExpList": [
"/#include.*/", // Exclude includes, because they are also strings
"/#pragma.*/", // Exclude pragmas, they may include strings
"/\/\/ NOLINT\\(.*/", // Exclude clang-tidy instructions
"/\/\/\/ \\\\file.*/", // Doxygen
"/\/\/\/ \\\\addtogroup.*/", // Doxygen
"/`[^`]+`/", // Markup code formatt
"/} \/\/ namespace.*/", // Namespace comments
// Project specific exclusions start here
"/\/\/ copyright-holders.*/",
"/\/\/- Pinalias:/",
"/\/\/#.*/", // commented source code
"\/\/ Source:.*/", // generated code
"/\\$[A-z0-9][^\\s]*/", // everything starting with a $
// The following should be removed again
"/[A-z][^\\s]+::[^\\s]+/", // any namespace qualifier
"/[A-Z][A-Z][A-Z][^\\s]*/" // Identifiers starting with at least 3 capital letters
]
}
]
}
|