Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Commit f48c2af

Browse files
committed
Expanding env vars in include path suppressions and path suppression (as per request in #180)
1 parent f803306 commit f48c2af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CPPCheckPlugin/SuppressionsInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ public void LoadFromFile(string suppressionsFilePath)
5959
}
6060
else if (currentGroup == "cppcheck_files")
6161
{
62-
SkippedFilesMask.Add(line);
62+
SkippedFilesMask.Add(Environment.ExpandEnvironmentVariables(line));
6363
}
6464
else if (currentGroup == "cppcheck_includes")
6565
{
66-
SkippedIncludesMask.Add(line);
66+
SkippedIncludesMask.Add(Environment.ExpandEnvironmentVariables(line));
6767
}
6868
}
6969

0 commit comments

Comments
 (0)