GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PERL::CRITIC::POLICY::BANGS::PROHIBITCOMMENTEDOUTCODE (3)

.ds Aq ’

NAME

Perl::Critic::Policy::Bangs::ProhibitCommentedOutCode - Commented-out code is usually noise. It should be removed.

CONTENTS

AFFILIATION

This Policy is part of the Perl::Critic::Bangs distribution.

DESCRIPTION

Commented-out code is often a sign of a place where the developer is unsure of how the code should be. If historical information about the code is important, then keep it in your version control system.

CONFIGURATION

By default, this policy attempts to look for commented out code by looking for variable assignments in code as represented by the regular expression qr/\$[A-Za-z_].*=/ found in a comment. You can change that regex by specifying a value for coderegex.



  [Bangs::ProhibitCommentedOutCode]
  coderegex = \$[A-Za-z_].*=/



AUTHOR

Andrew Moore <amoore@mooresystems.com>

ACKNOWLEDGMENTS

Adapted from policies by Jeffrey Ryan Thalhammer <thaljef@cpan.org>, Based on App::Fluff by Andy Lester, <andy at petdance.com>

COPYRIGHT

Copyright (C) 2006-2011 Andy Lester and Andrew Moore

This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PERL::CRITIC::POLICY::BANGS::PROHIBITCOMMENTEDOUTCODE (3) 2011-06-20

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.