| 1 | Source: perltidier |
| 2 | Section: perl |
| 3 | Priority: optional |
| 4 | Build-Depends: |
| 5 | debhelper-compat (= 13), |
| 6 | libmodule-build-tiny-perl, |
| 7 | libtest-differences-perl <!nocheck>, |
| 8 | libtest-most-perl <!nocheck>, |
| 9 | perl, |
| 10 | perltidy (>= 20230309) <!nocheck>, |
| 11 | Maintainer: Debian Perl Group <[email protected]> |
| 12 | Uploaders: |
| 13 | Jonas Smedegaard <[email protected]>, |
| 14 | Standards-Version: 4.6.2 |
| 15 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/perltidier.git |
| 16 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/perltidier |
| 17 | Homepage: https://metacpan.org/release/Perl-Tidy-Sweetened |
| 18 | Rules-Requires-Root: no |
| 19 | Testsuite: autopkgtest-pkg-perl |
| 20 | |
| 21 | Package: perltidier |
| 22 | Architecture: all |
| 23 | Depends: |
| 24 | perltidy (>= 20230309), |
| 25 | ${misc:Depends}, |
| 26 | ${perl:Depends}, |
| 27 | Enhances: |
| 28 | perltidy, |
| 29 | Description: tweaks to Perl::Tidy to support some syntactic sugar |
| 30 | There are a number of modules on CPAN |
| 31 | that allow users to write their classes with a more "modern" syntax. |
| 32 | These tools eliminate the need to shift off $self, |
| 33 | can support type checking |
| 34 | and offer other improvements. |
| 35 | Unfortunately, they can break the support tools |
| 36 | that the Perl community has come to rely on. |
| 37 | This module attempts to work around those issues. |
| 38 | . |
| 39 | The module uses Perl::Tidy's "prefilter" and "postfilter" hooks |
| 40 | to support "method" and "func" keywords, |
| 41 | including the (possibly multi-line) parameter lists. |
| 42 | This is quite an ugly hack, |
| 43 | but it is the recommended method of supporting these new keywords. |
| 44 | The resulting formatted code will leave the parameter lists untouched. |
| 45 | . |
| 46 | Perl::Tidy::Sweetened attempts to support the syntax |
| 47 | outlined in the following modules, |
| 48 | but most of the new syntax styles should work: |
| 49 | * p5-mop |
| 50 | * Method::Signatures::Simple |
| 51 | * MooseX::Method::Signatures |
| 52 | * MooseX::Declare |
| 53 | * Moops |
| 54 | * perl 5.20 signatures |
| 55 | * Kavorka |