summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-07-11 11:32:20 +0200
committerThomas Haller <thaller@redhat.com>2018-07-11 12:02:06 +0200
commit7e98b4cad2ff9934d8b5855b291c2baaa7543801 (patch)
treea3ac4fc9b8823ffba27399f2a5412d2d074d7aae
parent2b152a69c4d2c24418b73958b332361dea249f81 (diff)
downloadNetworkManager-7e98b4cad2ff9934d8b5855b291c2baaa7543801.tar.gz
checkpatch: skip foreign code
-rwxr-xr-xcontrib/scripts/checkpatch.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl
index f9ad95dda0..62507aa219 100755
--- a/contrib/scripts/checkpatch.pl
+++ b/contrib/scripts/checkpatch.pl
@@ -118,6 +118,10 @@ if ($is_file and $filename ne $ARGV) {
next unless $filename =~ /\.[ch]$/;
next if $filename =~ /\/nm-[^\/]+-enum-types\.[ch]$/;
+next if $filename =~ /\bsrc\/systemd\//
+ and not $filename =~ /\/sd-adapt\//
+ and not $filename =~ /\/nm-/;
+next if $filename =~ /\/(n-acd|c-list|c-siphash)\//;
complain ('Tabs are only allowed at the beginning of a line') if $line =~ /[^\t]\t/;
complain ('Trailing whitespace') if $line =~ /[ \t]$/;