Git::Hooks::CheckWhitespace - Git::Hooks plugin for checking whitespace errors
version 1.16.0
This Git::Hooks plugin hooks itself to the hooks below to check if the contents of files added to or modified in the repository have whitespace errors as detected by git diff --check command. If they don't, the commit/push is aborted.
git diff --check
pre-commit
update
pre-receive
ref-update
patchset-created
draft-published
To enable it you should add it to the githooks.plugin configuration option:
git config --add githooks.plugin CheckWhitespace
CheckWhitespace - Git::Hooks plugin for checking whitespace errors
There's no configuration needed or provided.
Gustavo L. de M. Chaves <gnustavo@cpan.org>
This software is copyright (c) 2017 by CPqD <www.cpqd.com.br>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Git::Hooks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Hooks
CPAN shell
perl -MCPAN -e shell install Git::Hooks
For more information on module installation, please visit the detailed CPAN module installation guide.