checkpatch: skip foreign code

This commit is contained in:
Lubomir Rintel 2018-07-11 11:32:20 +02:00 committed by Thomas Haller
parent 2b152a69c4
commit 7e98b4cad2

View file

@ -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]$/;