The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Search results for "module:Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros"

Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros - Write oct(755) instead of 0755. River stage three • 133 direct dependents • 408 total dependents

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. River stage two • 7 direct dependents • 30 total dependents

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 River stage one • 1 direct dependent • 1 total dependent

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 River stage two • 6 direct dependents • 12 total dependents

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
4 results (0.05 seconds)