create-pull-request: detect trailing white space
Add logic in the create-pull-request to detect and warn about the trailing white space inserted by patches. (From OE-Core rev: 3e35310db3cd6d265092724a0e542b9616aca9c5) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
fad3986ae4
commit
8251685031
|
@ -229,3 +229,11 @@ Review their content, especially the summary mail:
|
|||
When you are satisfied, you can send them with:
|
||||
send-pull-request -a -p $ODIR
|
||||
EOM
|
||||
|
||||
# Check the patches for trailing white space
|
||||
egrep -q -e "^\+.*\s+$" $ODIR/*
|
||||
if [ $? -ne 1 ]; then
|
||||
echo
|
||||
echo "WARNING: Trailing white space detected at these locations"
|
||||
egrep -nH --color -e "^\+.*\s+$" $ODIR/*
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue