diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2016-03-22 21:47:00 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2016-03-29 14:12:21 +0300 |
commit | 13d133e800946d7b339f2e3bf82b36e12ef686ca (patch) | |
tree | fc9b9edc65043a9daf8df6835aea2883b96fa9ca | |
parent | 35dcccec440f79e6f86bdaa7098ed922859de94b (diff) |
Warn if sdesc contains ' '
Some sdesc erroneously contained multiple spaces between words.
-rwxr-xr-x | hint.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -207,6 +207,11 @@ def setup_hint_parse(fn): if re.search(r'\."$', value): warnings.append("sdesc ends with '.'") + # warn if sdesc contains ' ' + if key == 'sdesc': + if ' ' in value: + warnings.append("sdesc contains ' '") + # only 'ldesc' and 'message' are allowed a multi-line value if (key not in multilinevalkeys) and (len(value.splitlines()) > 1): errors.append("key %s has multi-line value" % (key)) |