| 1 | Source: libperl-critic-policy-plicease-prohibitarrayassignaref-perl |
| 2 | Maintainer: Debian Perl Group <[email protected]> |
| 3 | Uploaders: gregor herrmann <[email protected]> |
| 4 | Section: perl |
| 5 | Testsuite: autopkgtest-pkg-perl |
| 6 | Priority: optional |
| 7 | Build-Depends: debhelper-compat (= 13) |
| 8 | Build-Depends-Indep: libperl-critic-perl <!nocheck>, |
| 9 | libtest-simple-perl <!nocheck>, |
| 10 | perl |
| 11 | Standards-Version: 4.7.2 |
| 12 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libperl-critic-policy-plicease-prohibitarrayassignaref-perl |
| 13 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libperl-critic-policy-plicease-prohibitarrayassignaref-perl.git |
| 14 | Homepage: https://metacpan.org/release/Perl-Critic-Policy-Plicease-ProhibitArrayAssignAref |
| 15 | Rules-Requires-Root: no |
| 16 | |
| 17 | Package: libperl-critic-policy-plicease-prohibitarrayassignaref-perl |
| 18 | Architecture: all |
| 19 | Depends: ${misc:Depends}, |
| 20 | ${perl:Depends}, |
| 21 | libperl-critic-perl |
| 22 | Description: Perl::Critic policy about not assigning an anonymous arrayref to an array |
| 23 | The Perl::Critic::Policy::Plicease::ProhibitArrayAssignAref policy is a fork |
| 24 | of Perl::Critic::Policy::ValuesAndExpressions::ProhibitArrayAssignAref. It |
| 25 | differs from the original by not having a dependency on List::MoreUtils. |
| 26 | . |
| 27 | It asks you not to assign an anonymous arrayref to an array |
| 28 | . |
| 29 | @array = [ 1, 2, 3 ]; # bad |
| 30 | . |
| 31 | The idea is that it's rather unclear whether an arrayref is intended, or |
| 32 | might have meant to be a list like |
| 33 | . |
| 34 | @array = ( 1, 2, 3 ); |