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.
LGTM_INDEX_FILTERS
1 parent 59d239b commit 086e4f7Copy full SHA for 086e4f7
csharp/extractor/Semmle.Extraction.Tests/FilePathFilter.cs
@@ -165,6 +165,7 @@ public void TestFiltersWithIncludeExcludeExcludeFirst()
165
{
166
(var testSubject, var progressMonitor, var files) = TestSetup();
167
168
+ // NOTE: the ordering DOES matter, later filters takes priority, so the exclude will end up not mattering at all.
169
Environment.SetEnvironmentVariable("LGTM_INDEX_FILTERS", """
170
exclude:c/x/z
171
include:c/x
@@ -174,7 +175,8 @@ public void TestFiltersWithIncludeExcludeExcludeFirst()
174
175
176
var expected = GetExpected(
177
[
- "/a/b/c/x/y/i.cs"
178
+ "/a/b/c/x/y/i.cs",
179
+ "/a/b/c/x/z/i.cs"
180
]);
181
182
AssertFileInfoEquivalence(expected, filtered);
0 commit comments