Name : perl-Perl-Critic-Policy-Variables-RequireHungarianNotation
| |
Version : 0.0.7
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.54
| Date : 2024-08-05 20:31:30
|
Group : Development/Libraries/Perl
| Source RPM : perl-Perl-Critic-Policy-Variables-RequireHungarianNotation-0.0.7-1.54.src.rpm
|
Size : 0.03 MB
| |
Packager : (none)
| |
Summary : Critic policy for hungarian notation
|
Description :
Don\'t let anyone guess which type you expect in your code:
my AATTarray = (); # don\'t do this my %hash = (); # or this my $hashref = {}; # or this my $arrayref = []; # or this my $string = \'\'; # or this
The policy is also running through sub declarations.
sub some_sub { my ($self, $arrayref, $string) = AATT_; ... }
Instead, do this:
my AATTa_array = (); # do this my %h_hash = (); # and this my $hr_hashref = {}; # and this my $ar_arrayref = []; # and this my $s_string = \'\'; # and this
sub some_sub { my ($self, $ar_arrayref, $s_string) = AATT_; ... }
$self as variable is excluded.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-P/openSUSE_Tumbleweed/noarch |