Skip to contentSkip to conversation

scripts: add additional git log capitalization checks

PATCH Superseded Bruce Richardson 2 participants 3 messages Jul 5, 2016 – Jul 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts: add additional git log capitalization checks

Add API, 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.

---
 scripts/check-git-log.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
scripts/check-git-log.sh +8 -0
index 7d2c7ee..1dbf592 100755
@@ -89,7 +89,9 @@ 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 '\<l[234]\>' \
+	-e ':.*\<api\>' \
 	-e ':.*\<dma\>' \
 	-e ':.*\<pci\>' \
 	-e ':.*\<mtu\>' \
@@ -106,6 +108,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}' | sed 's,^,\t,')
 [ -z "$bad" ] || printf "Headline too long:\n$bad\n"
Signature · 1 line
2.5.5
#1 lore raw

PATCH v2 1/1 scripts: add additional 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.

---
v2: add NUMA to list

---
 scripts/check-git-log.sh | 9 +++++++++
 1 file changed, 9 insertions(+)
scripts/check-git-log.sh +9 -0
index 7d2c7ee..0f2b4bc 100755
@@ -89,11 +89,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 '\<l[234]\>' \
+	-e ':.*\<api\>' \
 	-e ':.*\<dma\>' \
 	-e ':.*\<pci\>' \
 	-e ':.*\<mtu\>' \
 	-e ':.*\<mac\>' \
+	-e ':.*\<numa\>' \
 	-e ':.*\<vlan\>' \
 	-e ':.*\<rss\>' \
 	-e ':.*\<freebsd\>' \
@@ -106,6 +109,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}' | sed 's,^,\t,')
 [ -z "$bad" ] || printf "Headline too long:\n$bad\n"
Signature · 1 line
2.5.5
#2 lore raw

2016-07-05 17:03, Bruce Richardson:

Quoted 5 lines

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.

Applied, thanks