diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-04-09 15:02:46 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-11 06:36:34 (GMT) |
commit | 3951eeb6d981cf9b9109c905d773c978e6de3f0d (patch) | |
tree | 36f849a8649d9d7b576332776d4765f0e31b9941 /Documentation/lint-gitlink.perl | |
parent | 19bcc73e70e05a9d346c5d488edbb7ce2b36c40f (diff) | |
download | git-3951eeb6d981cf9b9109c905d773c978e6de3f0d.zip git-3951eeb6d981cf9b9109c905d773c978e6de3f0d.tar.gz git-3951eeb6d981cf9b9109c905d773c978e6de3f0d.tar.bz2 |
doc lint: Perl "strict" and "warnings" in lint-gitlink.perl
Amend this script added in ab81411ced (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 <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/lint-gitlink.perl')
-rwxr-xr-x | Documentation/lint-gitlink.perl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/lint-gitlink.perl b/Documentation/lint-gitlink.perl index 476cc30..3523087 100755 --- a/Documentation/lint-gitlink.perl +++ b/Documentation/lint-gitlink.perl @@ -1,5 +1,7 @@ #!/usr/bin/perl +use strict; +use warnings; use File::Find; use Getopt::Long; @@ -45,7 +47,7 @@ sub lint { report($where, $target, "no such source"); next; } - $real_section = grab_section($page); + my $real_section = grab_section($page); if ($real_section != $section) { report($where, $target, "wrong section (should be $real_section)"); |