NAME
var-names-with-leading-zero - Find unused variables in Perl code
SYNOPSIS
var-names-with-leading-zero .
var-names-with-leading-zero lib/
var-names-with-leading-zero --help
var-names-with-leading-zero --version
OPTIONS
The following options are accepted by this script. They are documented with leading double dashes, but single dashes are accepted, as are unique abbreviations.
--dump
--dump
This unsupported Boolean option causes a dump of variables and their declarations to STDERR.
This option and its effects can be changed or retracted without notice.
--format
--format 5
This option specifies the perlcritic format to use for output. This corresponds to the perlcritic --verbose option, takes the same values, and has the same default.
--help
This option displays the documentation for this script. The script then exits.
--trace
--trace '$foo %bar'
This unsupported option causes all definitions and uses of the given variables to be displayed to STDERR. Multiple variables are space-separated. True sigils are used -- that is, $foo refers only to the scalar.
This option and its effects may be changed or retracted without notice.
--verbose
If this Boolean option is asserted, files that have no violations are displayed as 'OK'. If not, files having no violations produce no output.
--version
This option displays the version of this script. The script then exits.
DESCRIPTION
This Perl script wraps the rogue Perl::Critic policy Variables::ProhibitNumericNamesWithLeadingZero. This is a variant of Variables::ProhibitUnusedVariables that actually has some teeth.
If no arguments are passed, the contents of the MANIFEST are scanned -- at least, those which appear to be Perl files.
If an argument is passed which is not a file name, it is assumed to be code to critique.
AUTHOR
Thomas R. Wyant, III wyant at cpan dot org
COPYRIGHT
Copyright (C) 2022 by Thomas R. Wyant, III
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.