forked from pool/perl-Perl-Tidy
Accepting request 1288168 from devel:languages:perl
Forwarded request #1288028 from tinita - updated to 20250616.0.0 (20250616) see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md ## 2025 06 16 - Added support for the assigning logical xor ^^= operator - For input parameters which allow a paren type to be selected, the selection 'f' (function call) now includes functions called with a direct arrow before the paren, '->('. This was an oversight which has been corrected. - A new parameter --break-at-old-comma-types=s, or -boct=s, allows the parameter --break-at-old-comma-breakpoints (-boc) to be limited to selected container types. For example, -boc -boct='f(' means break at old commas but only if they are function call lists. - A new parameter --cuddled-paren-brace-weld, or -cpbw, has been added to handle issue git #184. This modifies --cuddled-paren-brace by preventing a paren and following brace from getting separated in certain situations. The difference is illustrated here: # perltidy -cpb alone has no effect for this short snippet: if ( $Kouter_opening == $Kfirst && $has_tight_paren{$type_prev} ) { $Kref = $Kprev; } # perltidy -cpb -cpbw keeps the closing paren next to the opening brace: if ( $Kouter_opening == $Kfirst && $has_tight_paren{$type_prev} ) { $Kref = $Kprev; } - The parameter --maximum-fields-per-table, or -mft, now accepts a string input which can limit its application to certain containers. For example, -mft='f(1' means that function call lists should be formatted with just 1 item per line. It has no effect on other tables. The manual has further information. - Add option --break-open-compact-parens=s, discussed in git #78. This changes the default formatting for lists which would normally be displayed compactly on two lines. It causes them to be formatted in the same way as long lists, with line breaks at the opening and closing parentheses. - Add option --skip-formatting-except-id=NAME, or -sfei=NAME, discussed in git #183. This allows formatting to apply only to lines tagged with #<<< id=NAME, where NAME is a user-defined tag. The special variation -sfei='-' can be used to run perltidy with full checking but without any formatting changes. - A relatively rare problem with the formatting combination -xci and -lp or -xlp has been fixed. Some lines had more leading spaces that intended. - New option -m added to --dump-mismatched-returns and --warn-mismatched-returns. This checks for multiple array return sizes. A warning occurs when a sub has multiple returns of finite lists with different counts greater than 1, and not all of them are matched with calls. - Improved support for Object::Pad, see git #182. - A limitation on the treatment of lexical subs has been fixed. Previously, a lexical sub with the same name as a quote operator would produce a warning, and might cause a tokenization error. - Here targets in quotes are now located and handled correctly. OBS-URL: https://build.opensuse.org/request/show/1288168 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Perl-Tidy?expand=0&rev=52
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7fc6ceda4e3c9fc79c777afbcf8d167ecc35b16ff81c9cbeaf727b15d0502d8a
|
||||
size 1178345
|
||||
3
Perl-Tidy-20250616.tar.gz
Normal file
3
Perl-Tidy-20250616.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b07517e3f6198d24a4890665338847d79008f7dcc68461811905c7e62a1e689a
|
||||
size 1198542
|
||||
@@ -1,3 +1,64 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 16 05:39:09 UTC 2025 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 20250616.0.0 (20250616)
|
||||
see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md
|
||||
|
||||
## 2025 06 16
|
||||
- Added support for the assigning logical xor ^^= operator
|
||||
- For input parameters which allow a paren type to be selected, the
|
||||
selection 'f' (function call) now includes functions called with
|
||||
a direct arrow before the paren, '->('. This was an oversight which
|
||||
has been corrected.
|
||||
- A new parameter --break-at-old-comma-types=s, or -boct=s, allows the
|
||||
parameter --break-at-old-comma-breakpoints (-boc) to be limited to
|
||||
selected container types. For example, -boc -boct='f(' means break
|
||||
at old commas but only if they are function call lists.
|
||||
- A new parameter --cuddled-paren-brace-weld, or -cpbw, has been added to
|
||||
handle issue git #184. This modifies --cuddled-paren-brace by
|
||||
preventing a paren and following brace from getting separated in
|
||||
certain situations. The difference is illustrated here:
|
||||
# perltidy -cpb alone has no effect for this short snippet:
|
||||
if ( $Kouter_opening == $Kfirst
|
||||
&& $has_tight_paren{$type_prev} )
|
||||
{
|
||||
$Kref = $Kprev;
|
||||
}
|
||||
# perltidy -cpb -cpbw keeps the closing paren next to the opening brace:
|
||||
if (
|
||||
$Kouter_opening == $Kfirst
|
||||
&& $has_tight_paren{$type_prev}
|
||||
) {
|
||||
$Kref = $Kprev;
|
||||
}
|
||||
- The parameter --maximum-fields-per-table, or -mft, now accepts a string
|
||||
input which can limit its application to certain containers. For
|
||||
example, -mft='f(1' means that function call lists should be formatted
|
||||
with just 1 item per line. It has no effect on other tables. The
|
||||
manual has further information.
|
||||
- Add option --break-open-compact-parens=s, discussed in git #78.
|
||||
This changes the default formatting for lists which would normally
|
||||
be displayed compactly on two lines. It causes them to be formatted
|
||||
in the same way as long lists, with line breaks at the opening and
|
||||
closing parentheses.
|
||||
- Add option --skip-formatting-except-id=NAME, or -sfei=NAME, discussed
|
||||
in git #183. This allows formatting to apply only to lines tagged
|
||||
with #<<< id=NAME, where NAME is a user-defined tag. The special
|
||||
variation -sfei='-' can be used to run perltidy with full checking
|
||||
but without any formatting changes.
|
||||
- A relatively rare problem with the formatting combination -xci and -lp or
|
||||
-xlp has been fixed. Some lines had more leading spaces that intended.
|
||||
- New option -m added to --dump-mismatched-returns and
|
||||
--warn-mismatched-returns. This checks for multiple array
|
||||
return sizes. A warning occurs when a sub has multiple returns
|
||||
of finite lists with different counts greater than 1, and
|
||||
not all of them are matched with calls.
|
||||
- Improved support for Object::Pad, see git #182.
|
||||
- A limitation on the treatment of lexical subs has been fixed. Previously,
|
||||
a lexical sub with the same name as a quote operator would produce a warning,
|
||||
and might cause a tokenization error.
|
||||
- Here targets in quotes are now located and handled correctly.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 12 05:43:42 UTC 2025 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
|
||||
%define cpan_name Perl-Tidy
|
||||
Name: perl-Perl-Tidy
|
||||
Version: 20250311.0.0
|
||||
Version: 20250616.0.0
|
||||
Release: 0
|
||||
# 20250311 -> normalize -> 20250311.0.0
|
||||
%define cpan_version 20250311
|
||||
# 20250616 -> normalize -> 20250616.0.0
|
||||
%define cpan_version 20250616
|
||||
#Upstream: GPL-1.0-or-later
|
||||
License: GPL-2.0-or-later
|
||||
Summary: Indent and reformat perl scripts
|
||||
@@ -65,7 +65,7 @@ completion. Additional discuss of errors is contained below in the ERROR
|
||||
HANDLING section.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
|
||||
Reference in New Issue
Block a user