perl-critic
How do I make Perl::Critic show the offending policy in its output?
I\'ve been told it\'s possible to have Perl::Critic show the policy name that is offending in its output. But I can\'t recall what I have to do to turn this on. How ca开发者_运维问答n this be enabled[详细]
2023-03-19 06:33 分类:问答Where is $_ being modified in this perl code?
The following perl code generates a warning in PerlCritic (by Activestate): sub natural_sort { my @sorted;[详细]
2023-03-02 19:07 分类:问答Why should I use <ARGV> or <> instead of <STDIN> in Perl?
Quoting from Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin Perl has a useful magic filehandle called *ARGV that checks the command line and if there are any arguments, opens and reads tho[详细]
2023-01-16 14:27 分类:问答Critiquing PHP-code / PerlCritic for PHP?
I\'m looking for an equivalent of PerlCritic for PHP. PerlCritc is a static source code analyzer that qritiques code and warns about everything from unused variables, to unsafe ways to handle data to[详细]
2022-12-22 14:13 分类:问答Why doesn't 'opendir' have the same policy as 'open' in Perl Best Practices?
Is there a reaso开发者_Python百科n why opendir doesn\'t have the same policy than open in Perl Best Practices?[详细]
2022-12-15 07:18 分类:问答Is there anything like PPI or Perl::Critic for C?
PPI and Perl::Critic allow programmers to detect certain things in the syntax of their Perl programs.[详细]
2022-12-14 19:35 分类:问答Do I need to trap errors in my calls to Win32::OLE->LastError?
[EDIT] - with the benefit of hindsight, this question was misdirected. I have not deleted it because it is a good example of the incorrect use of eval and correct criticism by Perl::Critic.[详细]
2022-12-08 11:13 分类:问答How can I avoid Perl::Critic warnings when I process a multi-line string with a filehandle?
Does anyone have a solution to the task of processing a multi-line string one line at a time, othe开发者_StackOverflowr than the string-as-a-filehandle solution shown below?[详细]
2022-12-08 07:28 分类:问答