From 5b67e2170573358511acbcfa36e18601ef7ff16a Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Thu, 1 Dec 2022 11:49:01 +0100 Subject: Add additional language to autogenerated file detection Fixes: QTQAINFRA-5306 Change-Id: I9a43bb402f001ea72c58098e3154744e16438c76 Reviewed-by: Oswald Buddenhagen Reviewed-by: Edward Welbourne --- git-hooks/sanitize-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 98741c9..fc27be4 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -771,7 +771,7 @@ while () { if ($no_copyright && /Copyright/) { $no_copyright = 0; } - if ($check_gen && /All changes made in this file will be lost|This file is automatically generated|DO NOT EDIT|DO NOT delete this file|[Gg]enerated by|uicgenerated|produced by gperf|made by GNU Bison/) { + if ($check_gen && /All changes made in this file will be lost|This file is auto(?:matically )?generated|DO NOT (?:EDIT|CHANGE)|DO NOT delete this file|[Gg]enerated by|uicgenerated|produced by gperf|made by GNU Bison/) { complain("Adding generated file (inferred from line ".($lineno + 1).")", "generated") if ($new_file && !defined($cfg{generated})); $ws_check = 0; -- cgit v1.2.1