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
375487cd
Commit
375487cd
authored
Jul 10, 2017
by
Dave Machado
Browse files
Check Description for capitalization
parent
2e6d999b
Changes
1
Show whitespace changes
Inline
Side-by-side
build/validate.rb
View file @
375487cd
...
...
@@ -16,6 +16,13 @@ File.foreach(filename).with_index do |line, line_num|
end
values
=
line
.
split
(
"|"
)
# Check Description to make sure first character is capitalized
desc_val
=
values
[
2
].
lstrip
.
chop
if
!
/[[:upper:]]/
.
match
(
desc_val
[
0
])
puts
"(
#{
line_num
}
) Invalid Description (first char not uppercase):
#{
desc_val
}
"
fail_flag
=
true
end
# Check Auth values to conform to valid options only
auth_val
=
values
[
3
].
lstrip
.
chop
.
tr
(
'``'
,
''
)
if
!
auth_keys
.
include?
(
auth_val
)
...
...
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