Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Adds support for Perl::Tidy::Sweet #9
Perl::Tidy::Sweet uses Perl::Tidy's prefilter and postfilter hooks to
This patch adds a --sweet/-s flag to both the install and pre-commit
Perl::Tidy::Sweet is added as a prereq in the Makefile.PL, as
A new test has been added that optionally runs all the tests with the
This is my contribution to May's PRC. I just happen to be the author of
Many thanks for the suggestion and the patch. I'm sorry I didn't respond - probably meant you didn't succeed with the PRC challenge for that month :-(
I have just implemented Sweetened support which you can see in action in the latest development release. It uses a slightly different mechanism than the one you proposed here. A --sweet flag would mean that Sweetened tidying would depend on each commiter installing githook-perltidy the correct way.
What I've done instead is require a .perltidyrc.sweetend file to be committed in place of the .perltidyrc file. That enforces the same behaviour across all committers. I'll let the CPAN testers do their thing for a while before I make a stable release. If you have any comments I'd be pleased to hear them.