++ed by:
AZAWAWI MGRIMES DICHI ADAMJS KENTNL

6 PAUSE users
3 non-PAUSE users.

Mark Grimes
and 1 contributors

Changes for version 1.05

  • Changes placeholder from comment at end of line, to munged sub/pkg name. So, instead of turning:
    • method test_method_a ($self) {
  • into
    • sub test_method_a { # SUB1
  • we now turn it into
    • sub SUB1_method_a {
  • This eliminates issues with Perl::Tidy moving that trailing comment, and attempts to preserve the length of the method name so any changes to formatting due to name length will be consistent.
  • Bug fixes and improvements to tests:
  • Bug fix: RT#106398 "long single line subs" should be handled correctly.
  • Adds (failing) test for RT#106464
  • Adds checks for creation of perltidy.ERR file as part of tests
  • Adds simpler means of specifying TODO tests
  • TODO:
  • Would like to preserve the *length* of the clauses in order to allow Perl::Tidy to format them. This could probably be done with prototypes for sub, but not sure what you do with packages.
  • [This upgrade is recommended if you are experiencing issues with "# SUB_" comments being left in your code.]

Documentation

  • perltidier - Script to execute Perl::Tidy::Sweetened cleanup
  • perltidy-sweet - Script to execute Perl::Tidy::Sweetened cleanup

Modules