Parses and beautifies perl source

Edit Package perl-Perl-Tidy
https://metacpan.org/dist/Perl-Tidy

This module makes the functionality of the perltidy utility available to
perl scripts. Any or all of the input parameters may be omitted, in which
case the @ARGV array will be used to provide input parameters as described
in the perltidy(1) man page.

Refresh
Refresh
Source Files
Filename Size Changed
Perl-Tidy-20200907.tar.gz 0000666105 650 KB
cpanspec.yml 0000000541 541 Bytes
perl-Perl-Tidy.changes 0000038662 37.8 KB
perl-Perl-Tidy.spec 0000002363 2.31 KB
Revision 54 (latest revision is 87)
Dirk Stoecker's avatar Dirk Stoecker (dstoecker) accepted request 832723 from Tina Müller's avatar Tina Müller (tinita) (revision 54)
- updated to 20200907
   see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md
  ## 2020 09 07
      - Fixed bug git #37, an error when the combination -scbb -csc was used.
        It occurs in perltidy versions 20200110, 20200619, and 20200822.  What happens is
        that when two consecutive lines with isolated closing braces had new side
        comments generated by the -csc parameter, a separating newline was missing.
        The resulting script will not then run, but worse, if it is reformatted with
        the same parameters then closing side comments could be overwritten and data
        lost.
        This problem was found during automated random testing.  The parameter
        -scbb is rarely used, which is probably why this has not been reported.  Please
        upgrade your version.
      - Added parameter --non-indenting-braces, or -nib, which prevents
        code from indenting one level if it follows an opening brace marked
        with a special side comment, '#<<<'.  For example,
                      { #<<<   a closure to contain lexical vars
                      my $var;  # this line does not indent
                      }
                      # this line cannot 'see' $var;
        This is on by default.  If your code happens to have some
        opening braces followed by '#<<<', and you
        don't want this, you can use -nnib to deactivate it.
      - Side comment locations reset at a line ending in a level 0 open
        block, such as when a new multi-line sub begins.  This is intended to
        help keep side comments from drifting to far to the right.
Comments 0
openSUSE Build Service is sponsored by