diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-08-20 16:19:01 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-08-21 10:33:24 +0000 |
commit | 8d06cfdf6e2c3932ec631a44cd6e1bf8091095a3 (patch) | |
tree | 2c12b4a9bd41053acd1c7686a4bfc2029ed1edeb | |
parent | 24801f60f05f013f728654d06b35616eec2ef089 (diff) |
sanitizer: exclude 3rdparty from eol-at-eof check
the eof is part of the content (and not just a git attribute, like the
eol style), so it makes no sense to enforce our style for 3rdparty.
Change-Id: I6cdfd4f3bf14ddab9e6cb2531547b97f5b96cbc8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index d9cb95c..d8cf21a 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -803,7 +803,7 @@ while (<DIFF>) { && ($file !~ /((^|\/)Makefile\b|debian[.\/]rules|\.(pbxproj|plist(\.[^.\/]+)?|def|mk|spec|changes|[xn]ib|storyboardc?|go|svg|ui[ap])(?:\.in)?$)/); $allow_2spaces = $ws_check && ($file =~ /\.md$/); $ctlkw_check = $tabs_check && $clike; - $eof_check = !$is_bin && ($file !~ /(\.plist(\.[^.\/]+)?|\.xcassets\/.*\.json)$/); # Xcode consistently forgets the trailing newline + $eof_check = !$foreign && ($file !~ /(\.plist(\.[^.\/]+)?|\.xcassets\/.*\.json)$/); # Xcode consistently forgets the trailing newline # .ts files usually contain languages other than English $spell_check = !defined($cfg{spell}) && !$foreign && ($file !~ /\.ts$/i); $apple_check = !$foreign && ($file !~ /\.ts$/i); |