NAME

Test::Perl::Critic::Git - Test module to run perl critic on changed git files

VERSION

Version 0.000104

SUBROUTINES/METHODS

critic_on_changed_ok

Params:

$hr_critic_args - direct import params for Perl::Critic

$hr_git_args - direct import params for Git

critic_on_changed_ok

Run perl critic on changed files and and raises errors, or even not :-D

critic_on_changed_not_ok

Same as critic_on_changed_ok but vice versa

SYNOPSIS

eval "use Test::Perl::Critic::Git";
plan skip_all => "Test::Perl::Critic::Git required for testing perl critic" if $@;

Test::Perl::Critic::Git->import({
      -severity => 'brutal',
      -profile => File::Spec->catfile($Bin, 'critic', 'profilerc'),
      ...
});

critic_on_changed_ok([
    '.',
    ...
]);

DIAGNOSTICS

DEPENDENCIES

INCOMPATIBILITIES

BUGS AND LIMITATIONS

A list of current bugs and issues can be found at the CPAN site

https://gitlab.com/mziescha/test-perl-critic-git/issues

To report a new bug or problem, use the link on this page.

DESCRIPTION

Test module to run perl critic on changed git files

CONFIGURATION AND ENVIRONMENT

configurable by import sub

AUTHOR

Mario Zieschang, <mziescha at cpan.org>

LICENSE AND COPYRIGHT