Perl::Critic::Policy::NamingConventions::ProhibitAmbiguousNames3pm
Don't use vague variable or subroutine names like 'last' or 'record'.
Affiliation
This Policy is part of the core Perl::Critic distribution.
Overview
Conway lists a collection of English words which are highly ambiguous as variable or subroutine names. For example, $last can mean previous or final.
This policy tests against a list of ambiguous words for variable names.
Configuration
The default list of forbidden words is:
abstract bases close contract last left no record right second set
This list can be changed by giving a value for "forbid" of a series of forbidden words separated by spaces.
For example, if you decide that "bases" is an OK name for variables (e.g. in bioinformatics), then put something like the following in "$HOME/.perlcriticrc":
[NamingConventions::ProhibitAmbiguousNames]forbid = last set left right no abstract contract record second close
Releases
10 releases since Debian 5.0 (Lenny); the text changed 9 times.