From 62c866e68f82d0c940c7c4ee5faff3e517b82ecd Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Mon, 15 Jan 2024 10:50:03 +0100 Subject: Update generated file detection for Sol Expand the generated file regex to allow for "This file was generated with a script." Change-Id: Iaa896d0718afca87cccd7f07a94e7a79f25d9bb4 Reviewed-by: Daniel Smith Reviewed-by: Oswald Buddenhagen --- git-hooks/sanitize-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-hooks') diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index d9b065c..c853f70 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -824,7 +824,7 @@ while () { if ($no_copyright && /Copyright/) { $no_copyright = 0; } - 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/) { + if ($check_gen && /All changes made in this file will be lost|This file (?:is|was) (?: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.3