Skip Menu |

This queue is for tickets about the Perl-Critic-Bangs CPAN distribution.

Report information
The Basics
Id: 79020
Status: resolved
Priority: 0/
Queue: Perl-Critic-Bangs

People
Owner: Nobody in particular
Requestors: PETDANCE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Add a policy for detecting debug modules
I can't tell you how many times I've used Data::Dumper to debug something, but then forgotten a "use Data::Dumper". It leaves my program using debug tools that it never uses. Add a policy for detecting leftover debug tools. It should check for Data::Dumper, certainly, but there should be configurations on which modules it should check for.
On Thu Aug 16 10:56:32 2012, PETDANCE wrote: Show quoted text
> I can't tell you how many times I've used Data::Dumper to debug > something, but then forgotten a "use Data::Dumper". It leaves my > program using debug tools that it never uses. > > Add a policy for detecting leftover debug tools. It should check for > Data::Dumper, certainly, but there should be configurations on which > modules it should check for.
This looked like an interesting problem, so I did it: https://github.com/petdance/perl-critic-bangs/pull/4
This has been added in Perl::Critic::Bangs 1.10.