Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2016-03-22 21:47:00 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2016-03-29 14:12:21 +0300
commit13d133e800946d7b339f2e3bf82b36e12ef686ca (patch)
treefc9b9edc65043a9daf8df6835aea2883b96fa9ca
parent35dcccec440f79e6f86bdaa7098ed922859de94b (diff)
Warn if sdesc contains ' '
Some sdesc erroneously contained multiple spaces between words.
-rwxr-xr-xhint.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/hint.py b/hint.py
index 56b6b3e..7847ae4 100755
--- a/hint.py
+++ b/hint.py
@@ -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))