diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-26 12:57:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-26 12:58:56 +0100 |
commit | d21eb6bc91748c62ed0790c8330ce242411aacbc (patch) | |
tree | 2d4c5c91a6d1339996abec0b7b253468afd027d3 /.git-hooks | |
parent | fe347327a44f2d8ed201f9fbc2ae4858f34962d8 (diff) |
add hook to block use of markup in .ui files
Change-Id: Ia7eed5e9e1f8fba9876730e909461dabc167deb9
Diffstat (limited to '.git-hooks')
-rwxr-xr-x | .git-hooks/pre-commit | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 5b752a307a11..fdd07ad94603 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -14,8 +14,8 @@ $ENV{LC_ALL} = "C"; sub check_whitespaces($) { my ($h) = @_; - my $src_limited = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|MK|pmk|pl|pm|sdi|sh|src|tab|xcu|xml"; - my $src_full = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|xcu|xml"; + my $src_limited = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|MK|pmk|pl|pm|sdi|sh|src|tab|ui|xcu|xml"; + my $src_full = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|ui|xcu|xml"; my $found_bad = 0; my $filename; @@ -80,6 +80,10 @@ sub check_whitespaces($) { bad_line("temporary debug in commit", $_, $src_limited); } + if (/<property name="use_markup">True<\/property>/) + { + bad_line("use font attributes instead of use-markup", $_, $src_limited); + } } } if ( $found_bad) |