]> git.donarmstrong.com Git - perltidy.git/commitdiff
update docs
authorSteve Hancock <perltidy@users.sourceforge.net>
Sat, 17 Aug 2024 22:14:16 +0000 (15:14 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sat, 17 Aug 2024 22:14:16 +0000 (15:14 -0700)
CHANGES.md
bin/perltidy

index f498cb2546f6176b177580d37fad7d4f3c965124..3d5053adadb47858bddee5d057431f5b419a99bc 100644 (file)
@@ -18,7 +18,8 @@
       Use -cscxl=asub to prevent this.
 
     - Include check for unused constants in --dump-unusual-variables and
-      --warn-variable-types (new issue type 'c').
+      --warn-variable-types (new issue type 'c'). Also expand checks to
+      cover variables introduced with 'use vars'.
 
     - Include signature variables in --dump-unusual-variables and
       --warn-variable-types; see git #158.
index 38ea377a6583f862c2d5e24510bb375b3a828b22..b4f8ae320a8b01d6fe1a9cb23a6562eca239c303 100755 (executable)
@@ -6078,10 +6078,16 @@ meaning:
     note          - an optional note referring to another line
 
 If there are a large number of issues it can be convenient to read the file
-into a spreadsheet. The checks are for lexical variables introduced by the
-keywords B<my>, B<state>, and B<our>, along with variables defined with
-B<use constant>.  The types of checks which are made are identified in
-the output with one of the letters B<r>, B<s>, B<p>, B<u>, and B<c> as follows:
+into a spreadsheet.
+
+The checks are made for variables introduced by the keywords B<my>, B<state>,
+and B<our>, along with variables defined with B<use vars> and B<use constant>.
+It is a good idea to also set B<use strict> in a script so that Perl itself
+can find issues with variables which appear in a script without one of these
+methods.
+
+The types of checks which are made are identified in the output with one of the
+letters B<r>, B<s>, B<p>, B<u>, and B<c> as follows:
 
 =over 4