| 1 | use strictscip-perl cpan Perl-Tidy-Sweetened 1.20 strict/; |
| 2 | use warningsscip-perl cpan Perl-Tidy-Sweetened 1.20 warnings/; |
| 3 | use Test::Morescip-perl cpan Perl-Tidy-Sweetened 1.20 Test/More/; |
| 4 | use File::Specscip-perl cpan Perl-Tidy-Sweetened 1.20 File/Spec/; |
| 5 | |
| 6 | # plan( skip_all => 'Author test. Set TEST_AUTHOR to a true value to run.' ) |
| 7 | # unless $ENV{TEST_AUTHOR}; |
| 8 | |
| 9 | eval { requirescip-perl cpan Perl-Tidy-Sweetened 1.20 main/require(). Test::Perl::Critic; }; |
| 10 | planscip-perl cpan Perl-Tidy-Sweetened 1.20 main/plan().( skip_all => ' Test::Perl::Critic required to criticise code ' ) if $@scip-perl cpan Perl-Tidy-Sweetened 1.20 main/`$@`.; |
| 11 | |
| 12 | my $rcfile = File::Spec->catfilescip-perl cpan Perl-Tidy-Sweetened 1.20 File/Spec/catfile().( 'xt', 'perlcriticrc' ); |
| 13 | Test::Perl::Critic->importscip-perl cpan Perl-Tidy-Sweetened 1.20 Test/Perl/Critic/import().( -profile => $rcfile, -severity => 3 ); |
| 14 | all_critic_okscip-perl cpan Perl-Tidy-Sweetened 1.20 main/all_critic_ok().(); |
| 15 |