瀏覽代碼

Check Description for capitalization

pull/385/head
Dave Machado 6 年之前
父節點
當前提交
375487cd8f
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. +7
    -0
      build/validate.rb

+ 7
- 0
build/validate.rb 查看文件

@@ -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)


Loading…
取消
儲存