X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=t%2F00-testcritic.t;h=8a7f5d2e5f9fbc35788637e34d610ab61a29eb3f;hb=7bdbea041767393991dab2f6fa7a9065d97c79f1;hp=caa95d6c27b9253794a0a21a79ec14d3e0109abf;hpb=b93e6df3a1b7051bc92220cf6bd829c2229bfa70;p=koha.git diff --git a/t/00-testcritic.t b/t/00-testcritic.t index caa95d6c27..8a7f5d2e5f 100755 --- a/t/00-testcritic.t +++ b/t/00-testcritic.t @@ -1,6 +1,4 @@ #!/usr/bin/env perl -use strict; -use warnings; # This script can be used to run perlcritic on perl files in koha # It calls its own custom perlcriticrc @@ -8,16 +6,33 @@ use warnings; # and the environment variable TEST_QA to be set # At present only the directories in @dirs will pass the tests in 'Gentle' mode +use Modern::Perl; use File::Spec; use Test::More; use English qw(-no_match_vars); -my @all_koha_dirs = qw( acqui admin authorities basket C4 catalogue cataloguing circ debian errors -labels members misc offline_circ opac patroncards reports reserve reviews rotating_collections -serials sms suggestion t tags test tools virtualshelves Koha); - -my @dirs = qw( acqui admin authorities basket catalogue cataloguing circ debian errors labels - members offline_circ reserve reviews rotating_collections serials sms virtualshelves Koha C4/SIP); +my @dirs = qw( + acqui + admin + authorities + basket + catalogue + cataloguing + circ + debian + errors + labels + members + offline_circ + reserve + reviews + rotating_collections + serials + sms + virtualshelves + Koha + C4/SIP +); if ( not $ENV{TEST_QA} ) { my $msg = 'Author test. Set $ENV{TEST_QA} to a true value to run';