[Libreoffice-commits] core.git: .git-hooks/pre-commit
Marina Latini
marina at studiostorti.com
Thu Dec 8 10:02:33 UTC 2016
.git-hooks/pre-commit | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 4f92098da726ec7afbbda54f2b21c29099b622af
Author: Marina Latini <marina at studiostorti.com>
Date: Wed Dec 7 18:46:34 2016 +0100
tdf#102784 - Enhance git pre-commit hook
This pre-commit hook prevents the commit of ui files with tooltip_markup property
Change-Id: I70d6f90fc36e782c290f35f0cc9415b9fa96495b
Signed-off-by: Marina Latini <marina at studiostorti.com>
Reviewed-on: https://gerrit.libreoffice.org/31735
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Muhammet Kara <muhammet.kara at pardus.org.tr>
Tested-by: Muhammet Kara <muhammet.kara at pardus.org.tr>
Reviewed-by: jan iversen <jani at documentfoundation.org>
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index e7b647e..dc13d2a 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -88,6 +88,10 @@ sub check_whitespaces($)
{
bad_line("use font attributes instead of use-markup", $_, $src_limited);
}
+ if (/<property name="tooltip_markup"/ )
+ {
+ bad_line("use tooltip_text instead of tooltip_markup", $_, $src_limited);
+ }
}
}
if ( $found_bad)
More information about the Libreoffice-commits
mailing list