1App::GitHooks::Hook::PrUesCeormmCiotn(t3r)ibuted Perl DoAcpupm:e:nGtiattHiooonks::Hook::PreCommit(3)
2
3
4

NAME

6       App::GitHooks::Hook::PreCommit - Handler for pre-commit hook.
7

VERSION

9       Version 1.9.0
10

METHODS

12   run()
13       Run the hook handler and return an exit status to pass to git.
14
15               my $exit_status = App::GitHooks::Hook::PreCommit->run(
16                       app => $app,
17               );
18
19       Arguments:
20
21       •   app (mandatory)
22
23           An App::GitHooks object.
24
25   run_all_tests()
26       Run all the tests available for the pre-commit hook and return whether
27       issues were detected.
28
29               my $tests_success = run_all_tests( $app );
30
31       This is a two step operation:
32
33       1. We load all the plugins that support "pre-commit", and run them to
34       analyze the overall pre-commit operation.
35       2. Each staged file is loaded and we run plugins that support "pre-
36       commit-file" on each one.
37

BUGS

39       Please report any bugs or feature requests through the web interface at
40       <https://github.com/guillaumeaubert/App-GitHooks/issues/new>.  I will
41       be notified, and then you'll automatically be notified of progress on
42       your bug as I make changes.
43

SUPPORT

45       You can find documentation for this module with the perldoc command.
46
47               perldoc App::GitHooks::Hook::PreCommit
48
49       You can also look for information at:
50
51       •   GitHub's request tracker
52
53           <https://github.com/guillaumeaubert/App-GitHooks/issues>
54
55       •   AnnoCPAN: Annotated CPAN documentation
56
57           <http://annocpan.org/dist/app-githooks>
58
59       •   CPAN Ratings
60
61           <http://cpanratings.perl.org/d/app-githooks>
62
63       •   MetaCPAN
64
65           <https://metacpan.org/release/App-GitHooks>
66

AUTHOR

68       Guillaume Aubert <https://metacpan.org/author/AUBERTG>, "<aubertg at
69       cpan.org>".
70
72       Copyright 2013-2017 Guillaume Aubert.
73
74       This code is free software; you can redistribute it and/or modify it
75       under the same terms as Perl 5 itself.
76
77       This program is distributed in the hope that it will be useful, but
78       WITHOUT ANY WARRANTY; without even the implied warranty of
79       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE
80       file for more details.
81
82
83
84perl v5.34.0                      2021-07-22 App::GitHooks::Hook::PreCommit(3)
Impressum