[Libreoffice-commits] core.git: .git-hooks/pre-commit
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed Sep 9 06:39:29 UTC 2020
.git-hooks/pre-commit | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 94e6eafefd5ca9e19e6bd5d6aa70c1f7ceaf6132
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Sep 8 16:17:49 2020 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Sep 9 08:38:50 2020 +0200
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 at libreoffice.org>
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");
More information about the Libreoffice-commits
mailing list