mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(CI/Codestyle): ignore lines starting with @ (#21346)
This commit is contained in:
@@ -220,6 +220,10 @@ def backtick_check(file: io, file_path: str) -> None:
|
|||||||
if line.startswith('--'):
|
if line.startswith('--'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Ignore SET variables with multiple lines
|
||||||
|
if line.startwith('@'):
|
||||||
|
continue
|
||||||
|
|
||||||
# Sanitize single- and doublequotes to prevent false positives
|
# Sanitize single- and doublequotes to prevent false positives
|
||||||
sanitized_line = quote_pattern.sub('', line)
|
sanitized_line = quote_pattern.sub('', line)
|
||||||
matches = pattern.findall(sanitized_line)
|
matches = pattern.findall(sanitized_line)
|
||||||
|
|||||||
Reference in New Issue
Block a user