summaryrefslogtreecommitdiff
path: root/apps/codestyle
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2025-02-07 06:52:38 +0100
committerGitHub <noreply@github.com>2025-02-07 06:52:38 +0100
commit306f41a2d8808494c8232abde8f9a472be8801c2 (patch)
tree54a7e263e1c86bc12e06e23e960ca45b52554451 /apps/codestyle
parent668864556bf772ef595b58da13067b4064dfdbda (diff)
fix(CI/Codestyle): ignore lines starting with @ (#21346)
Diffstat (limited to 'apps/codestyle')
-rw-r--r--apps/codestyle/codestyle-sql.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/codestyle/codestyle-sql.py b/apps/codestyle/codestyle-sql.py
index 703607c128..912e6508be 100644
--- a/apps/codestyle/codestyle-sql.py
+++ b/apps/codestyle/codestyle-sql.py
@@ -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)