Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by clscott (4354) on 2008.02.11 11:32 (#61006) Journal
    When you can make it conform?

    What's the issue with the hook running the code through Perl::Tidy and then committing it instead of
    rejecting it and forcing the user to perform the task manually and hope that .perltidyrc are used by
    the developer and the hook?

    • I thought of doing that, but my little paranoid and control freak heart decided to go bouncy instead.

      I love and trust Perltidy. But, just the same, I prefer to verify that the changes it makes don't break anything. Also, in the case that a file has to be tidied outside of the scope of the initially to-be-commited changes, I want to be able to split the commit into (a) tidying the file and (b) commiting the changes.

      But that's all just personal taste. Modifying the hook to auto-tidy the commits should be tri