Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 0d9f745

Browse files
committed
Ignore VB generated files
Updated the designer / generated file filter to understand VB files as well.
1 parent ccd9017 commit 0d9f745

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Microsoft.DotNet.CodeFormatting/Filters/IgnoreGeneratedFilesFilter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public bool ShouldBeProcessed(Document document)
2020
}
2121

2222
if (document.FilePath.EndsWith(".Designer.cs", StringComparison.OrdinalIgnoreCase) ||
23-
document.FilePath.EndsWith(".Generated.cs", StringComparison.OrdinalIgnoreCase))
23+
document.FilePath.EndsWith(".Generated.cs", StringComparison.OrdinalIgnoreCase) ||
24+
if (document.FilePath.EndsWith(".Designer.vb", StringComparison.OrdinalIgnoreCase) ||
25+
document.FilePath.EndsWith(".Generated.vb", StringComparison.OrdinalIgnoreCase))
2426
{
2527
return false;
2628
}

0 commit comments

Comments
 (0)