Skip to content

Commit

Permalink
scripts/documentation-file-ref-check: don't parse Next/ dir
Browse files Browse the repository at this point in the history
If one tries to run this script under linux-next, it would
hit lots of false-positives, due to the tree merges that
are stored under the Next/ directory.

So, add a logic to ignore it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Mauro Carvalho Chehab authored and Jonathan Corbet committed May 3, 2019
1 parent 62be257 commit fe3e4b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/documentation-file-ref-check
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ while (<IN>) {
my $f = $1;
my $ln = $2;

# On linux-next, discard the Next/ directory
next if ($f =~ m,^Next/,);

# Makefiles and scripts contain nasty expressions to parse docs
next if ($f =~ m/Makefile/ || $f =~ m/\.sh$/);

Expand Down

0 comments on commit fe3e4b9

Please sign in to comment.