-
-
25 May 2017 04:09:31 UTC
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (10)
- Testers (1859 / 0 / 0)
- Kwalitee
Bus factor: 1- 90.62% Coverage
- License: artistic_2
- Activity
24 month- Tools
- Download (21.07KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- PPI::Cache
- PPI::Document
- Perl::Critic
- Perl::Critic::Policy
- Perl::Critic::PolicyFactory
- Perl::Critic::PolicyParameter
- Perl::Critic::TestUtils
- Perl::Critic::UserProfile
- Perl::Critic::Utils
- Perl::Critic::Violation
- Readonly
- Test::More
- Test::Perl::Critic
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Changes for version 1.12
- DOCUMENTATION
- Fixed docs on how to configure ProhibitCommentedOutCode.
Changes for version 1.11_03
- 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.
Changes for version 1.11_02
- ENHANCEMENTS
- Added Bangs::ProhibitUselessTopic to warn against constructs like:
- $_ =~ /foo/
- or my $size = -s $_;
- where the $_ is unnecessary.
- Added Bangs::ProhibitUselessTopic to warn against constructs like:
Changes for version 1.11_01
- 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.
Modules
A collection of handy Perl::Critic policiesBitwise operators are usually accidentally used instead of logical boolean operators.Commented-out code is usually noise. It should be removed.Prohibit loading of debugging modules like Data::DumperDon't use XXX, TODO, or FIXME.Know what you're going to test.Prohibit variables and subroutines with names that end in digits.Create a clone() method if you need copies of objects.Adding modifiers to a regular expression made up entirely of a variable created with qr() is usually not doing what you expect.Don't use generic variable and subroutine names.Module Install Instructions
To install Perl::Critic::Bangs, copy and paste the appropriate command in to your terminal.
cpanm Perl::Critic::Bangs
perl -MCPAN -e shell install Perl::Critic::Bangs
For more information on module installation, please visit the detailed CPAN module installation guide.