-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
It would be handy if I could include a comment like the following my my code
# CPANTS use strict
# CPANTS use warnings
Or non CPANTS-specific:
# not using strict;
# not using warnings;
This would flag that there's a reason why I'm not using strict and warnings, so don't fail me on that please :-)
See the discussion on questhub for a quest to get all one's dists "CPANTS clean". Both @book and I have modules (Devel::TraceUse and Devel::Dependencies respectively) where we don't want to use strict and warnings because it will affect the behaviour of the modules.
@tobyink suggested the following:
my $cpants = q/
use strict;
use warnings;
#/;
Which I did, but now CPANTS is complaining because my declared dependencies don't match my code :-)
Which means I have to do one of:
- lie about my dependencies, which I don't like
- accept that I fail this quest (never!)
- delete the dist from CPAN (which seems drastic)
- come up with some hack like deleting the relevant entries from %INC and document that the module must be use'd first. Hacky kludge at best.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels