scripts: check first word of commit messages
Avoid messages starting with "It" without describing what it is talking about. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
parent
fd591c4c4e
commit
9c24780f0d
@ -114,6 +114,12 @@ bad=$(echo "$headlines" | awk 'length>60 {print}' | sed 's,^,\t,')
|
||||
bad=$(echo "$bodylines" | grep -v '^Fixes:' | awk 'length>75 {print}' | sed 's,^,\t,')
|
||||
[ -z "$bad" ] || printf "Line too long:\n$bad\n"
|
||||
|
||||
# check starting commit message with "It"
|
||||
bad=$(echo "$bodylines" | head -n1 | grep -E --color=always \
|
||||
-ie '^It ' \
|
||||
| sed 's,^,\t,')
|
||||
[ -z "$bad" ] || printf "Wrong beginning of commit message:\n$bad\n"
|
||||
|
||||
# check tags spelling
|
||||
bad=$(echo "$tags" |
|
||||
grep -v '^\(Reported\|Suggested\|Signed-off\|Acked\|Reviewed\|Tested\)-by: [^,]* <.*@.*>$' |
|
||||
|
Loading…
Reference in New Issue
Block a user