On 02/12/2007, Patrick R. Michaud <[EMAIL PROTECTED]> wrote:
> On Sun, Dec 02, 2007 at 10:44:08AM +0100, Paul Cochrane wrote:
> > ... and I only
> > needed to switch off the warnings about a lack of C<use
> > strict/warnings>.  At present, this isn't a maintanence burden, but as
> > soon as we get lots of nqp/perl6 files we will need to rethink how we
> > handle them.  I don't think it's worth worrying about just yet.
>
> I disagree.  I think we'll quickly be accumulating a lot of Perl 6/NQP
> files, and putting the nocritic lines in all of them is a bit of
> a pain, as well as adjusting them all later.
>
> If it helps, we can start marking all such files with 'use v6;', and
> then the critic (or its driver) can use that to decide if the file
> should be checked.  Or, if that's not good enough, then I'd at least
> want to put the nocritic lines with the coda instead of at the head
> of the file (if that's even possible).

Unfortunately, putting the nocritic lines at the end of the file with
the coda doesn't work.  I think marking the files with C<use v6;>
would be really good (this syntax isn't recognised yet though, is
it?), then I could filter which files should be passed through the
relevant policies of Perl::Critic.

Paul

Reply via email to