Dist::Zilla::Plugin::Test::Perl::Critic(3pm)

Dist::Zilla::Plugin::Test::Perl::Critic3pm

Tests to check your code against best practices

Usage

In your dist.ini:

    [Test::Perl::Critic]
    critic_config = perlcritic.rc ; default / relative to project root

Version

version 3.004

Overview

This will provide a xt/author/critic.t file for use during the "test" and "release" calls of "dzil". To use this, make the changes to dist.ini above and run one of the following:

    dzil test
    dzil release

During these runs, xt/author/critic.t will use Test::Perl::Critic to run Perl::Critic against your code and by report findings.

Options

filename

The file name of the test to generate. Defaults to xt/author/critic.t.

critic_config

This plugin accepts the "critic_config" option, which s Specifies your own config file for Perl::Critic. It defaults to "perlcritic.rc", relative to the project root. If the file does not exist, Perl::Critic will use its defaults.

The option can also be configured using the "profile" alias.

verbose

If configured, overrides the "-verbose" option to Perl::Critic.

files

If specified, will be used as the list of files to check. If neither "files" "finder" is specified, Test::Perl::Critic's default behavior of checking all files will be used.

finder

Can be specified to use a file finder to select the files to check, rather than checking all files.

Support

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Test-Perl-Critic> (or [email protected] <mailto:[email protected]>).

There is also an irc channel available for users of this distribution, at "#distzilla" on "irc.perl.org" <irc://irc.perl.org/#distzilla>.

Contributors

•

Karen Etheridge <[email protected]>

•

Jérôme Quelin <[email protected]>

•

Graham Knop <[email protected]>

•

Kent Fredric <[email protected]>

•

Olivier Mengué <[email protected]>

•

Gryphon Shafer <[email protected]>

•

Stephen R. Scaffidi <[email protected]>

•

Alexander Hartmaier <[email protected]>

•

Mike Doherty <[email protected]>

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9
  3. 10–11
  4. 12
  5. 13

Author

Jerome Quelin

From libdist-zilla-plugin-test-perl-critic-perl 3.004-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.