Check Description not exceeding 100 characters

This commit is contained in:
davemachado committed 2018-02-12 21:43:45 -05:00
1 parent 05c570399c
commit a8537c7e85
2 files changed
+7 -4

No files matched your search

+3
View File
@@ -63,6 +63,9 @@ def check_entry(line_num, segments):
char = segments[index_desc][-1]
if char in punctuation:
add_error(line_num, "description should not end with {}".format(char))
desc_length = len(segments[index_desc])
if desc_length > 100:
add_error(line_num, "description should not exceed 100 characters (currently {})".format(desc_length))
# END Description
# START Auth
# values should conform to valid options only