in reply to Re^5: On being 'critical'
in thread On being 'critical'
As to using Perl::Critic to enforce something, it's up to you (or to the company). Perl::Critic is a tool: it tells you if you appear to violate rules in PBP, at different levels of bothering. If the company chooses PBP as coding standards (which you could consider "bad coding standards", but that's another topic), then Perl::Critic can be a helpful tool in developer's hands to understand the adherence to the coding standards. At this point, if you look for a workaround instead of fixing the warning in the proper way... you're simply breaking the rules.
IMHO, Perl::Critic is quite similar to using warnings. I think that working with warnings on is good, but it's software checking compliance to a certain set of basic coding standards (like avoiding implicit usage of package variables, dereferencing strings, avoiding to initialise variables before using them, etc.). And, again, it's a tool: you can benefit from warnings, and decide to keep some fuzzyness in certain places disabling them (or deciding to explicitly ignore them).
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: On being 'critical'
by sauoq (Abbot) on Dec 20, 2006 at 21:14 UTC | |
by polettix (Vicar) on Dec 21, 2006 at 00:42 UTC | |
by sauoq (Abbot) on Dec 21, 2006 at 18:16 UTC | |
by polettix (Vicar) on Dec 22, 2006 at 09:52 UTC |