浏览代码

add build check for auth backticks

pull/614/head
davemachado 6 年前
父节点
当前提交
21901ee2ac
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      build/validate_format.py

+ 4
- 2
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


正在加载...
取消
保存