From d8a1ccdc554635485b5db5358e13141f1e3b06d9 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Tue, 5 Jul 2016 17:03:11 +0100 Subject: [PATCH] scripts: add more git log capitalization checks Add API, NUMA, HW, SW, FW and VMDq to list of words to capitalize properly. Since VMDq is a bit unusual, add it as special case check so we can print an error message giving the correct way to write it. Signed-off-by: Bruce Richardson --- scripts/check-git-log.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/check-git-log.sh b/scripts/check-git-log.sh index 8a7ddbd7ca..e416aea15a 100755 --- a/scripts/check-git-log.sh +++ b/scripts/check-git-log.sh @@ -109,11 +109,14 @@ bad=$(echo "$headlines" | grep --color=always \ bad=$(echo "$headlines" | grep -E --color=always \ -e '\<(rx|tx|RX|TX)\>' \ -e '\<[pv]f\>' \ + -e '\<[hsf]w\>' \ -e '\' \ + -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ + -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ @@ -126,6 +129,12 @@ bad=$(echo "$headlines" | grep -E --color=always \ | sed 's,^,\t,') [ -z "$bad" ] || printf "Wrong headline lowercase:\n$bad\n" +# special case check for VMDq to give good error message +bad=$(echo "$headlines" | grep -E --color=always \ + -e '\<(vmdq|VMDQ)\>' \ + | sed 's,^,\t,') +[ -z "$bad" ] || printf "Wrong headline capitalization, use 'VMDq':\n$bad\n" + # check headline length (60 max) bad=$(echo "$headlines" | awk 'length>60 {print}' | -- 2.20.1