Skip to content

Commit 9e28978

Browse files
authored
fix #5: disable missing includes, fix #8: disable unused function (#13)
1 parent 809b463 commit 9e28978

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/extension.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,22 @@ async function runCppcheckOnFileXML(
198198
'--enable=all',
199199
'--xml',
200200
'--xml-version=2',
201+
'--suppress=unusedFunction',
202+
'--suppress=missingInclude',
203+
'--suppress=missingIncludeSystem',
201204
`--file-filter=${filePath.replace(/\\/g, '/')}`,
202205
standardArg,
203-
...extraArgsParsed
206+
...extraArgsParsed,
204207
].filter(Boolean);
205208
proc = cp.spawn(commandPath, args);
206209
} else {
207210
const args = [
208211
'--enable=all',
209212
'--xml',
210213
'--xml-version=2',
214+
'--suppress=unusedFunction',
215+
'--suppress=missingInclude',
216+
'--suppress=missingIncludeSystem',
211217
standardArg,
212218
...extraArgsParsed,
213219
filePath.replace(/\\/g, '/')

0 commit comments

Comments
 (0)