mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 13:30:13 +01:00
checkpatch: skip foreign code
This commit is contained in:
parent
2b152a69c4
commit
7e98b4cad2
1 changed files with 4 additions and 0 deletions
|
|
@ -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]$/;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue