Perl::Critic::Policy::Perlsecret - Prevent perlsecrets entering your codebase
version 0.0.11
# in your .perlcriticrc [Perlsecret] # overriding things [Perlsecret] allow_secrets = Bang Bang, Venus
This policy checks for perlsecret operators in your code and warns you about them.
You can override the secrets that are allowed or disallowed using the parameters allow_secrets and disallow_secrets. The default is to simply disallow everything.
allow_secrets
disallow_secrets
Notice the secrets are capitalized correctly ("Ornate Double-Bladed Sword", not "Ornate double-bladed sword").
[Perlsecret] disallow_secrets = Flathead, Phillips, Pozidriv, Torx, Enterprise
This provides the list to disallow.
[Perlsecret] allow_secrets = Bang Bang
You can provide both, in which case it will start with the disallow list you provided as the default and then allow everything in the allow list. (There isn't much value to provide both of these.)
Lance Wicks <lancew@cpan.org>
This software is Copyright (c) 2017 by Lance Wicks.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Perl::Critic::Policy::Perlsecret, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Policy::Perlsecret
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Policy::Perlsecret
For more information on module installation, please visit the detailed CPAN module installation guide.