批评者不接受关注代码,严重性为4:
return {
'debug' => $debug,
'identifier' => $identifier
};
我收到此错误:
# Perl::Critic found these violations in "filename.pl":
# Comma used to separate statements at line 356, column 3. See pages 68,71 of PBP. (Severity: 4)
但是这段代码没有任何评论被接受:
my $result = {
'debug' => $debug,
'identifier' => $identifier
};
return $result;
使用临时变量编写返回信息真的更好吗,或者在我构建并返回hashref时检测Comma used to separate statements
时批评错误了吗?
答案 0 :(得分:7)
我在版本1.105中发现了这个错误,它在版本1.116中消失了。它固定在那里之间。
更改日志中未提及修复,但提到了PPI更改。可能是PPI错误。