Przeglądaj źródła

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>
Nitin A Kamble 12 lat temu
rodzic
commit
8251685031
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      scripts/create-pull-request

+ 8 - 0
scripts/create-pull-request

@@ -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