-
-
05 Jan 2017 20:45:37 UTC
- Distribution: Perl-Critic-Policy-Perlsecret
- Module version: v0.0.11
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (1)
- Testers (709 / 7 / 0)
- Kwalitee
Bus factor: 1- 89.80% Coverage
- License: gpl_3
- Perl: v5.6.1
- Activity
24 month- Tools
- Download (20.97KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Perl::Critic::Policy::Perlsecret - Prevent perlsecrets entering your codebase
VERSION
version 0.0.11
SYNOPSIS
# in your .perlcriticrc [Perlsecret] # overriding things [Perlsecret] allow_secrets = Bang Bang, Venus
DESCRIPTION
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
anddisallow_secrets
. The default is to simply disallow everything.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.)
NAME
Perl::Critic::Policy::Perlsecret - Prevent perlsecrets entering your codebase
VERSION
version 0.0.11
AUTHOR
Lance Wicks <lancew@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2017 by Lance Wicks.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
Module Install Instructions
To install Perl::Critic::Policy::Perlsecret, copy and paste the appropriate command in to your terminal.
cpanm Perl::Critic::Policy::Perlsecret
perl -MCPAN -e shell install Perl::Critic::Policy::Perlsecret
For more information on module installation, please visit the detailed CPAN module installation guide.