]> git.donarmstrong.com Git - perltidy.git/commitdiff
updates for next release 20201001
authorSteve Hancock <perltidy@users.sourceforge.net>
Mon, 28 Sep 2020 20:08:52 +0000 (13:08 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Mon, 28 Sep 2020 20:08:52 +0000 (13:08 -0700)
28 files changed:
CHANGES.md
MANIFEST
bin/perltidy
docs/BugLog.html
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/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/BugLog.pod
local-docs/Release-Checklist.md

index 0ca916b3fc343b94bdb00c25cf0575ca4ec95eaf..29a3b6a7cdcc6cb1a791d7d1e448b3401552d155 100644 (file)
@@ -1,6 +1,13 @@
 # Perltidy Change Log
 
-## 2020 09 07.01
+## 2020 10 01
+
+    - Robustness of perltidy has been significantly improved.  Updating is recommended. Continual 
+      automated testing runs began about 1 Sep 2020 and numerous issues have been found and fixed. 
+      Many involve references to uninitialized variables when perltidy is fed random text and random
+      control parameters. A complete list is given in the file 
+
+           https://github.com/perltidy/perltidy/blob/master/local-docs/BugLog.pod
 
     - Added the token '->' to the list of alignment tokens, as suggested in git
       #39, so that it can be vertically aligned if a space is placed before them with -wls='->'.
 
     - Added keyword 'isa'.
 
-    - Numerous issues have been found during automated testing and fixed. Many involve references to
-      uninitialized variables when perltidy is given random text. A complete list is given in
-      the file 
-
-           https://github.com/perltidy/perltidy/blob/master/local-docs/BugLog.pod
-
 ## 2020 09 07
 
     - Fixed bug git #37, an error when the combination -scbb -csc was used.
index 0a3137ddf6e9eecdab67b357f4a21ec97387750a..c0347468b84adec688f3b67cbc210fde22ccef65 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -3,6 +3,7 @@ bin/perltidy
 BUGS.md
 CHANGES.md
 COPYING
+docs/BugLog.html
 docs/ChangeLog.html
 docs/index.html
 docs/index.md
@@ -70,6 +71,7 @@ t/snippets19.t
 t/snippets2.t
 t/snippets20.t
 t/snippets21.t
+t/snippets22.t
 t/snippets3.t
 t/snippets4.t
 t/snippets5.t
index 12d6a3f4abfd5fb6d85e3b2eac78d60cb3ea100c..b1b7d89079525d780c203b27fe0574fd32f9941b 100755 (executable)
@@ -4283,7 +4283,7 @@ The perltidy binary uses the Perl::Tidy module and is installed when that module
 
 =head1 VERSION
 
-This man page documents perltidy version 20200907.01
+This man page documents perltidy version 20201001
 
 =head1 BUG REPORTS
 
index 25494409e7bce28930fed48cb2512ab0e0ab4ca8..476bbf36fe34bf371c04e82a595c01a5b44fc8a7 100644 (file)
 
 <dl>
 
+<dt id="Keep-any-space-between-a-bareword-and-quote"><b>Keep any space between a bareword and quote</b></dt>
+<dd>
+
+<p>In random testing, the -mangle option introduced a syntax error by deleting the space between barewords and quotes (test file &#39;MxScreen&#39;), such as:</p>
+
+<pre><code>  oops&quot;Your login, $Bad_Login, is not valid&quot;;</code></pre>
+
+<p>Sub &#39;is_essential_whitespace&#39; was updated to prevent this on 27 Sep 2020, in &#39;keep any space between a bareword and quote&#39;, f32553c.</p>
+
+</dd>
+<dt id="Fixed-some-incorrect-indentation-disagreements-reported-in-LOG-file"><b>Fixed some incorrect indentation disagreements reported in LOG file</b></dt>
+<dd>
+
+<p>The .LOG file reports any disagreements between the indentation of the input and output files. This can help locate brace errors. These were incorrect when some of the options were used, including --whitespace-cycle, -bbhb, -nib. This was corrected 24 Sep 2020, &#39;fixed incorrect log entry for indentation disagreement&#39;, 3d40545. At the same time, locations of closing brace indentation disagreements are now tracked and reported in the .ERR file when there is a brace error. This can help localize the error if the file was previously formatted by perltidy.</p>
+
+</dd>
 <dt id="If-an-cut-starts-a-POD-section-within-code-give-a-warning"><b>If an =cut starts a POD section within code, give a warning</b></dt>
 <dd>
 
 <dt id="Switched-from-using-an-eval-block-to-the--can-function-for-sub-finish_formatting"><b>Switched from using an eval block to the -</b>can() function for sub finish_formatting&gt;</dt>
 <dd>
 
-<p>This is not a bug, but is cleaner coding and insures that error messages get reported. This change was made 20 Sep 2020.</p>
+<p>This is not a bug, but is cleaner coding and insures that error messages get reported. This change was made 20 Sep 2020, &#39;switch from eval { } to -&gt;can(&#39;finish_formatting&#39;)&#39;, 28f2a4f.</p>
 
 </dd>
 <dt id="fixed-uninitialized-value-reference"><b>fixed uninitialized value reference</b></dt>
 <dd>
 
-<p>The following message was generated during automated testing Use of uninitialized value $cti in numeric eq (==) at /home/steve/bin/Perl/Tidy/Formatter.pm line 12079. Use of uninitialized value $cti in numeric eq (==) at /home/steve/bin/Perl/Tidy/Formatter.pm line 12089. Use of uninitialized value $cti in numeric eq (==) at /home/steve/bin/Perl/Tidy/Formatter.pm line 12097.</p>
+<p>The following message was generated during automated testing</p>
+
+<pre><code> Use of uninitialized value $cti in numeric eq (==) at /home/steve/bin/Perl/Tidy/Formatter.pm line 12079.
+ Use of uninitialized value $cti in numeric eq (==) at /home/steve/bin/Perl/Tidy/Formatter.pm line 12089.
+ Use of uninitialized value $cti in numeric eq (==) at /home/steve/bin/Perl/Tidy/Formatter.pm line 12097.</code></pre>
 
 <p>The problem could be simplified to running perltidy -wn on this snippet:</p>
 
index 247b8b18b8266a16290c9fc97fb63f3571911116..1322e7affdffd2d431471754c515092406f21ee1 100644 (file)
@@ -1,8 +1,15 @@
 <h1>Perltidy Change Log</h1>
 
-<h2>2020 09 07.01</h2>
+<h2>2020 10 01</h2>
 
-<pre><code>- Added the token '-&gt;' to the list of alignment tokens, as suggested in git
+<pre><code>- Robustness of perltidy has been significantly improved.  Updating is recommended. Continual 
+  automated testing runs began about 1 Sep 2020 and numerous issues have been found and fixed. 
+  Many involve references to uninitialized variables when perltidy is fed random text and random
+  control parameters. A complete list is given in the file 
+
+       https://github.com/perltidy/perltidy/blob/master/local-docs/BugLog.pod
+
+- Added the token '-&gt;' to the list of alignment tokens, as suggested in git
   #39, so that it can be vertically aligned if a space is placed before them with -wls='-&gt;'.
 
 - Added parameters -bbhb=n (--break-before-hash-brace=n), -bbsb=n (--break-before-square-bracket=n),
   control indentation of these tokens.
 
 - Added keyword 'isa'.
-
-- Numerous issues have been found during automated testing and fixed. Many involve references to
-  uninitialized variables when perltidy is given random text. A complete list is given in
-  the file 
-
-       https://github.com/perltidy/perltidy/blob/master/local-docs/BugLog.pod
 </code></pre>
 
 <h2>2020 09 07</h2>
index 70770128fc4da8a993f0b3728e0cd90c4b7d5565..d484ed589341af2dea58ff0598c98564601e9eab 100644 (file)
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents Perl::Tidy version 20200907.01</p>
+<p>This man page documents Perl::Tidy version 20201001</p>
 
 <h1 id="LICENSE">LICENSE</h1>
 
index f5887ec88438eeb384ef8a11054eb704ec8fd0de..95d6455cac6c474ad6d354602eb64890b27eaedb 100644 (file)
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents perltidy version 20200907.01</p>
+<p>This man page documents perltidy version 20201001</p>
 
 <h1 id="BUG-REPORTS">BUG REPORTS</h1>
 
index 792dd77ed4dae9ff193b420e486632e697bdfef0..f5d255322b74ae1a2d361b5d68983ecf4b188687 100644 (file)
@@ -107,7 +107,7 @@ BEGIN {
     # Release version must be bumped, and it is probably past time for a
     # release anyway.
 
-    $VERSION = '20200907.01';
+    $VERSION = '20201001';
 }
 
 sub DESTROY {
index 6c41ddb589fdbab1b6c9452a9f2160d12ade5ff0..922766b116902e1ba945fc1d39e2c9a447690772 100644 (file)
@@ -432,7 +432,7 @@ The module 'Perl::Tidy' comes with a binary 'perltidy' which is installed when t
 
 =head1 VERSION
 
-This man page documents Perl::Tidy version 20200907.01
+This man page documents Perl::Tidy version 20201001
 
 =head1 LICENSE
 
index fef6ee58ce32bb540c395f47895c4fba6f3bec6e..96ad3f3f362405a9d4182308a3e8272faaaee569 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::Debugger;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 sub new {
 
index 34c65e264d73bcbadde98f9904fc050bb0992e76..19dab0971a5fa6073d56e5924cc7a156e87f0904 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::DevNull;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 sub new   { my $self = shift; return bless {}, $self }
 sub print { return }
 sub close { return }
index 7362dc173543024da6ad6c26f448ed0a2e574dcb..1d97be6f17df1cebc0cb09fecc55c735be2ebfb3 100644 (file)
@@ -20,7 +20,7 @@
 package Perl::Tidy::Diagnostics;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 sub AUTOLOAD {
 
@@ -42,6 +42,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index 0a4704443fea05122d1a865fad0f7f07b64ea852..2aa8f66e6ad575bc08939aa0defca76bda187d17 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::FileWriter;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 sub AUTOLOAD {
 
@@ -29,6 +29,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index 21cf3ba9d31b2b66f117e557bc0b73927c05dc25..819a1087193245e1a0cf321e2d55cf7cfaf2d416 100644 (file)
@@ -46,7 +46,7 @@ use warnings;
 { #<<< A non-indenting brace to contain all lexical variables
 
 use Carp;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 # The Tokenizer will be loaded with the Formatter
 ##use Perl::Tidy::Tokenizer;    # for is_keyword()
@@ -11983,10 +11983,11 @@ sub set_continuation_breaks {
     #   $forced_breakpoint_to_go[$i]
     # may be updated to be =1 for any index $i after which there must be
     # a break.  This signals later routines not to undo the breakpoint.
-    use constant DEBUG_BREAKPOINTS => 0;
 
     my ( $self, $saw_good_break ) = @_;
 
+    use constant DEBUG_BREAKPOINTS => 0;
+
     my @i_first        = ();    # the first index to output
     my @i_last         = ();    # the last index to output
     my @i_colon_breaks = ();    # needed to decide if we have to break at ?'s
index 62bc75410262e1b52219f711c70efc68e081e139..7c74c30ff856e9de10ef67b4a6b2daea2d8356a9 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::HtmlWriter;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 use File::Basename;
 
@@ -44,7 +44,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ($AUTOLOAD eq 'DESTROY');
+    return if ( $AUTOLOAD eq 'DESTROY' );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
@@ -58,6 +58,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index 0f3d820bfc8cbcd9b036e9e69fa2882a2ca936d1..2bd94749ee29d7358dfb9dd5be71ca4537b1e43b 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::IOScalar;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 sub AUTOLOAD {
 
@@ -32,6 +32,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index 44d3fe58e4f964934ab029c836cf7a7ab7956a69..e555a8eebd08da3186656f0a05b5300937f93204 100644 (file)
@@ -14,7 +14,7 @@ package Perl::Tidy::IOScalarArray;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 sub AUTOLOAD {
 
@@ -36,6 +36,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index 0359620b5622ac9a1b1450556ee740bb1f01f530..298f5f66805ba51ff33d5d4957b7d2ada4d5aaf6 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::IndentationItem;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 BEGIN {
 
@@ -53,6 +53,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index 7aa2fcd3b3b222f57a9bdaa670db8997ed91df33..a44145275dd1c752cc9f1a78125ad8a9da9e9857 100644 (file)
@@ -12,7 +12,7 @@
 package Perl::Tidy::LineBuffer;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 sub AUTOLOAD {
 
@@ -34,6 +34,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index e8b1306a67216068a18173d3c7d5f85d01055e97..61944eb598b0142f9341a025cda5d32de4fa8357 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSink;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 sub AUTOLOAD {
 
@@ -30,6 +30,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index 2261c54c253b9475970dd21e8d9fd19b59537e28..8e6eccecd1ed80866a3639eefbef95314142b6be 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSource;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 sub AUTOLOAD {
 
@@ -30,6 +30,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index 294b505a1d1d48a919c41f389d98419a26ac347f..998811f9101cd7c99b0fbe04efb55a00231080ef 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::Logger;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 sub AUTOLOAD {
 
@@ -29,6 +29,7 @@ EOM
 }
 
 sub DESTROY {
+
     # required to avoid call to AUTOLOAD in some versions of perl
 }
 
index 2389ab3ff51f2b66ee1155664f21dfa490358488..6361553323421669ac6eb56c6e478e32f63fa898 100644 (file)
@@ -21,7 +21,7 @@
 package Perl::Tidy::Tokenizer;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 use Perl::Tidy::LineBuffer;
 use Carp;
index 59180f52533cd0296bd97789ef0edb0fd338b57c..f0bb2080bf65aad96b8356bcefcb9712276ea370 100644 (file)
@@ -1,7 +1,7 @@
 package Perl::Tidy::VerticalAligner;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 use Perl::Tidy::VerticalAligner::Alignment;
 use Perl::Tidy::VerticalAligner::Line;
index 9d3c0a8392e614c1ed7b44ac37fb13c7ebb14b1d..c4f2556f3b6cedc1028c4aba5d368e5e3b8e4291 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::VerticalAligner::Alignment;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 {
 
@@ -50,7 +50,7 @@ our $VERSION = '20200907.01';
     }
 
     sub AUTOLOAD {
-    
+
         # Catch any undefined sub calls so that we are sure to get
         # some diagnostic information.  This sub should never be called
         # except for a programming error.
index 50de123e4c0f01835d32660659f4d2e72d1fe573..a56ebede6836e65c963d93ad34c146e1c2362c27 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::VerticalAligner::Line;
 use strict;
 use warnings;
-our $VERSION = '20200907.01';
+our $VERSION = '20201001';
 
 {
 
@@ -68,12 +68,12 @@ our $VERSION = '20200907.01';
     }
 
     sub AUTOLOAD {
-    
+
         # Catch any undefined sub calls so that we are sure to get
         # some diagnostic information.  This sub should never be called
         # except for a programming error.
         our $AUTOLOAD;
-        return if ($AUTOLOAD eq 'DESTROY');
+        return if ( $AUTOLOAD eq 'DESTROY' );
         my ( $pkg, $fname, $lno ) = caller();
         print STDERR <<EOM;
     ======================================================================
index 51d592ae6a5ca29e3dfa271b5fe71abfeccdddcb..a22ff1e174c6beb469dd2270b36be618048cdad8 100644 (file)
@@ -13,7 +13,8 @@ the space between barewords and quotes (test file 'MxScreen'), such as:
 
   oops"Your login, $Bad_Login, is not valid";
 
-Sub is_essential_whitespace was updated to prevent this on 27 Sep 2020.
+Sub 'is_essential_whitespace' was updated to prevent this on 27 Sep 2020, 
+in 'keep any space between a bareword and quote', f32553c.
 
 =item B<Fixed some incorrect indentation disagreements reported in LOG file> 
 
@@ -36,7 +37,7 @@ a -dp flag and it took some time to understand the results because of the lack o
 =item B<Switched from using an eval block to the ->can() function for sub finish_formatting>
 
 This is not a bug, but is cleaner coding and insures that error messages get reported.
-This change was made 20 Sep 2020.
+This change was made 20 Sep 2020, 'switch from eval { } to ->can('finish_formatting')', 28f2a4f.
 
 
 =item B<fixed uninitialized value reference>
index bb4794d92ecc072e9a7c0656b96187a529a8d3d4..ceeb03b3e958b01ebb84c8dd05487943dbeb749c 100644 (file)
@@ -3,6 +3,7 @@
 - review tickets at [rt.cpan.org](https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Tidy) 
 - review the issues at [github](https://github.com/perltidy/perltidy/issues/)
 - compare the new version with previous version on all files in test area
+- run random testing on final version for a significant time before releasing (several days)
 - run 'author tests' on a much larger body of code than is covered by the .t
   files.
     - compare results of the current version with previous version