]> git.donarmstrong.com Git - perltidy.git/commitdiff
update to v20230701 20230701
authorSteve Hancock <perltidy@users.sourceforge.net>
Fri, 30 Jun 2023 22:38:02 +0000 (15:38 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Fri, 30 Jun 2023 22:38:02 +0000 (15:38 -0700)
26 files changed:
CHANGES.md
bin/perltidy
docs/ChangeLog.html
docs/Tidy.html
docs/ci_update.md
docs/perltidy.html
lib/Perl/Tidy.pm
lib/Perl/Tidy.pod
lib/Perl/Tidy/Debugger.pm
lib/Perl/Tidy/DevNull.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/LineBuffer.pm
lib/Perl/Tidy/LineSink.pm
lib/Perl/Tidy/LineSource.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
local-docs/Release-Checklist.md

index 95d201b7722cba50e390922f7a9e94c57d226a58..d6b7c5038ed46a505a390f575cb14ad71f09c532 100644 (file)
@@ -1,18 +1,11 @@
 # Perltidy Change Log
 
-## 2023 03 09.04
-
-    - Add parameter -ipc, or --ignore-perlcritic-comments.  Perltidy, by
-      default, will look for side comments beginning with ``## no critic`` and
-      ignore their lengths when making line break decisions, even if the user
-      has not set ``-iscl``.  The reason is that an unwanted line break can
-      make these special comments ineffective in controlling ``perlcritic``.
-      The parameter -ipc can be set if, for some reason, this is not wanted.
+## 2023 07 01
 
     - Issue git #121. Added parameters -xbt, or --extended-block-tightness,
       and -xbtl=s, or --extended-block-tightness-list=s, to allow
       certain small code blocks to have internal spacing controlled by
-      -bbt=n instead of -bt=n. The man pages have details.
+      -bbt=n rather than -bt=n. The man pages have details.
 
     - Issue git #118. A warning will be issued if a duplicate format-skipping
       starting marker is seen within a format-skipping section. The same
       --dump-block-summary on a file without any subs or other
       selected block types.
 
-    - Some rare, minor issues with continuation indentation have been fixed.
+    - Add parameter -ipc, or --ignore-perlcritic-comments.  Perltidy, by
+      default, will look for side comments beginning with ``## no critic`` and
+      ignore their lengths when making line break decisions, even if the user
+      has not set ``-iscl``.  The reason is that an unwanted line break can
+      make these special comments ineffective in controlling ``perlcritic``.
+      The parameter -ipc can be set if, for some reason, this is not wanted.
+
+    - Some minor issues with continuation indentation have been fixed.
       Most scripts will remain unchanged.  The main change is that block
       comments which occur just before a closing brace, bracket or paren
       now have an indentation which is independent of the existance of
       an optional comma or semicolon.  Previously, adding or deleting
       an optional trailing comma could cause their indentation to jump.
       Also, indentation of comments within ternary statements has been
-      improved. For additonal information see
+      improved. For additonal details see:
 
       https://github.com/perltidy/perltidy/blob/master/docs/ci_update.md
 
+    - This version was stress-tested for many cpu hours with random
+      input parameters. No failures to converge, internal fault checks,
+      undefined variable references or other irregularities were seen.
+
+    - This version runs several percent faster than the previous release
+      on large files.
+
 ## 2023 03 09
 
     - No significant bugs have been found since the last release to CPAN.
index dfdcdf4b7bf5b6713aa78d27406d3790f451e569..990c7e70ecec94f1811a0fc265da3d4aa8bffe8e 100755 (executable)
@@ -1272,8 +1272,8 @@ B<n> then there would be no reason to set this flag.
 
 =item B<-xbtl=s>,   B<--extended-block-tightness-list=s>
 
-The previous parameter B<-xbt> can be made to apply curly braces preceded by
-any of the keywords
+The previous parameter B<-xbt> can be made to apply to curly braces preceded
+by any of the keywords
 
     print printf exec system say
 
@@ -5752,7 +5752,7 @@ The perltidy binary uses the Perl::Tidy module and is installed when that module
 
 =head1 VERSION
 
-This man page documents perltidy version 20230309.04
+This man page documents perltidy version 20230701
 
 =head1 BUG REPORTS
 
@@ -5762,7 +5762,7 @@ To report a new bug or problem, use the "issues" link on this page.
 
 =head1 COPYRIGHT
 
-Copyright (c) 2000-2022 by Steve Hancock
+Copyright (c) 2000-2023 by Steve Hancock
 
 =head1 LICENSE
 
index fbf590c502fbfce5a176be00fdb4a64e32b855aa..8bc3f428d6a5a56a0e1df2dfd65ab2a32dfd390f 100644 (file)
@@ -1,18 +1,11 @@
 <h1>Perltidy Change Log</h1>
 
-<h2>2023 03 09.04</h2>
+<h2>2023 07 01</h2>
 
-<pre><code>- Add parameter -ipc, or --ignore-perlcritic-comments.  Perltidy, by
-  default, will look for side comments beginning with ``## no critic`` and
-  ignore their lengths when making line break decisions, even if the user
-  has not set ``-iscl``.  The reason is that an unwanted line break can
-  make these special comments ineffective in controlling ``perlcritic``.
-  The parameter -ipc can be set if, for some reason, this is not wanted.
-
-- Issue git #121. Added parameters -xbt, or --extended-block-tightness,
+<pre><code>- Issue git #121. Added parameters -xbt, or --extended-block-tightness,
   and -xbtl=s, or --extended-block-tightness-list=s, to allow
   certain small code blocks to have internal spacing controlled by
-  -bbt=n instead of -bt=n. The man pages have details.
+  -bbt=n rather than -bt=n. The man pages have details.
 
 - Issue git #118. A warning will be issued if a duplicate format-skipping
   starting marker is seen within a format-skipping section. The same
   --dump-block-summary on a file without any subs or other
   selected block types.
 
-- Some rare, minor issues with continuation indentation have been fixed.
+- Add parameter -ipc, or --ignore-perlcritic-comments.  Perltidy, by
+  default, will look for side comments beginning with ``## no critic`` and
+  ignore their lengths when making line break decisions, even if the user
+  has not set ``-iscl``.  The reason is that an unwanted line break can
+  make these special comments ineffective in controlling ``perlcritic``.
+  The parameter -ipc can be set if, for some reason, this is not wanted.
+
+- Some minor issues with continuation indentation have been fixed.
   Most scripts will remain unchanged.  The main change is that block
   comments which occur just before a closing brace, bracket or paren
   now have an indentation which is independent of the existance of
   an optional comma or semicolon.  Previously, adding or deleting
   an optional trailing comma could cause their indentation to jump.
   Also, indentation of comments within ternary statements has been
-  improved. For additonal information see
+  improved. For additonal details see:
 
   https://github.com/perltidy/perltidy/blob/master/docs/ci_update.md
+
+- This version was stress-tested for many cpu hours with random
+  input parameters. No failures to converge, internal fault checks,
+  undefined variable references or other irregularities were seen.
+
+- This version runs several percent faster than the previous release
+  on large files.
 </code></pre>
 
 <h2>2023 03 09</h2>
index eee2389f4b791d3291c3c31198ad98657adb3226..b13fbac0ae7d6d9d42e7e2c14f5de0e35b382a99 100644 (file)
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents Perl::Tidy version 20230309.04</p>
+<p>This man page documents Perl::Tidy version 20230701</p>
 
 <h1 id="LICENSE">LICENSE</h1>
 
index bd3f5b72fc444c891c869bf9bb247815c839fc63..565fa88a8f5730705e9e38e417e1dd50790bd916 100644 (file)
@@ -1,9 +1,10 @@
 # An update to the basic Perl::Tidy continuation indentation model
 
-The next release after Perl::Tidy version 20230309 has several changes in the
-basic method for computing "continuation indentation".  The changes mainly
-apply to some unusual situations, and most programs will remain unchanged.
-This note explains what the changes are and why they are needed.
+Perl::Tidy version 20230701 has several changes in the basic method for
+computing "continuation indentation".  This has been on the TODO list
+for a long time. The changes mainly apply to some unusual situations,
+and most programs will remain unchanged. This note explains what the changes
+are and why they are needed.
 
 To briefly review, the indentation of a line is the sum of two parts:
 (1) **structural indentation**, and (2) **continuation indentation**.
@@ -25,9 +26,9 @@ they are a continuation of the statement.
 The default continuation indentation is 2 characters but this can be changed
 with the **-ci=n** parameter.
 
-The original continuation indentation programming in perltidy operated in the
+Previously, computation of continuation indentation was done in the
 initial pass through a file, and this placed some limits on what it could do.
-This update moves this coding downstream in the processing pipeline, where the
+This computation has been moved downstream in the processing pipeline, where the
 entire file is accessible with full data structures, and this allows several
 improvements to be made.  These mainly involve (1) the continuation
 indentation assigned to comments in unusual circumstances, or (2) the
@@ -96,7 +97,7 @@ brace, and there are some comments before the closing ``if`` block brace. The
 previous logic had a limited look-ahead ability, and in this case the
 continuation indentation of the closing sub brace was not removed.
 
-The updated logic handles this correctly:
+The updated logic fixes this problem:
 
 ```
         if ( $term->ReadLine eq "Term::ReadLine::Gnu" ) {
@@ -113,8 +114,8 @@ The updated logic handles this correctly:
 ## Block comment indentation changes in ternary statements
 
 Another change is that the indentation of block comments within ternary
-statements is improved. For example, here is the old default formatting of
-a complex ternary with lots of comments:
+statements is improved. These can be difficult to format. For example,
+here is the old default formatting of a complex ternary with lots of comments:
 
 ```
     # a) under an interactive shell?
@@ -145,7 +146,7 @@ a complex ternary with lots of comments:
       : loc("suppressed in batch mode");
 ```
 
-The comment indentation is very poor. Here is the new formatting:
+The comment indentation is very poor here. Here is the new formatting:
 
 ```
     # a) under an interactive shell?
@@ -194,7 +195,8 @@ is_deeply $fixer->fix( {
   'specific testing';
 ```
 
-The closing '} )' is not indented correctly.  The new default formatting is
+The closing '} )' is missing some continuation indentation.  The new default
+formatting is
 
 ```
 is_deeply $fixer->fix( {
index eceba979fa32dcb20ee7ce69a6f6e0cf02fba9c1..1f760629ec9cd7c3aaa6336209750360f933a108 100644 (file)
 <dt id="xbtl-s---extended-block-tightness-list-s"><b>-xbtl=s</b>, <b>--extended-block-tightness-list=s</b></dt>
 <dd>
 
-<p>The previous parameter <b>-xbt</b> can be made to apply curly braces preceded by any of the keywords</p>
+<p>The previous parameter <b>-xbt</b> can be made to apply to curly braces preceded by any of the keywords</p>
 
 <pre><code>    print printf exec system say</code></pre>
 
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents perltidy version 20230309.04</p>
+<p>This man page documents perltidy version 20230701</p>
 
 <h1 id="BUG-REPORTS">BUG REPORTS</h1>
 
 
 <h1 id="COPYRIGHT">COPYRIGHT</h1>
 
-<p>Copyright (c) 2000-2022 by Steve Hancock</p>
+<p>Copyright (c) 2000-2023 by Steve Hancock</p>
 
 <h1 id="LICENSE">LICENSE</h1>
 
index a33a9f9feafd9c93ec81e93e7b92947a2a54851e..94370ecc992822e1f447c46b2e76383d27dc6fe6 100644 (file)
@@ -114,7 +114,7 @@ BEGIN {
     # then the Release version must be bumped, and it is probably past time for
     # a release anyway.
 
-    $VERSION = '20230309.04';
+    $VERSION = '20230701';
 } ## end BEGIN
 
 sub DESTROY {
index 0aa54cc1de13360612de468fcc7e4bd15e94b7f8..7502a30302332e0cc248aa330b1931a824809471 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 20230309.04
+This man page documents Perl::Tidy version 20230701
 
 =head1 LICENSE
 
index 4ba07988ec50935a66fa33b5ccc72881bc5b3150..5016e9bdc6c4315595e49742aea2c0ade27403ce 100644 (file)
@@ -8,7 +8,7 @@ package Perl::Tidy::Debugger;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 use constant EMPTY_STRING => q{};
 use constant SPACE        => q{ };
index 469973eda68820958bc6602f157de09c958dfe1e..aa45d5f14eb2d21fcd7ca007e98cdcef7287ca4f 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::DevNull;
 use strict;
 use warnings;
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 sub new   { my $self = shift; return bless {}, $self }
 sub print { return }
 sub close { return }
index 18c9679bd08d1a035c3ca7cbbf125752825afb0d..72fbf19fd44f1cbd14691e6d3397e9d38047bea5 100644 (file)
@@ -18,7 +18,7 @@ package Perl::Tidy::Diagnostics;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 use constant EMPTY_STRING => q{};
 
index 34e5b2be58229b750ae6ce97f28df85188f781f0..1a8c2f24c386dae4ffbfbf5daee319a0370c1de8 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::FileWriter;
 use strict;
 use warnings;
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 use constant DEVEL_MODE   => 0;
 use constant EMPTY_STRING => q{};
index e01a8422b2b4abaf84021546808ab318740eeeb2..ba5499a8bdfd5c0197ea55956f467a9a0bfa6453 100644 (file)
@@ -53,7 +53,7 @@ use constant SPACE        => q{ };
 use Carp;
 use English    qw( -no_match_vars );
 use List::Util qw( min max );          # min, max are in Perl 5.8
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 # The Tokenizer will be loaded with the Formatter
 ##use Perl::Tidy::Tokenizer;    # for is_keyword()
index 7306048643c331c43a93ebb6f3798039fd0f90b2..b3da89e662f77c853b4e672ac53a62636a1f6d8d 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::HtmlWriter;
 use strict;
 use warnings;
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 use English qw( -no_match_vars );
 use File::Basename;
index 149d0def321518cd4b4f72880a8438124c6b6c2c..bbc71658178f292c5b787501858e4a28db1d2537 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::IOScalar;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 use constant EMPTY_STRING => q{};
 
index 6e6257ae4a0be7d94602d213bfca7c9cb5d0c80c..e5e57005d94e17536a17012ccbacc2fcffb6d17a 100644 (file)
@@ -14,7 +14,7 @@ package Perl::Tidy::IOScalarArray;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 sub AUTOLOAD {
 
index 42433de0d8d11f339221670ce43e98cc48083a66..360bee5d4c27294ff10900d11d0524e05ea637b2 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::IndentationItem;
 use strict;
 use warnings;
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 BEGIN {
 
index 7991b5fd9092bf3394ef9931f3ef31c7d86f583f..f1abd12d56dae8c21ecd7b12ddbcfb04f9859331 100644 (file)
@@ -12,7 +12,7 @@
 package Perl::Tidy::LineBuffer;
 use strict;
 use warnings;
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 sub AUTOLOAD {
 
index 1d75fecec5f2faefcc4371fd298571fef0fe00f1..1b2c2f2e09091a5b021987338138c618190f52d8 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSink;
 use strict;
 use warnings;
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 sub AUTOLOAD {
 
index e8b1a4c3e599a2f80fe66344c07744df17b0591f..0c462480711402150c02d499462c8411be4d2d18 100644 (file)
@@ -9,7 +9,7 @@ package Perl::Tidy::LineSource;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 use constant DEVEL_MODE => 0;
 
index 1ac79cd41b9250d50c73ac2d6ccf600e39b2e9d5..5b25252c2fed6b8ee88bf79eafed704632692012 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::Logger;
 use strict;
 use warnings;
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 use English qw( -no_match_vars );
 
 use constant DEVEL_MODE   => 0;
index 610b4ab0232f3723a1152e439cf40ef02ce8c49b..d28e9328a9228db69e5a3d6a69a04e2a6be9be0e 100644 (file)
@@ -23,7 +23,7 @@ use strict;
 use warnings;
 use English qw( -no_match_vars );
 
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 use Perl::Tidy::LineBuffer;
 use Carp;
index e7da5a834325bc757616e253a366b4cf49995d0b..5b4ed5b6c8c1462278bf1ff7c606fc964885aa03 100644 (file)
@@ -3,7 +3,7 @@ use strict;
 use warnings;
 use Carp;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 use Perl::Tidy::VerticalAligner::Alignment;
 use Perl::Tidy::VerticalAligner::Line;
 
index d14f0d8db56cc7ad292e243dda5d5aa8388ad439..2e7af8ec145a87cb95fb76ff17492bf1b2ecf98b 100644 (file)
@@ -10,7 +10,7 @@ use warnings;
 
 { #<<< A non-indenting brace
 
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 sub new {
     my ( $class, $rarg ) = @_;
index d6e5c70b6a67b21446def8db2a0d157a41c211b1..f595fc82b06ef8102353900280dd5215b6bf2ae8 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::VerticalAligner::Line;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.04';
+our $VERSION = '20230701';
 
 sub AUTOLOAD {
 
index 863685c42bb4be2787b6f42c5d48fda3a2ff025e..0de6c0d4f788ca6e24960a264e9dda9c8b4065ea 100644 (file)
@@ -35,7 +35,7 @@
   - note that I have tidyall set to also run perlcritic right now
 - run podchecker on all .pod files
 - run ispell on all .pod files
-- Be sure builds at Travis.CI and Appveyor are clean for all version of perl
+- Be sure builds at github and Appveyor are clean for all version of perl
 - update VERSION numbers in all modules and some docs (build.pl can do this):
    - lib/Perl/Tidy.pm
    - lib/Perl/Tidy.pod