Skip to content

Commit 3951eeb

Browse files
avargitster
authored andcommitted
doc lint: Perl "strict" and "warnings" in lint-gitlink.perl
Amend this script added in ab81411 (ci: validate "linkgit:" in documentation, 2016-05-04) to pass under "use strict", and add a "use warnings" for good measure. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 19bcc73 commit 3951eeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/lint-gitlink.perl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/perl
22

3+
use strict;
4+
use warnings;
35
use File::Find;
46
use Getopt::Long;
57

@@ -45,7 +47,7 @@ sub lint {
4547
report($where, $target, "no such source");
4648
next;
4749
}
48-
$real_section = grab_section($page);
50+
my $real_section = grab_section($page);
4951
if ($real_section != $section) {
5052
report($where, $target,
5153
"wrong section (should be $real_section)");

0 commit comments

Comments
 (0)