fix(CI/Codestyle): ignore lines starting with @ (#21346)

This commit is contained in:
Kitzunu 2025-02-07 06:52:38 +01:00 committed by GitHub
parent 668864556b
commit 306f41a2d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,6 +219,10 @@ def backtick_check(file: io, file_path: str) -> None:
# Ignore comments
if line.startswith('--'):
continue
# Ignore SET variables with multiple lines
if line.startwith('@'):
continue
# Sanitize single- and doublequotes to prevent false positives
sanitized_line = quote_pattern.sub('', line)