1Perl::Critic::Policy::BUPasenergrls::C::oCPnrrtiorthiiibcbu:it:tePCdoolmPimecerynl:t:eDBdoaOcnuugtmsCe:on:dtPear(to3ih)oinbitCommentedOutCode(3)
2
3
4
6 Perl::Critic::Policy::Bangs::ProhibitCommentedOutCode - Commented-out
7 code is usually noise. It should be removed.
8
10 This Policy is part of the Perl::Critic::Bangs distribution.
11
13 Commented-out code is often a sign of a place where the developer is
14 unsure of how the code should be. If historical information about the
15 code is important, then keep it in your version control system.
16
18 By default, this policy attempts to look for commented out code by
19 looking for variable assignments in code as represented by the regular
20 expression "qr/\$[A-Za-z_].*=/" found in a comment. You can change that
21 regex by specifying a value for "commentedcoderegex".
22
23 [Bangs::ProhibitCommentedOutCode]
24 commentedcoderegex = \$[A-Za-z_].*=/
25
27 Andrew Moore "amoore@mooresystems.com"
28
30 Adapted from policies by Jeffrey Ryan Thalhammer <thaljef@cpan.org>,
31 Based on App::Fluff by Andy Lester, "<andy at petdance.com>"
32
34 Copyright (C) 2006-2017 Andy Lester and Andrew Moore
35
36 This library is free software; you can redistribute it and/or modify it
37 under the terms of the Artistic License 2.0.
38
39
40
41perl v5.30.1 Perl::Critic2:0:2P0o-l0i1c-y3:0:Bangs::ProhibitCommentedOutCode(3)