Improve style nit check for space after a comma

Only a small number of things that followed a comma were flagged.
This improves the thoroughness of that check.

Fixes #7345.
This commit is contained in:
Brandon Fairchild 2015-09-01 15:02:41 -04:00
parent 9f85370885
commit 0bddd25805

View file

@ -198,7 +198,7 @@ def check_rust(file_name, contents):
# get rid of attributes that do not contain =
line = re.sub('^#[A-Za-z0-9\(\)\[\]_]*?$', '', line)
match = re.search(r",[A-Za-z0-9]", line)
match = re.search(r",[^\s]", line)
if match:
yield (idx + 1, "missing space after ,")