perltidier

tweaks to Perl::Tidy to support some syntactic sugar

Description

There are a number of modules on CPAN that allow users to write their classes with a more "modern" syntax. These tools eliminate the need to shift off $self, can support type checking and offer other improvements. Unfortunately, they can break the support tools that the Perl community has come to rely on. This module attempts to work around those issues.

The module uses Perl::Tidy's "prefilter" and "postfilter" hooks to support "method" and "func" keywords, including the (possibly multi-line) parameter lists. This is quite an ugly hack, but it is the recommended method of supporting these new keywords. The resulting formatted code will leave the parameter lists untouched.

Perl::Tidy::Sweetened attempts to support the syntax outlined in the following modules, but most of the new syntax styles should work:
 * p5-mop
 * Method::Signatures::Simple
 * MooseX::Method::Signatures
 * MooseX::Declare
 * Moops
 * perl 5.20 signatures
 * Kavorka

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/Perl-Tidy-Sweetened


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install perltidier