Subject: | ProhibitQuotedWordLists does not complain about 'use Module LIST'. |
Date: | Sat, 20 Jan 2007 15:39:43 +0900 |
To: | bug-Perl-Critic [...] rt.cpan.org |
From: | "かんな (Kanna)" <kanna [...] fw.jellybean.jp> |
According to Perl::Critic::Policy::CodeLayout::ProhibitQuotedWordLists,
use Module 'a', 'b';
use Module ( 'a', 'b' );
should be written like this.
use Module qw(a b);
However, Perl-Critic-0.21 does not complain about this. It's probably
the edge case,
Show quoted text
> In the PPI parlance, a "list" is almost anything with parens. I've
> tried to make this Policy smart by targeting only "lists" that could
> be sensibly expressed with qw(). However, there may be some edge cases
> that I haven't covered. If you find one, send me a note.
so I report this as a bug. Could you fix it?