diff options
author | Daniel Smith <daniel.smith@qt.io> | 2024-01-15 10:50:03 +0100 |
---|---|---|
committer | Daniel Smith <Daniel.Smith@qt.io> | 2024-01-16 12:06:15 +0000 |
commit | 62c866e68f82d0c940c7c4ee5faff3e517b82ecd (patch) | |
tree | d74fb7c3b449b747589f6f9a593aff0ffbd7f05a | |
parent | 4b98048d3d3b1eba3d76622b4341aacca94a1d19 (diff) |
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 <Daniel.Smith@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 1 insertions, 1 deletions
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 (<DIFF>) { 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; |