Revision history for Perl-Critic-Bangs
1.14 Sun Oct 20 23:22:43 CDT 2024
====================================
[FIXES]
ProhibitFlagComments now checks for entire words, not just partial words.
The heading "BUGS" will no longer give a positive on "BUG". Thanks, Amory
Meltzer. (GH #24)
1.12 Wed May 24 22:57:31 CDT 2017
====================================
[DOCUMENTATION]
Fixed docs on how to configure ProhibitCommentedOutCode.
1.11_03 Thu Jan 12 23:14:38 CST 2017
====================================
[ENHANCEMENTS]
Removed Bangs::ProhibitUselessTopic, because it has been added to
Perl::Critic as of version 1.122 as two separate policies,
BuiltinFunctions::ProhibitUselessTopic and
RegularExpressions::ProhibitUselessTopic.
[FIXES]
GitHub issue #16: Bangs::ProhibitBitwiseOperators had default themes of
"core" and "bugs". It can't have a theme of "core" because that's for
Perl::Critic's own policies. It now has default themes of "bangs" and
"bugs". Thanks, William Braswell and Oliver Trosien.
1.11_02 Sun Nov 3 00:52:18 CDT 2013
====================================
[ENHANCEMENTS]
Added Bangs::ProhibitUselessTopic to warn against constructs like:
$_ =~ /foo/
or
my $size = -s $_;
where the $_ is unnecessary.
1.11_01 Mon Jun 24 10:09:32 CDT 2013
====================================
[ENHANCEMENTS]
The Bangs::ProhibitVagueNames and Bangs::ProhibitNumberedNames policies
have been updated in much the same way:
* They now check names of subroutines as well as variables.
* Their checks are now case-insensitive.
* They only check variables or subroutines that you declare. They will
no longer complain if you are forced to use someone else's poorly-named
variable.
NOTE: The functionality of checking subroutines is experimental. If it
causes too many problems, I may remove it, or make it its own policy.
[DOCUMENTATION]
Added more documentation about how ProhibitNumberedNames does its
matching. There was nothing in there that said that if "utf8" was an
exception that "foo_utf8" would pass cleanly.
1.10 Mon Aug 20 14:26:07 CDT 2012
====================================
[ENHANCEMENTS]
Added ProhibitDebuggingModules. Thanks to Mike Doherty for the code,
and to Breno G. de Oliveira, Joel Berger and Jeffrey Thalhammer for
helping with implementation details.
1.08 Mon Jun 20 11:56:49 CDT 2011
====================================
Official release, no changes from 1.07_02
1.07_02 Tue May 17 11:06:41 CDT 2011
====================================
[ENHANCEMENTS]
The list of bitwise operators prohibited is now:
& | ^ ~ &= |= ^=
1.07_01 Mon May 16 23:48:20 CDT 2011
====================================
As of 1.07_01, Perl::Critic::Bangs is released under Artistic License 2.0,
rather than dual-licensed with the GPL.
[ENHANCEMENTS]
Added a new policy, ProhibitBitwiseOperators. Usually when you see
a bitwise operator like | or & in a Perl program, it's a mistake that
should have been || or &&. It also checks for ^ and ~ as bitwise ops.
Thanks to Mike O'Regan.
[FIXES]
Remove use of Perl::Critic::Utils::PPIRegexp, which has been removed
from the Perl-Critic distribution, with calls to native PPI methods. This
allows P::C::Bangs to install when using perl 5.14. Thanks, Elliot Shank.
1.06 Sun May 23 00:56:49 CDT 2010
====================================
[ENHANCEMENTS]
ProhibitFlagComments now checks POD for XXXes and the like, not just
comments. Thanks to Matt Boyle.
1.04 Sat Apr 17 11:13:42 CDT 2010
====================================
[FIXED]
Fixed a problem with dereferencing a node in ProhibitRefProtoOrProto.
Thanks to Mike Hind.
1.02 Sat Mar 7 14:40:38 CST 2009
====================================
No new features.
Updated the licensing to be explicitly GPLv3 or Artistic 2.0.
Removed incorrect tests for compatibility with Perl::Critic 1.098.
1.00 Mon May 26 19:10:40 CDT 2008
====================================
Updated to work with modern Perl::Critic 1.084. Thanks to
Elliot Shank for making that happen.
[FIXES]
Fixed bug in ProhibitCommentedOutCode which prevented custom
configuration from working.
[ENHANCEMENTS]
Added utf8 to the list of exceptions in ProhibitNumberedNames.
The exceptions are also now case-insensitive.
Added ProhibitUselessRegexModifiers.pm policy switched to testing
method that Perl::Critic uses.
0.22 Sun Jul 16 22:09:10 CDT 2006
====================================
[FIXES]
$1 no longer runs afoul of ProhibitNumberedNames
0.20 Fri Jul 14 22:36:09 CDT 2006
====================================
First real working version that you'd want to install.