Bug 20020: use Modern::Perl in XT scripts

Test Case:
Check the following files have been updated from
use strict;
use warnings;
to
use Modern::Perl;

author/podcorrectness.t
author/show-template-structure.pl
author/translatable-templates.t
author/valid-templates.t
find-license-problems
fix-old-fsf-address
single_quotes.t
verify-debian-docbook.t

Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Charlotte Cordwell 2018-01-18 03:32:12 +00:00 committed by Jonathan Druart
parent d10513dfc0
commit e1b4b53765
8 changed files with 8 additions and 19 deletions

View file

@ -1,7 +1,5 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Modern::Perl;
=head2 podcorrectness.t
This test file checks all perl modules in the C4 directory for POD

View file

@ -17,8 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use strict;
use warnings;
use Modern::Perl;
=head1 NAME

View file

@ -15,9 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use strict;
use warnings;
use Modern::Perl;
=head2 translate-templates.t
This test verifies that all staff and OPAC template

View file

@ -17,8 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use strict;
use warnings;
use Modern::Perl;
=head1 NAME

View file

@ -24,8 +24,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use strict;
use warnings;
use Modern::Perl;
use File::Find;

View file

@ -27,8 +27,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use strict;
use warnings;
use Modern::Perl;
use File::Basename;
use File::Copy;

View file

@ -17,8 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use warnings;
use strict;
use Modern::Perl;
use Test::More tests => 1;
use File::Find;

View file

@ -20,9 +20,7 @@
# This runs 'xmllint' (part of libxml2-utils) over each xml file that
# generates the koha-common man pages and ensures they're correct.
use strict;
use warnings;
use Modern::Perl;
use Test::More qw(no_plan);
my $doc_dir = 'debian/docs';