Dist::Zilla::App::Command::critic - build your dist and run Perl::Critic on the built files.
version 0.001011
critic is an App::Command for Dist::Zilla which streamlines running Perl::Critic on your built distribution.
critic
App::Command
Dist::Zilla
Perl::Critic
This competes with the likes of [Test::Perl::Critic] by:
[Test::Perl::Critic]
not requiring the rest of the steps in the test life-cycle to execute.
not being impeded by the other tests cluttering your output.
not suffering the limitations of Test::Perl::Critic which discards profile color settings.
Test::Perl::Critic
carefully formatting output to give a clearer visualization of where failures lie.
not requiring your dist have a Test::Perl::Critic test pass for release.
not requiring your dist to have any explicit Perl::Critic consumption.
Behaviorally:
dzil critic
Behaves very similar to:
dzil run --no-build perlcritic -p perlcritic.rc lib/
Except with improved verbosity of file name reporting.
This module has little configuration at this point.
perlcritic.rc is the name of the default profile to use, and it must be in your BUILT tree to be used.
perlcritic.rc
Alternatively, IF you are using [Test::Perl::Critic] in your dist, the path specified to perlcritic.rc in that module will be used.
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::App::Command::critic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::App::Command::critic
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::App::Command::critic
For more information on module installation, please visit the detailed CPAN module installation guide.