PodSpelling(通过 Perlcritic 运行)抱怨“html”,即使我已将其添加到stopwords
:
=for stopwords html
=head2 some function
Generates an index.html page.
=cut
这得到:
robert@saaz:~$ perlcritic --brutal test.pl | grep html
Check the spelling in your POD: html at line 1, column 1. See page 148 of PBP. (Severity: 1)
(我通过管道输出grep
以忽略这个最小示例中与拼写无关的其他抱怨。)
如果我将 POD 更改为使用C<index.html>
or F<index.html>
,或者将其重写为a .html file
,或者添加“index.html”作为停用词,拼写检查器会很高兴。第一个对我来说很有意义(不要检查代码片段或文件名),但我看不出“index.html”和“.html”之间的最大区别是什么。
它是否可以使用,=for stopwords index.html
因为它在空白旁边时会忽略点?不过,我只是在这里猜测。
为什么我stopword html
对“index.html”不起作用?如果我不想使用C<...>
或如何解决这个问题F<...>
?