-
-
22 Aug 2015 07:18:26 UTC
- Distribution: Perl-Critic-Policy-logicLAB-ProhibitUseLib
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (1373 / 3 / 0)
- Kwalitee
Bus factor: 1- 100.00% Coverage
- License: artistic_2
- Perl: v5.8.0
- Activity
24 month- Tools
- Download (9.36KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- NAME
- AFFILIATION
- VERSION
- DESCRIPTION
- CONFIGURATION AND ENVIRONMENT
- DEPENDENCIES AND REQUIREMENTS
- INCOMPATIBILITIES
- BUGS AND LIMITATIONS
- BUG REPORTING
- TEST AND QUALITY
- SEE ALSO
- AUTHOR
- LICENSE AND COPYRIGHT
NAME
Perl::Critic::Policy::logicLAB::ProhibitUseLib - simple policy prohibiting the use of 'use lib'
AFFILIATION
This policy is a policy in the Perl::Critic::logicLAB distribution.
VERSION
This documentation describes version 0.03
DESCRIPTION
The 'use lib' statement, hardcodes the include path to be used. This can give issues when moving modules and scripts between diverse environments.
use lib '/some/path'; #not ok use lib qw(/you/do/not/want/to/go/down/this/path /or/this); #not ok
Instead use the environment variable PERL5LIB
#bash export PERL5LIB='/some/path/some/where' #tcsh and csh setenv PERL5LIB '/some/path/some/where'
CONFIGURATION AND ENVIRONMENT
This Policy is not configurable except for the standard options.
DEPENDENCIES AND REQUIREMENTS
INCOMPATIBILITIES
This distribution has no known incompatibilities.
BUGS AND LIMITATIONS
Currently the policy has no special opinion on FindBin. It only aims to address messy, misleading, buggy and obscuring use of 'use lib'.
BUG REPORTING
Please use Requets Tracker for bug reporting:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Perl-Critic-logicLAB-ProhibitUseLib
TEST AND QUALITY
The following policies have been disabled for this distribution
See also t/perlcriticrc
TEST COVERAGE
---------------------------- ------ ------ ------ ------ ------ ------ ------ File stmt bran cond sub pod time total ---------------------------- ------ ------ ------ ------ ------ ------ ------ ...ogicLAB/ProhibitUseLib.pm 100.0 50.0 n/a 100.0 100.0 100.0 95.3 Total 100.0 50.0 n/a 100.0 100.0 100.0 95.3 ---------------------------- ------ ------ ------ ------ ------ ------ ------
SEE ALSO
AUTHOR
Jonas B. Nielsen, jonasbn
<jonasbn@cpan.org>
LICENSE AND COPYRIGHT
Copyright (c) 2009-2014 Jonas B. Nielsen. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Perl::Critic::Policy::logicLAB::ProhibitUseLib, copy and paste the appropriate command in to your terminal.
cpanm Perl::Critic::Policy::logicLAB::ProhibitUseLib
perl -MCPAN -e shell install Perl::Critic::Policy::logicLAB::ProhibitUseLib
For more information on module installation, please visit the detailed CPAN module installation guide.