Search results for "module:Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros"
Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros - Write oct(755) instead of 0755.
Perl interprets numbers with leading zeros as octal. If that's what you really want, its better to use "oct" and make it obvious. $var = 041; # not ok, actually 33 $var = oct(41); # ok chmod 0644, $file; # ok by default dbmopen %database, 'foo.db', 0...
PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC
Test::Perl::Critic::Progressive - Gradually enforce coding standards.
Applying coding standards to large amounts of legacy code is a daunting task. Often times, legacy code is so non-compliant that it seems downright impossible. But, if you consistently chip away at the problem, you will eventually succeed! Test::Perl:...
THALJEF/Test-Perl-Critic-Progressive-0.03 - 27 Jul 2008 23:06:06 UTC
Perl::Critic::Policy::Plicease::ProhibitLeadingZeros - Leading zeroes are okay as the first arg to chmod, and other such reasonableness
Perl interprets numbers with leading zeros as octal. If that's what you really want, its better to use "oct" and make it obvious. However, some operations are well known as using octal such as "chmod" and "mkpath" so this policy disallows mistakes li...
PLICEASE/Perl-Critic-Plicease-0.05 - 10 Feb 2024 12:50:31 UTC
Perl::Critic::Policy::Lax::ProhibitLeadingZeros::ExceptChmod - leading zeroes are okay as the first arg to chmod
This is subclass of Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros with no changes. It once allowed leading zeroes on numbers used as args to "chmod", but in 2008 the default Perl::Critic policy became to allow leading zeroes there ...
RJBS/Perl-Critic-Lax-0.014 - 31 Dec 2022 19:02:48 UTC