Test::Perl::Lint - A testing module to analyze your Perl code with Perl::Lint
use Test::Perl::Lint;
all_policies_ok({
targets => ['lib', 'script/bar.pl'],
ignore_files => ['lib/Foo/Buz.pm', 'lib/Foo/Qux.pm'],
filter => ['LikePerlCritic::Stern'],
ignore_policies => ['Modules::RequireVersionVar'],
});
A testing module to analyze your Perl code with Perl::Lint.
- •
- "all_policies_ok($args:HASHREF)"
This function tests your codes whether they conform to the
policies. $args accepts following fields;
- targets (ARRAYREF)
- THIS FIELD IS ESSENTIAL.
Specify targets to test. If you specify directory as an item,
this function checks the all of files which are contained in that
directory.
- ignore_files (ARRAYREF)
- Specify files to exclude from testing target.
- filter (ARRAYREF)
- Apply Perl::Lint filters.
- ignore_policies (ARRAYREF)
- Specify policies to ignore violations.
Copyright (C) moznion.
This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
moznion <moznion@gmail.com>