We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 017e0f7 commit bdb17ecCopy full SHA for bdb17ec
1 file changed
src/extension.ts
@@ -195,9 +195,9 @@ async function runCppcheckOnFileXML(
195
196
// Resolve paths for arguments where applicable
197
const argsParsed = processedArgs.split(" ").map((arg) => {
198
- if (pathVariableArgs.some((a) => { arg.startsWith(a);})
199
- && looksLikePath(arg)
200
- ) {
+ const isPathArgument = pathVariableArgs.some(a => arg.startsWith(a));
+ // Some arguments such as addon may be either a path or the name of a built in addon
+ if (isPathArgument && looksLikePath(arg)) {
201
const splitArg = arg.split('=');
202
return `${splitArg[0]}=${resolvePath(splitArg[1])}`;
203
}
0 commit comments