Skip to content

Commit

Permalink
devtools: check prefix for libraries patches
Browse files Browse the repository at this point in the history
The convention in DPDK is to directly use library names as prefix,
without a lib/.

Signed-off-by: David Marchand <[email protected]>
  • Loading branch information
david-marchand authored and tmonjalo committed Nov 26, 2021
1 parent 779279a commit 807274d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devtools/check-git-log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ bad=$(for commit in $commits ; do
done | sed 's,^,\t,')
[ -z "$bad" ] || { printf "Wrong headline prefix:\n$bad\n" && failure=true;}

# check headline prefix for libraries
bad=$(echo "$headlines" | grep --color=always \
-e '^lib/' \
| sed 's,^,\t,')
[ -z "$bad" ] || { printf "Wrong headline prefix:\n$bad\n" && failure=true;}

# check headline label for common typos
bad=$(echo "$headlines" | grep --color=always \
-e '^example[:/]' \
Expand Down

0 comments on commit 807274d

Please sign in to comment.