]> git.donarmstrong.com Git - perltidy.git/commitdiff
bump version to 20240511.04 20240511.04
authorSteve Hancock <perltidy@users.sourceforge.net>
Tue, 25 Jun 2024 15:58:43 +0000 (08:58 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Tue, 25 Jun 2024 15:58:43 +0000 (08:58 -0700)
20 files changed:
CHANGES.md
bin/perltidy
docs/ChangeLog.html
docs/Tidy.html
docs/perltidy.html
lib/Perl/Tidy.pm
lib/Perl/Tidy.pod
lib/Perl/Tidy/Debugger.pm
lib/Perl/Tidy/Diagnostics.pm
lib/Perl/Tidy/FileWriter.pm
lib/Perl/Tidy/Formatter.pm
lib/Perl/Tidy/HtmlWriter.pm
lib/Perl/Tidy/IOScalar.pm
lib/Perl/Tidy/IOScalarArray.pm
lib/Perl/Tidy/IndentationItem.pm
lib/Perl/Tidy/Logger.pm
lib/Perl/Tidy/Tokenizer.pm
lib/Perl/Tidy/VerticalAligner.pm
lib/Perl/Tidy/VerticalAligner/Alignment.pm
lib/Perl/Tidy/VerticalAligner/Line.pm

index 6f9a7fc3f1e7c8e34b33e73ef13e6379dda6ac12..5555ee03b86d738e829389ddd41bd6efd4d4fc94 100644 (file)
@@ -1,6 +1,14 @@
 # Perltidy Change Log
 
-## 2024 05 11.03
+## 2024 05 11.04
+
+    - Updates for issue git #151:
+      (1) --warn-variable-types=u is now okay if it is on the command line
+      with a named file.
+      (2) --warn-variable-exclusion-list=s now allows leading and/or
+      trailing * on variable names to allow a wildcard match. For example
+      -wvxl='*_unused' is okay.
+      (3) --dump-unusual-variables now outputs the filename.
 
     - A option was added to filter unimplemented parameters from perltidy
       configuration files, suggested in git #146.  If a line in the config
index 1756a25d35838d4ec76c5e320482e42ef181ba56..cf9a5b7c716137c6b5dc7fe50e1a6761aaa3be09 100755 (executable)
@@ -6672,7 +6672,7 @@ The perltidy binary uses the Perl::Tidy module and is installed when that module
 
 =head1 VERSION
 
-This man page documents perltidy version 20240511.03
+This man page documents perltidy version 20240511.04
 
 =head1 BUG REPORTS
 
index 2e4ab846b6e3ae8d4c7487b41c568fe1a693014e..bf99bd5c25dbdda41fb0085567ecd1985a011208 100644 (file)
@@ -1,8 +1,18 @@
 <h1>Perltidy Change Log</h1>
 
-<h2>2024 05 11.02</h2>
+<h2>2024 05 11.04</h2>
 
-<pre><code>- Fix issue git #143, extend -add-trailing-commas to apply to a list
+<pre><code>- A option was added to filter unimplemented parameters from perltidy
+  configuration files, suggested in git #146.  If a line in the config
+  file begins with three dashes followed by a parameter name
+  (rather than two), then the line will be removed if the parameter is
+  unknown. Otherwise, a dash will be removed to make the line valid.
+
+- Parameters --dump-mismatched-args (or -dma) and
+  --warn-mismatched-arg (or -wma) have been updated to catch more
+  arg count issues.
+
+- Fix issue git #143, extend -add-trailing-commas to apply to a list
   with just a fat comma.
 
 - Fix issue git #142, test failure installing on perl versions before
index 672d5c1b695c34155e10a763cc19a225ce50ff5e..12f79c0ded9f408e60f34d3c9870eae508d5affd 100644 (file)
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents Perl::Tidy version 20240511.02</p>
+<p>This man page documents Perl::Tidy version 20240511.04</p>
 
 <h1 id="LICENSE">LICENSE</h1>
 
index c85cfa862603b007c8d5d4fcf7e4d62ea90cba33..a66b214d7f2e033f0c30b88e7576dbc325c6f0bc 100644 (file)
 </li>
 </ul>
 
+</dd>
+<dt id="Skipping-a-line-with-an-unknown-parameter"><b>Skipping a line with an unknown parameter</b></dt>
+<dd>
+
+<p>Versions of perltidy greater than 20240511 have an option to filter unrecognized parameters from a perltidy command file. If a line in the file begins with <b>three dashes</b> followed by a parameter name (rather than one or two), then the line will be removed if the parameter is unknown. Otherwise, a dash will be removed to make the line valid. This option was added to allow a single command file to be used during the transition to a new version of perltidy.</p>
+
 </dd>
 <dt id="Creating-a-new-abbreviation"><b>Creating a new abbreviation</b></dt>
 <dd>
 
 <p>will process <i>somefile.pl</i> normally but issue a warning if either of the issues &#39;s&#39; or &#39;r&#39;, but not &#39;p&#39;, described above, are encountered.</p>
 
-<p>A limitation is that warnings may not be requested for unused variables, type &#39;u&#39;. The is because this would produce many needless warnings, especially when perltidy is run on small snippets of code from within an editor. So unused variables can only be found with the <b>-duv</b> option described in the previous section.</p>
+<p>The &#39;u&#39; option (unused) has a limitation: it is not allowed in a <i>.perltidyrc</i> configuration file. But it can be used on the command line provided that perltidy is operating on a named file. This rule is necessary to avoid warnings when perltidy is run on small snippets of code from within an editor.</p>
+
+<p>A companion flag, <b>--warn-variable-exclusion-list=string</b>, or <b>-wvxl=string</b>, can be used to skip warning checks for a list of variable names. A leading and/or trailing &#39;*&#39; may be placed on any of these variable names to allow a partial match. For example</p>
 
-<p>A companion flag, <b>--warn-variable-exclusion-list=string</b>, or <b>-wvxl=string</b>, can be used to skip warning checks for a list of variables. For example,</p>
+<p>For example,</p>
 
-<pre><code>   perltidy -wvt=&#39;*&#39; -wvxl=&#39;$self $class&#39;  somefile.pl</code></pre>
+<pre><code>   perltidy -wvt=&#39;*&#39; -wvxl=&#39;$self $class *_unused&#39;  somefile.pl</code></pre>
 
-<p>will do all possible checks but not report any warnings for variables <code>$self</code> and <code>$class</code>.</p>
+<p>will do all possible checks but not report any warnings for variables <code>$self</code>, <code>$class</code>, and for example <code>$value_unused</code>.</p>
 
 </dd>
 <dt id="Use---dump-mixed-call-parens-to-find-functions-called-both-with-and-without-parens"><b>Use --dump-mixed-call-parens to find functions called both with and without parens</b></dt>
 
 <ul>
 
-<li><p>This option works best for subs which unpack call args in an orderly manner near the beginning of the sub from <code>@_</code> and/or with <code>shift</code> operations. If individual elements of the @_ array are directly accessed then the number of sub args is considered indeterminate.</p>
+<li><p>This option works best for subs which unpack call args in an orderly manner near the beginning of the sub from <code>@_</code> and/or with <code>shift</code> operations. It will also work for direct access to specific elements of the @_ array. However if the coding for arg extraction is complex then the number of sub args will be considered indeterminate and a count cannot be checked.</p>
 
 </li>
 <li><p>Sub calls made without parentheses around the args are not checked.</p>
 <dt id="Use---warn-mismatched-args-to-produce-a-warning-for-function-calls-with-args-not-matching-sub-declarations"><b>Use --warn-mismatched-args to produce a warning for function calls with args not matching sub declarations</b>.</dt>
 <dd>
 
-<p>This is similar to the <b>-dump</b> parameter described above except that any mismatches are reported in the error file and otherwise formatting continues normally. Thus</p>
+<p>This is similar to the <b>-dump</b> parameter described above except that any mismatches are reported in the error file and otherwise formatting continues normally. The basic usage is</p>
 
 <pre><code>    perltidy -wma somefile.pl</code></pre>
 
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents perltidy version 20240511.02</p>
+<p>This man page documents perltidy version 20240511.04</p>
 
 <h1 id="BUG-REPORTS">BUG REPORTS</h1>
 
index c7b24bcab485c9016beee151eb883ff0788de10c..a1a5b7f261117988af89633a6c2b560f8cbde55a 100644 (file)
@@ -131,7 +131,7 @@ BEGIN {
     # then the Release version must be bumped, and it is probably past time for
     # a release anyway.
 
-    $VERSION = '20240511.03';
+    $VERSION = '20240511.04';
 } ## end BEGIN
 
 sub DESTROY {
index f909341b3088a27ee1ec4ec32eaf9762e0b84d1b..5043f83aa909cc844bd684b65aaaeafeeef7f87a 100644 (file)
@@ -469,7 +469,7 @@ The module 'Perl::Tidy' comes with a binary 'perltidy' which is installed when t
 
 =head1 VERSION
 
-This man page documents Perl::Tidy version 20240511.03
+This man page documents Perl::Tidy version 20240511.04
 
 =head1 LICENSE
 
index 5c0fb243ed81423571b62628a72014ef34e000fb..41e8a50436ebb4556f051305eb99e39fdda3c15e 100644 (file)
@@ -8,7 +8,7 @@ package Perl::Tidy::Debugger;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 use constant EMPTY_STRING => q{};
 use constant SPACE        => q{ };
index 987079d17aa951616aa54928a33efe0f12430911..ddc620586fb5557eabf141d787f9d4d0f691f570 100644 (file)
@@ -18,7 +18,7 @@ package Perl::Tidy::Diagnostics;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 use constant EMPTY_STRING => q{};
 
index e4250a2bded87219a62b978c61dd0aa3a6ea6e8b..66a5d161c4da4a46f1be18d77ac12aa437f8e99c 100644 (file)
@@ -16,7 +16,7 @@
 package Perl::Tidy::FileWriter;
 use strict;
 use warnings;
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 use constant DEVEL_MODE   => 0;
 use constant EMPTY_STRING => q{};
index 6b054b75bdc5f582b11fc847144b1ffc4da1ee0c..5f59089d6c45042f08c94416311ee7c0acc3e945 100644 (file)
@@ -76,7 +76,7 @@ use constant BACKSLASH    => q{\\};
 use Carp;
 use English    qw( -no_match_vars );
 use List::Util qw( min max first );    # min, max first are in Perl 5.8
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 # The Tokenizer will be loaded with the Formatter
 ##use Perl::Tidy::Tokenizer;    # for is_keyword()
index aa695d59bbcce609336082a91a0a3e55f09e047a..6e4a3ad7a065bbeb913779dfa7c795fd1ad44180 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::HtmlWriter;
 use strict;
 use warnings;
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 use Carp;
 use English qw( -no_match_vars );
index 628076fbd2603142c3308bdac5a51c2db8fb4dd7..3ae70c0da39f7df63d79a3530c9f4ed852c29432 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::IOScalar;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 use constant DEVEL_MODE   => 0;
 use constant EMPTY_STRING => q{};
index 1e5fed1fafa61bc7374ac2c29aededeb59dd5ada..8c7ac042761f9dff8e79d96d38a233394a8af66b 100644 (file)
@@ -14,7 +14,7 @@ package Perl::Tidy::IOScalarArray;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 use constant DEVEL_MODE => 0;
 
index 1ce26a8fa68a3e4400a622464ab1c5e53146b727..0021384768b45338b3751c053fa06e51a64c22a3 100644 (file)
@@ -9,7 +9,7 @@ package Perl::Tidy::IndentationItem;
 use strict;
 use warnings;
 
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 BEGIN {
 
index b9c9c5f8be08d0ad461778e765d0c7617fbde3f2..1aba77debe38fb7e8aeba9259b689668a49fa0ff 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::Logger;
 use strict;
 use warnings;
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 use Carp;
 use English qw( -no_match_vars );
 
index 492b636205598780f9495b06a8cedd97b2b17390..ef5ce0b3959cbbc62e0564b1c628fa3919c6374d 100644 (file)
@@ -33,7 +33,7 @@ use strict;
 use warnings;
 use English qw( -no_match_vars );
 
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 use Carp;
 
index 79236b5fcc09c86695e77a9fa2add92e35bc618a..9d04f438a31e6524ad092c90d7e8b8c02a840630 100644 (file)
@@ -5,7 +5,7 @@ use Carp;
 
 { #<<< A non-indenting brace to contain all lexical variables
 
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 use English qw( -no_match_vars );
 use Scalar::Util 'refaddr';
 use Perl::Tidy::VerticalAligner::Alignment;
index ec611fd2b426805a9a8b513386b11e5810c1b03d..7388f12f0d7116779ac52eeed01dfd742077e1d6 100644 (file)
@@ -9,7 +9,7 @@ package Perl::Tidy::VerticalAligner::Alignment;
 use strict;
 use warnings;
 
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 
 sub new {
     my ( $class, $rarg ) = @_;
index 409645791924c66487f9bbc9317f96f5d59c8e78..c5718dab2ab151cef8e1202920f2bbb82d7ccab9 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::VerticalAligner::Line;
 use strict;
 use warnings;
 
-our $VERSION = '20240511.03';
+our $VERSION = '20240511.04';
 use English qw( -no_match_vars );
 
 sub AUTOLOAD {