Debian Codegraph @

README

raw
1 NAME
2 Perl::Tidy::Sweetened - Tweaks to Perl::Tidy to support some syntactic
3 sugar
4
5 VERSION
6 version 1.20
7
8 STATUS
9 DESCRIPTION
10 There are a number of modules on CPAN that allow users to write their
11 classes with a more "modern" syntax. These tools eliminate the need to
12 shift off $self, can support type checking and offer other improvements.
13 Unfortunately, they can break the support tools that the Perl community
14 has come to rely on. This module attempts to work around those issues.
15
16 The module uses Perl::Tidy's "prefilter" and "postfilter" hooks to
17 support "method" and "func" keywords, including the (possibly
18 multi-line) parameter lists. This is quite an ugly hack, but it is the
19 recommended method of supporting these new keywords (see the 2010-12-17
20 entry in the Perl::Tidy CHANGES
21 <https://metacpan.org/source/SHANCOCK/Perl-Tidy-20120714/CHANGES> file).
22 The resulting formatted code will leave the parameter lists untouched.
23
24 "Perl::Tidy::Sweetened" attempts to support the syntax outlined in the
25 following modules, but most of the new syntax styles should work:
26
27 * p5-mop
28
29 * Method::Signatures::Simple
30
31 * MooseX::Method::Signatures
32
33 * MooseX::Declare
34
35 * Moops
36
37 * perl 5.20 signatures
38
39 * Kavorka
40
41 THANKS
42 The idea and much of original code taken from Jonathan Swartz' blog
43 <http://www.openswartz.com/2010/12/19/perltidy-and-method-happy-together
44 />.
45
46 SEE ALSO
47 Perl::Tidy
48
49 AUTHOR
50 Mark Grimes <[email protected]>
51
52 SOURCE
53 Source repository is at
54 <https://github.com/mvgrimes/Perl-Tidy-Sweetened>.
55
56 BUGS
57 Please report any bugs or feature requests on the bugtracker website
58 <https://github.com/mvgrimes/Perl-Tidy-Sweetened/issues>
59
60 When submitting a bug or request, please include a test-file or a patch
61 to an existing test-file that illustrates the bug or desired feature.
62
63 COPYRIGHT AND LICENSE
64 This software is copyright (c) 2023 by Mark Grimes <[email protected]>.
65
66 This is free software; you can redistribute it and/or modify it under
67 the same terms as the Perl 5 programming language system itself.
68