From 24bc6dfb52d1864754230088e70f7aeeb03403dd Mon Sep 17 00:00:00 2001 From: Brandon Fairchild Date: Tue, 1 Sep 2015 16:25:44 -0400 Subject: [PATCH] python/tidy.py: Ignore macros in style nit check Lines with macros were flagged as errors when checking for space after a comma. --- python/tidy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tidy.py b/python/tidy.py index 23fcde6e1d2..2b3709f1ca7 100644 --- a/python/tidy.py +++ b/python/tidy.py @@ -199,7 +199,7 @@ def check_rust(file_name, contents): line = re.sub('^#[A-Za-z0-9\(\)\[\]_]*?$', '', line) match = re.search(r",[^\s]", line) - if match: + if match and '$' not in line: yield (idx + 1, "missing space after ,") if line_is_attribute(line):