diff options
author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2025-02-07 06:52:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-07 06:52:38 +0100 |
commit | 306f41a2d8808494c8232abde8f9a472be8801c2 (patch) | |
tree | 54a7e263e1c86bc12e06e23e960ca45b52554451 /apps/codestyle | |
parent | 668864556bf772ef595b58da13067b4064dfdbda (diff) |
fix(CI/Codestyle): ignore lines starting with @ (#21346)
Diffstat (limited to 'apps/codestyle')
-rw-r--r-- | apps/codestyle/codestyle-sql.py | 4 |
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) |