diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-09-08 16:17:49 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-09-09 08:38:50 +0200 |
commit | 94e6eafefd5ca9e19e6bd5d6aa70c1f7ceaf6132 (patch) | |
tree | bc2bb2f7e603caeb2ff6a3c63cf99655899ad911 /.git-hooks | |
parent | 1b135d95623eb455ce4e633b032ba2226a8b8c94 (diff) |
git pre-commit hook: check OOXMLIMPORT and OOXMLEXPORT...
... are used in the right place
Change-Id: I49bfe2f03e519138ae78a7462afe98932a335365
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102264
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to '.git-hooks')
-rwxr-xr-x | .git-hooks/pre-commit | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index cddc8d330b77..00a5e7cd7e67 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -85,6 +85,14 @@ sub check_whitespaces($) { bad_line("temporary debug in commit", $_, $src_limited); } + if ((/OOXMLIMPORT/) and ($filename =~ /ooxmlexport/)) + { + bad_line("OOXMLIMPORT definition used in a ooxmlexport file", $_, "cxx"); + } + if ((/OOXMLEXPORT/) and ($filename =~ /ooxmlimport/)) + { + bad_line("OOXMLEXPORT definition used in a ooxmlimport file", $_, "cxx"); + } if (/<property name="use_markup">True<\/property>/) { bad_line("use font attributes instead of use-markup", $_, "ui"); |