2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # DESCR: Check that path patterns in MAINTAINERS have trailing slash
9 open( my $file, "<", "MAINTAINERS" ) or die "Error: could not open file 'MAINTAINERS'\n";
11 while ( my $line = <$file> ) {
12 if ( $line =~ /^[FX]:\s+([^\s]*[^*\/\s
])\s
+$/ ) { # path patterns not ending with / or *
16 print "MAINTAINERS:$. missing trailing slash for directory match ";