https://github.com/trwyant/perl-perl-critic-policy-variables-prohibitnumericnameswithleadingzero
Don't use numeric variable names with leading zeroes.
https://github.com/trwyant/perl-perl-critic-policy-variables-prohibitnumericnameswithleadingzero
Last synced: 3 months ago
JSON representation
Don't use numeric variable names with leading zeroes.
- Host: GitHub
- URL: https://github.com/trwyant/perl-perl-critic-policy-variables-prohibitnumericnameswithleadingzero
- Owner: trwyant
- Created: 2022-07-26T00:37:05.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T12:56:49.000Z (almost 3 years ago)
- Last Synced: 2025-01-10T11:06:09.432Z (5 months ago)
- Language: Perl
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
- Contributing: CONTRIBUTING
- License: LICENSES/Artistic
Awesome Lists containing this project
README
Perl-Critic-Policy-Variables-ProhibitNumericNamesWithLeadingZero is
Copyright (C) 2022 by Thomas R. Wyant, IIIDESCRIPTION
This package contains a Perl::Critic policy to prohibit the use of numeric
variable names that start with 0, except for $0 itself.Perl::Critic is a prerequisite for this package. It is the intent that
the prerequisites of this package be those of Perl::Critic, so no extra
stuff should be needed.INSTALLATION
This package is installable by either of the two usual incantations:
tar -xzf \
Perl-Critic-Policy-Variables-ProhibitNumericNamesWithLeadingZero-9.999.tar
perl Makefile.PL
make
make test
make installor
tar -xzf \
Perl-Critic-Policy-Variables-ProhibitNumericNamesWithLeadingZero-9.999.tar
perl Build.PL
./Build
./Build test
sudo ./Build installYou should substitute the appropriate program name for 'make', eg nmake
(typically) under MSWin32, or mms or mmk under VMS. See
ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe for a copy of
nmake for MSWin32 if you need it.Of course, since it's pure Perl, you can just expand the kit and drop
the .pm file into the Perl/Critic/Policy/Variables/ directory (creating
it if necessary) in the appropriate place in your @INC directories.LICENSING INFORMATION
This package 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.