From 21901ee2ac0884292cdc0cfb82d333409745dd6a Mon Sep 17 00:00:00 2001 From: davemachado Date: Sat, 10 Feb 2018 00:55:36 -0500 Subject: [PATCH] add build check for auth backticks --- build/validate_format.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/validate_format.py b/build/validate_format.py index adab0981..8869ea7e 100755 --- a/build/validate_format.py +++ b/build/validate_format.py @@ -66,8 +66,10 @@ def check_entry(line_num, segments): # END Description # START Auth # values should conform to valid options only - auth = segments[index_auth].replace('`', '') - if auth not in auth_keys: + auth = segments[index_auth] + if auth != 'No' and (not auth.startswith('`') or not auth.endswith('`')): + add_error(line_num, "auth value is not enclosed with `backticks`") + if auth.replace('`', '') not in auth_keys: add_error(line_num, "{} is not a valid Auth option".format(auth)) # END Auth # START HTTPS