Perl::Critic::Policy::Perlsecret - Prevent perlsecrets entering your codebase
# in your .perlcriticrc
# overriding things
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.
Notice the secrets are capitalized correctly ("Ornate Double-Bladed Sword", not "Ornate double-bladed sword").
disallow_secrets = Flathead, Phillips, Pozidriv, Torx, Enterprise
This provides the list to disallow.
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 <firstname.lastname@example.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.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.