From 306f41a2d8808494c8232abde8f9a472be8801c2 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Fri, 7 Feb 2025 06:52:38 +0100 Subject: [PATCH] fix(CI/Codestyle): ignore lines starting with @ (#21346) --- apps/codestyle/codestyle-sql.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/codestyle/codestyle-sql.py b/apps/codestyle/codestyle-sql.py index 703607c12..912e6508b 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)