-
-
14 Sep 2007 22:09:08 UTC
- Distribution: Perl-Critic-Nits
- Module version: v1.0.0
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (3)
- Testers (2 / 0 / 0)
- Kwalitee
Bus factor: 0- 95.59% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (6.73KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Perl::Critic
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- AFFILIATION
- VERSION
- SYNOPSIS
- DESCRIPTION
- INTERFACE
- DIAGNOSTICS
- CONFIGURATION AND ENVIRONMENT
- DEPENDENCIES
- INCOMPATIBILITIES
- BUGS AND LIMITATIONS
- AUTHOR
- LICENSE AND COPYRIGHT
NAME
Perl::Critic::Policy::ValuesAndExpressions::ProhibitAccessOfPrivateData
AFFILIATION
This policy is part of Perl::Critic::Nits.
VERSION
This document describes Perl::Critic::Policy::ValuesAndExpressions::ProhibitAccessOfPrivateData version 1.0.0
SYNOPSIS
Requires that modules and scripts do not break encapsulation by directly accessing the contents of hash-based objects.
DESCRIPTION
Accessing an objects data directly breaks encapsulation and should be avoided. Example: $object->{ some_key }.
Care should be taken to only access private data via the getter and setter methods provided by the class.
INTERFACE
Stadard for a Perl::Critic::Policy.
DIAGNOSTICS
None.
CONFIGURATION AND ENVIRONMENT
This policy has no configuration options beyond the standard ones.
DEPENDENCIES
INCOMPATIBILITIES
None reported.
BUGS AND LIMITATIONS
No bugs have been reported.
False positives may be encountered if, internal to a module, the code does not use $self, $class, or $package to refer to the object it represents.
Please report any bugs or feature requests to
bug-perl-critic-nits@rt.cpan.org
, or through the web interface at http://rt.cpan.org.AUTHOR
Kent Cowgill,
<kent@c2group.net>
LICENSE AND COPYRIGHT
Copyright (c) 2007, Kent Cowgill
<kent@c2group.net>
. All rights reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
Module Install Instructions
To install Perl::Critic::Nits, copy and paste the appropriate command in to your terminal.
cpanm Perl::Critic::Nits
perl -MCPAN -e shell install Perl::Critic::Nits
For more information on module installation, please visit the detailed CPAN module installation guide.