Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
21901ee2
Commit
21901ee2
authored
Feb 10, 2018
by
davemachado
Browse files
add build check for auth backticks
parent
424566a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/validate_format.py
View file @
21901ee2
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment