summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-07-11 09:24:11 +0200
committerThomas Haller <thaller@redhat.com>2018-07-11 12:02:06 +0200
commita9d81031f4d52b702888052e06385a082c3b0d20 (patch)
tree08e7ba1a4e5a9d752a58ce62f1fdb9272e351a0f
parent2d28d5d5d46d9830bea58727c03681baeee7feb8 (diff)
downloadNetworkManager-a9d81031f4d52b702888052e06385a082c3b0d20.tar.gz
checkpatch: skip over generated files from glib-mkenums
-rwxr-xr-xcontrib/scripts/checkpatch.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl
index 2556445ce3..6b1e766fc6 100755
--- a/contrib/scripts/checkpatch.pl
+++ b/contrib/scripts/checkpatch.pl
@@ -116,6 +116,7 @@ if ($is_file and $filename ne $ARGV) {
}
next unless $filename =~ /\.[ch]$/;
+next if $filename =~ /\/nm-[^\/]+-enum-types\.[ch]$/;
complain ('Tabs are only allowed at the beginning of a line') if $line =~ /[^\t]\t/;
complain ('Trailing whitespace') if $line =~ /[ \t]$/;