Perl::Critic::Policy::Bangs::ProhibitDebuggingModules - Prohibit loading of debugging modules like Data::Dumper
This policy prohibits loading common debugging modules like Data::Dumper.
While such modules are incredibly useful during development and debugging, they should probably not be loaded in production use. If this policy is violated, it probably means you forgot to remove a use Data::Dumper; line that you had added when you were debugging.
use Data::Dumper;
The current list of detected debugging modules is:
Data::Dumper
Data::Printer
To add more modules that shouldn't be loaded unless you're actively debugging something, add them in .perlcriticrc using the deubgging_modules option.
deubgging_modules
This policy is part of Perl::Critic::Bangs.
Mike Doherty doherty@cpan.org
doherty@cpan.org
Copyright (c) 2012 Mike Doherty
This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
To install Perl::Critic::Bangs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Bangs
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Bangs
For more information on module installation, please visit the detailed CPAN module installation guide.