Skip to content

Commit 1d53d79

Browse files
committed
inline suppression also when not using project file
1 parent 2990cd4 commit 1d53d79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ async function runCppcheckOnFileXML(
196196
if (extraArgs.includes("--project")) {
197197
const args = [
198198
'--enable=all',
199-
'--xml',
200199
'--inline-suppr',
200+
'--xml',
201201
'--suppress=unusedFunction',
202202
'--suppress=missingInclude',
203203
'--suppress=missingIncludeSystem',
@@ -209,6 +209,7 @@ async function runCppcheckOnFileXML(
209209
} else {
210210
const args = [
211211
'--enable=all',
212+
'--inline-suppr',
212213
'--xml',
213214
'--suppress=unusedFunction',
214215
'--suppress=missingInclude',

0 commit comments

Comments
 (0)