From b1d341738d0902e3f71635b16d2d0f9ff63feb79 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Fri, 21 Apr 2023 11:05:29 +0200 Subject: related tdf#154946: check syntax in git pre-commit hook Change-Id: If685f69227f98b194c124af0e28307d31edabf9c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150752 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- .git-hooks/pre-commit | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.git-hooks') diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 8dc4a6b751c4..f3ea7b093895 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -98,6 +98,10 @@ sub check_whitespaces($) { bad_line("OOXMLEXPORT definition used in a ooxmlimport file", $_, "cxx"); } + if ((//)) + { + bad_line("Use /> to close toolbar:toolbaritem", $_, "xml"); + } if (/True<\/property>/) { bad_line("use font attributes instead of use-markup", $_, "ui"); -- cgit