diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-08-20 23:54:21 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2020-08-22 17:51:01 +0000 |
commit | 1e8b97074ab4710a420edf8f62ca074d51a47b40 (patch) | |
tree | fa7c6a3cc85e5818f6dcda8096fa00a93bf6e6a1 | |
parent | 14803ef10d22207bd6905eeef8861727b2d61d5e (diff) |
Sanity: Exclude also testdata_ from copyright check
https://codereview.qt-project.org/c/qt-creator/qt-creator/+/299771
added tests with directories named tests/cppmodelmanager/testdata_project1
and testdata_project2.
As these directories contain test-related header files,
they should not require copyright headers.
Change-Id: I24ba03fbbf47dddd18d8d8d1a96498ad1301ea3a
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 72797e8..c74f995 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -752,7 +752,7 @@ while (<DIFF>) { if ($file =~ /(~|\.(old|bak))$/i) { complain("Adding backup file", "backup") if ($new_file && !defined($cfg{backup})); $ws_check = 0; - } elsif ($file =~ m,^tests/.*/(perf|test)?data/,) { + } elsif ($file =~ m,^tests/.*/(perf|test)?data[/_],) { $ws_check = $eof_check = $apple_check = $no_copyright = 0; } elsif ($file =~ /\.(prl|la|pc|ilk)$/i) { complain("Adding build artifact", "generated") if ($new_file && !defined($cfg{generated})); |