We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce59d26 commit 635b919Copy full SHA for 635b919
tools/StaticAnalysis/GeneratedSdkAnalyzer/SDKGeneratedCodeVerify.ps1
@@ -196,7 +196,9 @@ try {
196
# Prevent EOL changes detected
197
git config --global core.safecrlf false
198
git config --global core.autocrlf true
199
- $diff = git diff ".\Generated"
+ # Use a single regex to ignore comments in .cs and .psd1 files
200
+ $diff = git diff ".\Generated" --ignore-matching-lines="^\s*(//|/\*.*\*/|#)"
201
+
202
if($diff -ne $null){
203
$changes = $changes.replace(" ", "`n")
204
$ExceptionList += [GeneratedSdkIssue]@{
0 commit comments