The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Git::Hooks::PerlCritic - Perl Critic hooks for git

VERSION

version 0.001000

DESCRIPTION

Allows you to utilize Perl::Critic via git hooks using the Git::Hooks framework.

First setup git-hooks.pl

Then you should choose to use only one of the available hooks.

HOOKS

pre-commit

ln -s git-hooks.pl pre-commit
git config --add githooks.pre-commit PerlCritic

This hook will prevent a commit that doesn't pass Perl::Critic from being committed.

prepare-commit-msg

ln -s git-hooks.pl prepare-commit-msg
git config --add githooks.preprare-commit-msg PerlCritic

This hook will simply append commented out critic warnings to the commit message, so you may review them before committing. Note: requires Path::Class::File.

SEE ALSO

Git::Hooks
Perl::Critic

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/hostgator/git-hooks-perlcritic/issues or by email to development@hostgator.com.

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Caleb Cushing <xenoterracide@gmail.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2013 by HostGator.com.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)