App-GitHooks
view release on metacpan or search on metacpan
lib/App/GitHooks.pm view on Meta::CPAN
=item * post-checkout
=item * post-merge
=item * pre-receive
=item * update
=item * post-receive
=item * post-update
=item * pre-auto-gc
=item * post-rewrite
=back
=cut
# List of valid git hooks.
# From https://www.kernel.org/pub/software/scm/git/docs/githooks.html
our $HOOK_NAMES =
[
qw(
applypatch-msg
commit-msg
post-applypatch
post-checkout
post-commit
post-merge
post-receive
post-rewrite
post-update
pre-applypatch
pre-auto-gc
pre-commit
pre-push
pre-rebase
pre-receive
prepare-commit-msg
update
)
];
=head1 OFFICIALLY SUPPORTED PLUGINS
=over 4
=item * L<App::GitHooks::Plugin::BlockNOCOMMIT>
Prevent committing code with #NOCOMMIT mentions.
=item * L<App::GitHooks::Plugin::BlockProductionCommits>
Prevent commits in a production environment.
=item * L<App::GitHooks::Plugin::DetectCommitNoVerify>
Find out when someone uses --no-verify and append the pre-commit checks to the
commit message.
=item * L<App::GitHooks::Plugin::ForceRegularUpdate>
Force running a specific tool at regular intervals.
=item * L<App::GitHooks::Plugin::MatchBranchTicketID>
Detect discrepancies between the ticket ID specified by the branch name and the
one in the commit message.
=item * L<App::GitHooks::Plugin::PerlCompile>
Verify that Perl files compile without errors.
=item * L<App::GitHooks::Plugin::PerlCritic>
Verify that all changes and addition to the Perl files pass PerlCritic checks.
=item * L<App::GitHooks::Plugin::PerlInterpreter>
Enforce a specific Perl interpreter on the first line of Perl files.
=item * L<App::GitHooks::Plugin::PgBouncerAuthSyntax>
Verify that the syntax of PgBouncer auth files is correct.
=item * L<App::GitHooks::Plugin::PrependTicketID>
Derive a ticket ID from the branch name and prepend it to the commit-message.
=item * L<App::GitHooks::Plugin::RequireCommitMessage>
Require a commit message.
=item * L<App::GitHooks::Plugin::RequireTicketID>
Verify that staged Ruby files compile.
=item * L<App::GitHooks::Plugin::ValidatePODFormat>
Validate POD format in Perl and POD files.
=back
=head1 CONTRIBUTED PLUGINS
=over 4
=item * L<App::GitHooks::Plugin::RubyCompile>
Verify that staged Ruby files compile.
=item * L<App::GitHooks::Plugin::PreventTrailingWhitespace>
Prevent trailing whitespace from being committed.
=back
( run in 0.918 second using v1.01-cache-2.11-cpan-99c4e6809bf )