diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-03-24 10:02:02 +0100 |
---|---|---|
committer | jan iversen <jani@libreoffice.org> | 2017-03-24 09:41:54 +0000 |
commit | 50f3cfc1fa8a178fc93788a17e96b6e8ec236593 (patch) | |
tree | 363a447277ba84f1346bb12cd8b642a50d3b03b1 /.git-hooks | |
parent | f0593478571009139cd12bac11a9b38e51c42f96 (diff) |
git pre-commit hook: Also check swift files
Change-Id: I60c7ccd06b104c6a6ae5e7985fe8c3215f7e97d4
Reviewed-on: https://gerrit.libreoffice.org/35624
Reviewed-by: jan iversen <jani@libreoffice.org>
Tested-by: jan iversen <jani@libreoffice.org>
Diffstat (limited to '.git-hooks')
-rwxr-xr-x | .git-hooks/pre-commit | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index dc13d2a06521..4a21655e8cfe 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|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 $src_limited = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|swift|map|MK|pmk|pl|pm|sdi|sh|src|tab|ui|xcu|xml"; + my $src_full = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|swift|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|ui|xcu|xml"; my $found_bad = 0; my $filename; |