From 05f87828465659c88c21bc24d8f32e1b5006a913d82518eb5e03e3ebeca1d0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Tue, 31 Dec 2024 00:21:58 +0000 Subject: [PATCH 1/9] Accepting request 1203082 from devel:languages:perl:autoupdate - updated to 20240903.0.0 (20240903) see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md ## 2024 09 03 - Add partial support for Syntax::Operator::In and Syntax::Keyword::Match (see git #162). - Add --timeout-in-seconds=n, or -tos=n. When the standard input supplies the input stream, and the input has not been received within n seconds, perltidy will end with a timeout message. The intention is to catch a situation where perltidy is accidentally invoked without a file to process and therefore waits for input from the system standard input (stdin), which never arrives. The default is n=10. This check can be turned off with -tos=0. - Add parameter --closing-side-comment-exclusion-list=string, or -cscxl=string, where string is a list of block types to exclude for closing side comment operations. Also, closing side comments now work for anonymous subs if a --closing-side-comment-list (-cscl) is not specified, and when 'asub' is requested with -cscl=asub. Use -cscxl=asub to prevent this. - Include check for unused constants in --dump-unusual-variables and --warn-variable-types (new issue type 'c'). Also expand checks to cover variables introduced with 'use vars'. - Include signature variables in --dump-unusual-variables and --warn-variable-types; see git #158. - Add logical xor operator ^^ available in perl version 5.40, as noted in git #157. - Keyword 'state' now has default space before a paren, like 'my'. Previously there was no space and no control. So the default is now "state ($x)". This space can be removed with -nsak='state'. - Add options --add-lone-trailing-commas, -altc and --delete-lone-trailing-commas, -dltc, to provide control over adding and deleting the only comma in a list. See discussion in git #143 and the updated manual. - Add options --dump-mismatched-returns (or -dmr) and --warn-mismatched-returns (or -wmr). These options report function calls where the number of values requested may disagree with sub return statements. The -dump version writes the results for a single file to standard output and exits: perltidy -dmr somefile.pl >results.txt The -warn version formats as normal but reports any issues as warnings in the error file: perltidy -wmr somefile.pl The -warn version may be customized with the following additional parameters if necessary to avoid needless warnings: --warn-mismatched-return-types=s (or -wmrt=s), --warn-mismatched-return-exclusion-list=s (or -wmrxl=s) where 's' is a control string. These are explained in the manual. - Updates for issue git #151: (1) --warn-variable-types=u is now okay if a named file is processed. (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 and would match $var1_unused and $var2_unused. (3) --dump-unusual-variables now outputs the filename. - A option was added to filter unimplemented parameters from perltidy configuration files, suggested in git #146. It works like this: if a line in the config file begins with three dashes followed by a parameter name (rather than two dashes), 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-args (or -wma) have been updated to catch more arg count issues. - Fixed issue git #143, extend -add-trailing-commas to apply to a list with just a fat comma. - The minimum perl version is 5.8.1. Previously it was 5.8.0, which was not correct because of the use of utf8::is_utf8. - Fixed issue git #142, test failure installing on perl versions before version 5.10. The error caused the new parameter -interbracket-arrow-style=s not to work. Except for this limitation, Version 20240511 will work on older perl versions. OBS-URL: https://build.opensuse.org/request/show/1203082 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-Tidy?expand=0&rev=88 --- Perl-Tidy-20240511.tar.gz | 3 -- Perl-Tidy-20240903.tar.gz | 3 ++ perl-Perl-Tidy.changes | 74 +++++++++++++++++++++++++++++++++++++++ perl-Perl-Tidy.spec | 6 ++-- 4 files changed, 80 insertions(+), 6 deletions(-) delete mode 100644 Perl-Tidy-20240511.tar.gz create mode 100644 Perl-Tidy-20240903.tar.gz diff --git a/Perl-Tidy-20240511.tar.gz b/Perl-Tidy-20240511.tar.gz deleted file mode 100644 index cd082a3..0000000 --- a/Perl-Tidy-20240511.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:47ff9e8ce98b5a43dc2d9ce4f02b9af3f4824a5fd912473edc9c16dc595468f2 -size 1077858 diff --git a/Perl-Tidy-20240903.tar.gz b/Perl-Tidy-20240903.tar.gz new file mode 100644 index 0000000..f5725de --- /dev/null +++ b/Perl-Tidy-20240903.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22fba4ba84cf2ba5fb4ade3ae65c6deb48a0ee61fe446858d3ae8c5e00f37e81 +size 1111605 diff --git a/perl-Perl-Tidy.changes b/perl-Perl-Tidy.changes index 3d99229..5622f8e 100644 --- a/perl-Perl-Tidy.changes +++ b/perl-Perl-Tidy.changes @@ -1,3 +1,77 @@ +------------------------------------------------------------------- +Wed Sep 4 05:34:24 UTC 2024 - Tina Müller + +- updated to 20240903.0.0 (20240903) + see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md + + ## 2024 09 03 + - Add partial support for Syntax::Operator::In and Syntax::Keyword::Match + (see git #162). + - Add --timeout-in-seconds=n, or -tos=n. When the standard input supplies + the input stream, and the input has not been received within n seconds, + perltidy will end with a timeout message. The intention is to catch + a situation where perltidy is accidentally invoked without a file to + process and therefore waits for input from the system standard input + (stdin), which never arrives. The default is n=10. + This check can be turned off with -tos=0. + - Add parameter --closing-side-comment-exclusion-list=string, or + -cscxl=string, where string is a list of block types to exclude + for closing side comment operations. Also, closing side comments + now work for anonymous subs if a --closing-side-comment-list (-cscl) + is not specified, and when 'asub' is requested with -cscl=asub. + Use -cscxl=asub to prevent this. + - Include check for unused constants in --dump-unusual-variables and + --warn-variable-types (new issue type 'c'). Also expand checks to + cover variables introduced with 'use vars'. + - Include signature variables in --dump-unusual-variables and + --warn-variable-types; see git #158. + - Add logical xor operator ^^ available in perl version 5.40, as + noted in git #157. + - Keyword 'state' now has default space before a paren, like 'my'. + Previously there was no space and no control. So the default + is now "state ($x)". This space can be removed with -nsak='state'. + - Add options --add-lone-trailing-commas, -altc and + --delete-lone-trailing-commas, -dltc, to provide control over adding + and deleting the only comma in a list. See discussion in git #143 + and the updated manual. + - Add options --dump-mismatched-returns (or -dmr) and + --warn-mismatched-returns (or -wmr). These options report function + calls where the number of values requested may disagree with sub + return statements. The -dump version writes the results for a single + file to standard output and exits: + perltidy -dmr somefile.pl >results.txt + The -warn version formats as normal but reports any issues as warnings in + the error file: + perltidy -wmr somefile.pl + The -warn version may be customized with the following additional + parameters if necessary to avoid needless warnings: + --warn-mismatched-return-types=s (or -wmrt=s), + --warn-mismatched-return-exclusion-list=s (or -wmrxl=s) + where 's' is a control string. These are explained in the manual. + - Updates for issue git #151: + (1) --warn-variable-types=u is now okay if a named file is processed. + (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 and would match $var1_unused and $var2_unused. + (3) --dump-unusual-variables now outputs the filename. + - A option was added to filter unimplemented parameters from perltidy + configuration files, suggested in git #146. It works like this: if + a line in the config file begins with three dashes followed by a + parameter name (rather than two dashes), 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-args (or -wma) have been updated to catch more + arg count issues. + - Fixed issue git #143, extend -add-trailing-commas to apply to a list + with just a fat comma. + - The minimum perl version is 5.8.1. Previously it was 5.8.0, which was + not correct because of the use of utf8::is_utf8. + - Fixed issue git #142, test failure installing on perl versions before + version 5.10. The error caused the new parameter + -interbracket-arrow-style=s not to work. Except for this limitation, + Version 20240511 will work on older perl versions. + ------------------------------------------------------------------- Sat May 11 03:07:59 UTC 2024 - Tina Müller diff --git a/perl-Perl-Tidy.spec b/perl-Perl-Tidy.spec index bef6a3e..dc0b435 100644 --- a/perl-Perl-Tidy.spec +++ b/perl-Perl-Tidy.spec @@ -18,10 +18,10 @@ %define cpan_name Perl-Tidy Name: perl-Perl-Tidy -Version: 20240511.0.0 +Version: 20240903.0.0 Release: 0 -# 20240511 -> normalize -> 20240511.0.0 -%define cpan_version 20240511 +# 20240903 -> normalize -> 20240903.0.0 +%define cpan_version 20240903 #Upstream: GPL-1.0-or-later License: GPL-2.0-or-later Summary: Indent and reformat perl scripts -- 2.51.1 From dce26d736233da6284ea49bc12bda6446e000f3dabd742bdc266d2f37d7d44a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Mon, 13 Jan 2025 21:45:07 +0000 Subject: [PATCH 2/9] Accepting request 1236689 from devel:languages:perl:autoupdate - updated to 20250105.0.0 (20250105) see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md ## 2025 01 05 - If a file consists only of comments, then the starting indentation will be guessed from the indentation of the first comment. Previously it would be guessed to be zero. Parameter --starting-indentation-level=n can be used to specify an indentation and avoid a guess. This issue can arise when formatting a block of comments from within an editor. - Added missing 'use File::Temp' for -html option. This was causing the message: "Undefined subroutine &File::Temp::tempfile called at ..." See git #176. - A new parameter --dump-unique-keys, or -duk, dumps a list of hash keys which appear to be used just once, and do not appear among the quoted strings in a file. For example: perltidy -duk File.pm >output.txt This can help locate misspelled hash keys. - Line breaks at long chains of method calls now break at all calls with args in parens, as in this example from git #171 # Old default sub bla_p( $value = 42 ) { return Mojo::Promise->resolve($value)->then( sub { shift() / 2 } ) ->then( sub { shift() + 6 } )->then( sub { shift() / 2 } ) ->catch( sub { warn shift } ); } # New default sub bla_p( $value = 42 ) { return Mojo::Promise->resolve($value) ->then( sub { shift() / 2 } ) ->then( sub { shift() + 6 } ) ->then( sub { shift() / 2 } ) ->catch( sub { warn shift } ); } - Parameter --break-at-old-method-breakpoints, or -bom, has been updated to insure that it only applies to lines beginning with method calls, as intended. Line breaks for all lines beginning with '->', even non-method calls, can be retained by using --keep-old-breakpoints_before='->'. - Added parameter --multiple-token-tightness=s, or -mutt=s. The default value --paren-tightness=1 adds space within the parens if, and only if, the container holds multiple tokens. Some perltidy tokens may be rather long, and it can be preferable to also space some of them as if they were multiple tokens. This can be done with this parameter, and it applies to parens as well as square brackets and curly braces. For example, the default below has no space within the square brackets: # perltidy my $rlist = [qw( alpha beta gamma )]; Spaces can be obtained with: # perltidy -mutt='q*' my $rlist = [ qw( alpha beta gamma ) ]; The parameter -mutt='q*' means treat qw and similar quote operators as multiple tokens. The manual has details; git #120 has another example. - Added parameter --indent-leading-semicolon, -ils; see git #171. When this is negated, a line with a leading semicolon does not get the extra leading continuation indentation spaces (defined with -ci=n). - Space around here doc delimiters follow spacing controls better. For example, a space is now added before the closing paren here: OLD: (without the here doc): push( @script, <<'EOT'); NEW: push( @script, <<'EOT' ); Also, any spaces between the '<<' and here target are removed (git #174): OLD: push( @script, << 'EOT'); NEW: push( @script, <<'EOT' ); - Added parameter --break-at-trailing-comma-types=s, or -btct=s, where s is a string which selects trailing commas. For example, -btct='f(b' places a line break after all bare trailing commas in function calls. The manual has details. - Fix git #165, strings beginning with v before => gave an incorrect error message. - The parameter --add-lone-trailing-commas, -altc, is now on by default. This will simplify input for trailing comma operations. Use --noadd-lone-trailing-commas, or -naltc to turn it off. - More edge cases for adding and deleting trailing commas are now handled (git #156). - A problem has been fixed in which the addition or deletion of trailing commas with the -atc or -dtc flags did not occur due to early convergence when the -conv flag was set (git #143). - Added parameter --qw-as-function, or -qwaf, discussed in git #164. When this parameter is set, a qw list which begins with 'qw(' is formatted as if it were a function call with call args being a list of comma-separated quoted items. For example, given this input: @fields = qw( $st_dev $st_ino $st_mode $st_nlink $st_uid $st_gid $st_rdev $st_size $st_atime $st_mtime $st_ctime $st_blksize $st_blocks); # perltidy -qwaf @fields = qw( $st_dev $st_ino $st_mode $st_nlink $st_uid $st_gid $st_rdev $st_size $st_atime $st_mtime $st_ctime $st_blksize $st_blocks ); OBS-URL: https://build.opensuse.org/request/show/1236689 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-Tidy?expand=0&rev=90 --- Perl-Tidy-20240903.tar.gz | 3 -- Perl-Tidy-20250105.tar.gz | 3 ++ perl-Perl-Tidy.changes | 98 +++++++++++++++++++++++++++++++++++++++ perl-Perl-Tidy.spec | 8 ++-- 4 files changed, 105 insertions(+), 7 deletions(-) delete mode 100644 Perl-Tidy-20240903.tar.gz create mode 100644 Perl-Tidy-20250105.tar.gz diff --git a/Perl-Tidy-20240903.tar.gz b/Perl-Tidy-20240903.tar.gz deleted file mode 100644 index f5725de..0000000 --- a/Perl-Tidy-20240903.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:22fba4ba84cf2ba5fb4ade3ae65c6deb48a0ee61fe446858d3ae8c5e00f37e81 -size 1111605 diff --git a/Perl-Tidy-20250105.tar.gz b/Perl-Tidy-20250105.tar.gz new file mode 100644 index 0000000..438b224 --- /dev/null +++ b/Perl-Tidy-20250105.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2cea2b909da69ab6d09f00dcb27cd9551184a5e4267d825da15d2f52e228632 +size 1142977 diff --git a/perl-Perl-Tidy.changes b/perl-Perl-Tidy.changes index 5622f8e..ff08c4e 100644 --- a/perl-Perl-Tidy.changes +++ b/perl-Perl-Tidy.changes @@ -1,3 +1,101 @@ +------------------------------------------------------------------- +Sun Jan 5 05:32:07 UTC 2025 - Tina Müller + +- updated to 20250105.0.0 (20250105) + see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md + + ## 2025 01 05 + - If a file consists only of comments, then the starting indentation will + be guessed from the indentation of the first comment. Previously it would + be guessed to be zero. Parameter --starting-indentation-level=n can be + used to specify an indentation and avoid a guess. This issue can + arise when formatting a block of comments from within an editor. + - Added missing 'use File::Temp' for -html option. This was causing the + message: "Undefined subroutine &File::Temp::tempfile called at ..." + See git #176. + - A new parameter --dump-unique-keys, or -duk, dumps a list of hash keys + which appear to be used just once, and do not appear among the quoted + strings in a file. For example: + perltidy -duk File.pm >output.txt + This can help locate misspelled hash keys. + - Line breaks at long chains of method calls now break at all calls + with args in parens, as in this example from git #171 + # Old default + sub bla_p( $value = 42 ) { + return Mojo::Promise->resolve($value)->then( sub { shift() / 2 } ) + ->then( sub { shift() + 6 } )->then( sub { shift() / 2 } ) + ->catch( sub { warn shift } ); + } + # New default + sub bla_p( $value = 42 ) { + return Mojo::Promise->resolve($value) + ->then( sub { shift() / 2 } ) + ->then( sub { shift() + 6 } ) + ->then( sub { shift() / 2 } ) + ->catch( sub { warn shift } ); + } + - Parameter --break-at-old-method-breakpoints, or -bom, has been + updated to insure that it only applies to lines beginning with + method calls, as intended. Line breaks for all lines beginning with + '->', even non-method calls, can be retained by using + --keep-old-breakpoints_before='->'. + - Added parameter --multiple-token-tightness=s, or -mutt=s. + The default value --paren-tightness=1 adds space within the parens + if, and only if, the container holds multiple tokens. Some perltidy + tokens may be rather long, and it can be preferable to also space some of + them as if they were multiple tokens. This can be done with this parameter, + and it applies to parens as well as square brackets and curly braces. + For example, the default below has no space within the square brackets: + # perltidy + my $rlist = [qw( alpha beta gamma )]; + Spaces can be obtained with: + # perltidy -mutt='q*' + my $rlist = [ qw( alpha beta gamma ) ]; + The parameter -mutt='q*' means treat qw and similar quote operators as + multiple tokens. The manual has details; git #120 has another example. + - Added parameter --indent-leading-semicolon, -ils; see git #171. When + this is negated, a line with a leading semicolon does not get the extra + leading continuation indentation spaces (defined with -ci=n). + - Space around here doc delimiters follow spacing controls better. For + example, a space is now added before the closing paren here: + OLD: (without the here doc): + push( @script, <<'EOT'); + NEW: + push( @script, <<'EOT' ); + Also, any spaces between the '<<' and here target are removed (git #174): + OLD: + push( @script, << 'EOT'); + NEW: + push( @script, <<'EOT' ); + - Added parameter --break-at-trailing-comma-types=s, or -btct=s, where + s is a string which selects trailing commas. For example, -btct='f(b' + places a line break after all bare trailing commas in function calls. + The manual has details. + - Fix git #165, strings beginning with v before => gave an incorrect error + message. + - The parameter --add-lone-trailing-commas, -altc, is now on by default. + This will simplify input for trailing comma operations. Use + --noadd-lone-trailing-commas, or -naltc to turn it off. + - More edge cases for adding and deleting trailing commas are now handled + (git #156). + - A problem has been fixed in which the addition or deletion of trailing + commas with the -atc or -dtc flags did not occur due to early convergence + when the -conv flag was set (git #143). + - Added parameter --qw-as-function, or -qwaf, discussed in git #164. + When this parameter is set, a qw list which begins with 'qw(' is + formatted as if it were a function call with call args being a list + of comma-separated quoted items. For example, given this input: + @fields = qw( $st_dev $st_ino $st_mode $st_nlink $st_uid + $st_gid $st_rdev $st_size $st_atime $st_mtime $st_ctime + $st_blksize $st_blocks); + # perltidy -qwaf + @fields = qw( + $st_dev $st_ino $st_mode $st_nlink + $st_uid $st_gid $st_rdev $st_size + $st_atime $st_mtime $st_ctime $st_blksize + $st_blocks + ); + ------------------------------------------------------------------- Wed Sep 4 05:34:24 UTC 2024 - Tina Müller diff --git a/perl-Perl-Tidy.spec b/perl-Perl-Tidy.spec index dc0b435..6af8e09 100644 --- a/perl-Perl-Tidy.spec +++ b/perl-Perl-Tidy.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Perl-Tidy # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,10 +18,10 @@ %define cpan_name Perl-Tidy Name: perl-Perl-Tidy -Version: 20240903.0.0 +Version: 20250105.0.0 Release: 0 -# 20240903 -> normalize -> 20240903.0.0 -%define cpan_version 20240903 +# 20250105 -> normalize -> 20250105.0.0 +%define cpan_version 20250105 #Upstream: GPL-1.0-or-later License: GPL-2.0-or-later Summary: Indent and reformat perl scripts -- 2.51.1 From a4d1b0097f28be7a1920ea255ce82e882d0be7b14afb8f26cd1cb8b403b37f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Wed, 19 Feb 2025 12:46:51 +0000 Subject: [PATCH 3/9] Accepting request 1247059 from devel:languages:perl:autoupdate - updated to 20250214.0.0 (20250214) see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md ## 2025 02 14 - A new option --keep-old-blank-lines-exceptions=s, or --kblx=s, allows selected blank lines to be ignored when an input stream is read. The parameter s is used to select the blank lines to be ignored. This option provides an inverse to other blank line parameters. The manual has details. See discussion git #180. - A new option --warn-unused-keys, or -wuk, has been added which will produce warnings for unused hash keys during formatting. This is similar to --dump-unused-keys, which just exits and does not continue formatting. A related new parameter --warn-unused-keys-cutoff=N provides control over a filter which prevents warnings for keys which appear to be members of large hashes used to communicate with external packages. The manual has details. See git #177. - A new option --pack-opening-types='->' has been added to provide more control over breaks of method call chains. It tells perltidy not to break at every method call when a chain of calls spans multiple lines. This was the behavior in versions prior to 20250105. The default starting with 20250105 is to break at each call of a method call chain which spans multiple lines. See git #171. OBS-URL: https://build.opensuse.org/request/show/1247059 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-Tidy?expand=0&rev=92 --- Perl-Tidy-20250105.tar.gz | 3 --- Perl-Tidy-20250214.tar.gz | 3 +++ perl-Perl-Tidy.changes | 26 ++++++++++++++++++++++++++ perl-Perl-Tidy.spec | 8 ++++---- 4 files changed, 33 insertions(+), 7 deletions(-) delete mode 100644 Perl-Tidy-20250105.tar.gz create mode 100644 Perl-Tidy-20250214.tar.gz diff --git a/Perl-Tidy-20250105.tar.gz b/Perl-Tidy-20250105.tar.gz deleted file mode 100644 index 438b224..0000000 --- a/Perl-Tidy-20250105.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2cea2b909da69ab6d09f00dcb27cd9551184a5e4267d825da15d2f52e228632 -size 1142977 diff --git a/Perl-Tidy-20250214.tar.gz b/Perl-Tidy-20250214.tar.gz new file mode 100644 index 0000000..90de787 --- /dev/null +++ b/Perl-Tidy-20250214.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e71d8e93b2ff55ed7e0cc981117424499edfc927e96e353dbc6fbea1f2a81fa3 +size 1167718 diff --git a/perl-Perl-Tidy.changes b/perl-Perl-Tidy.changes index ff08c4e..1c2698f 100644 --- a/perl-Perl-Tidy.changes +++ b/perl-Perl-Tidy.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Thu Feb 13 16:25:55 UTC 2025 - Tina Müller + +- updated to 20250214.0.0 (20250214) + see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md + + ## 2025 02 14 + - A new option --keep-old-blank-lines-exceptions=s, or --kblx=s, + allows selected blank lines to be ignored when an input stream + is read. The parameter s is used to select the blank lines to + be ignored. This option provides an inverse to other blank line + parameters. The manual has details. See discussion git #180. + - A new option --warn-unused-keys, or -wuk, has been added which will + produce warnings for unused hash keys during formatting. This is similar + to --dump-unused-keys, which just exits and does not continue formatting. + A related new parameter --warn-unused-keys-cutoff=N provides control + over a filter which prevents warnings for keys which appear to be + members of large hashes used to communicate with external packages. + The manual has details. See git #177. + - A new option --pack-opening-types='->' has been added to provide more + control over breaks of method call chains. It tells perltidy not to + break at every method call when a chain of calls spans multiple lines. + This was the behavior in versions prior to 20250105. The default + starting with 20250105 is to break at each call of a method call chain + which spans multiple lines. See git #171. + ------------------------------------------------------------------- Sun Jan 5 05:32:07 UTC 2025 - Tina Müller diff --git a/perl-Perl-Tidy.spec b/perl-Perl-Tidy.spec index 6af8e09..65d797d 100644 --- a/perl-Perl-Tidy.spec +++ b/perl-Perl-Tidy.spec @@ -18,10 +18,10 @@ %define cpan_name Perl-Tidy Name: perl-Perl-Tidy -Version: 20250105.0.0 +Version: 20250214.0.0 Release: 0 -# 20250105 -> normalize -> 20250105.0.0 -%define cpan_version 20250105 +# 20250214 -> normalize -> 20250214.0.0 +%define cpan_version 20250214 #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} +%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 -- 2.51.1 From 061554ed507b4f2abeecae48e0dcaa1d83b68f766cabf055f4cad77236a86bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Mon, 24 Mar 2025 20:30:22 +0000 Subject: [PATCH 4/9] Accepting request 1254806 from devel:languages:perl:autoupdate - updated to 20250311.0.0 (20250311) see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md ## 2025 03 11 - The options --want-call-parens and --nowant-call-parens were accidentally being skipped in version 20250214. This has been fixed. - Fixed git #32, a tokenization error with message "hit EOF seeking end of quote/pattern" for a function call without paren or arg before a ternary operator. - A new option --dump-similar-keys will dump hash keys which are similar but slightly different to standard output and then exit. A related option --warn-similar-keys will report keys with are similar to the error output while formatting. Both of these can be controlled by parameters which are described in the input manual. - A new option --dump-hash-keys will dump all hash keys found by perltidy to standard output. - The output table for --dump-block-summary has an additional field. It is an alternate McCabe complexity count which is the same as the previous count except for subs. For subs, the complexity number is reduced by the values for any contained anonymous subs. - Fix git #181, remove continuation indentation from closing brace of an anonymous sub which terminates an input stream. OBS-URL: https://build.opensuse.org/request/show/1254806 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-Tidy?expand=0&rev=94 --- Perl-Tidy-20250214.tar.gz | 3 --- Perl-Tidy-20250311.tar.gz | 3 +++ perl-Perl-Tidy.changes | 26 ++++++++++++++++++++++++++ perl-Perl-Tidy.spec | 6 +++--- 4 files changed, 32 insertions(+), 6 deletions(-) delete mode 100644 Perl-Tidy-20250214.tar.gz create mode 100644 Perl-Tidy-20250311.tar.gz diff --git a/Perl-Tidy-20250214.tar.gz b/Perl-Tidy-20250214.tar.gz deleted file mode 100644 index 90de787..0000000 --- a/Perl-Tidy-20250214.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e71d8e93b2ff55ed7e0cc981117424499edfc927e96e353dbc6fbea1f2a81fa3 -size 1167718 diff --git a/Perl-Tidy-20250311.tar.gz b/Perl-Tidy-20250311.tar.gz new file mode 100644 index 0000000..5619d17 --- /dev/null +++ b/Perl-Tidy-20250311.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fc6ceda4e3c9fc79c777afbcf8d167ecc35b16ff81c9cbeaf727b15d0502d8a +size 1178345 diff --git a/perl-Perl-Tidy.changes b/perl-Perl-Tidy.changes index 1c2698f..81dddbf 100644 --- a/perl-Perl-Tidy.changes +++ b/perl-Perl-Tidy.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Wed Mar 12 05:43:42 UTC 2025 - Tina Müller + +- updated to 20250311.0.0 (20250311) + see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md + + ## 2025 03 11 + - The options --want-call-parens and --nowant-call-parens were accidentally + being skipped in version 20250214. This has been fixed. + - Fixed git #32, a tokenization error with message "hit EOF seeking end of + quote/pattern" for a function call without paren or arg before a + ternary operator. + - A new option --dump-similar-keys will dump hash keys which are + similar but slightly different to standard output and then exit. + A related option --warn-similar-keys will report keys with are similar + to the error output while formatting. Both of these can be controlled + by parameters which are described in the input manual. + - A new option --dump-hash-keys will dump all hash keys found by + perltidy to standard output. + - The output table for --dump-block-summary has an additional field. + It is an alternate McCabe complexity count which is the same as + the previous count except for subs. For subs, the complexity number + is reduced by the values for any contained anonymous subs. + - Fix git #181, remove continuation indentation from closing brace + of an anonymous sub which terminates an input stream. + ------------------------------------------------------------------- Thu Feb 13 16:25:55 UTC 2025 - Tina Müller diff --git a/perl-Perl-Tidy.spec b/perl-Perl-Tidy.spec index 65d797d..9508865 100644 --- a/perl-Perl-Tidy.spec +++ b/perl-Perl-Tidy.spec @@ -18,10 +18,10 @@ %define cpan_name Perl-Tidy Name: perl-Perl-Tidy -Version: 20250214.0.0 +Version: 20250311.0.0 Release: 0 -# 20250214 -> normalize -> 20250214.0.0 -%define cpan_version 20250214 +# 20250311 -> normalize -> 20250311.0.0 +%define cpan_version 20250311 #Upstream: GPL-1.0-or-later License: GPL-2.0-or-later Summary: Indent and reformat perl scripts -- 2.51.1 From 3c8a0a9861000c38ce5399b9c05fec3e36b90413b70513563347bcc750a5a449 Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Tue, 24 Jun 2025 07:16:01 +0000 Subject: [PATCH 5/9] Accepting request 1288028 from devel:languages:perl:autoupdate - 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/1288028 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-Tidy?expand=0&rev=96 --- Perl-Tidy-20250311.tar.gz | 3 -- Perl-Tidy-20250616.tar.gz | 3 ++ perl-Perl-Tidy.changes | 61 +++++++++++++++++++++++++++++++++++++++ perl-Perl-Tidy.spec | 8 ++--- 4 files changed, 68 insertions(+), 7 deletions(-) delete mode 100644 Perl-Tidy-20250311.tar.gz create mode 100644 Perl-Tidy-20250616.tar.gz diff --git a/Perl-Tidy-20250311.tar.gz b/Perl-Tidy-20250311.tar.gz deleted file mode 100644 index 5619d17..0000000 --- a/Perl-Tidy-20250311.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7fc6ceda4e3c9fc79c777afbcf8d167ecc35b16ff81c9cbeaf727b15d0502d8a -size 1178345 diff --git a/Perl-Tidy-20250616.tar.gz b/Perl-Tidy-20250616.tar.gz new file mode 100644 index 0000000..1eff6e1 --- /dev/null +++ b/Perl-Tidy-20250616.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b07517e3f6198d24a4890665338847d79008f7dcc68461811905c7e62a1e689a +size 1198542 diff --git a/perl-Perl-Tidy.changes b/perl-Perl-Tidy.changes index 81dddbf..ed8bc8a 100644 --- a/perl-Perl-Tidy.changes +++ b/perl-Perl-Tidy.changes @@ -1,3 +1,64 @@ +------------------------------------------------------------------- +Mon Jun 16 05:39:09 UTC 2025 - Tina Müller + +- 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 diff --git a/perl-Perl-Tidy.spec b/perl-Perl-Tidy.spec index 9508865..ba1321f 100644 --- a/perl-Perl-Tidy.spec +++ b/perl-Perl-Tidy.spec @@ -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 -- 2.51.1 From adc7e961655a8d4c6cf1beeee8ad7efa913900cd0f070a2321a581109ded9444 Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Sun, 20 Jul 2025 05:26:09 +0000 Subject: [PATCH 6/9] Accepting request 1294129 from devel:languages:perl:autoupdate - updated to 20250711.0.0 (20250711) see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md ## 2025 07 11 - Update for issue git #187: add vertical alignment of colons used as attribute separators. These colons have token type 'A', and this vertical alignment will be on by default (since all vertical alignments occur by default). For example: # old default field $tile_size : param; field $bar : reader : writer; # new default with alignment of token type 'A' field $tile_size : param; field $bar : reader : writer; This alignment can be turned off to recover the previous formatting with --valign-exclusion-list='A', or -vxl='A'. - Update for issue git #186: if a closing format skipping comment '#>>>' is encountered before any '#<<<' is seen, then format skipping is assumed to start with the first line of the file. Use --nodetect-format-skipping-from-start or -ndfsfs to prevent this check. - Added option --code-skipping-from-start, or -csfs. This causes code-skipping to begin from the start of a file even though there is no starting marker comment, '#< + +- updated to 20250711.0.0 (20250711) + see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md + + ## 2025 07 11 + - Update for issue git #187: add vertical alignment of colons + used as attribute separators. These colons have token type 'A', + and this vertical alignment will be on by default (since all + vertical alignments occur by default). For example: + # old default + field $tile_size : param; + field $bar : reader : writer; + # new default with alignment of token type 'A' + field $tile_size : param; + field $bar : reader : writer; + This alignment can be turned off to recover the previous formatting + with --valign-exclusion-list='A', or -vxl='A'. + - Update for issue git #186: if a closing format skipping comment + '#>>>' is encountered before any '#<<<' is seen, then format + skipping is assumed to start with the first line of the file. + Use --nodetect-format-skipping-from-start or -ndfsfs to prevent + this check. + - Added option --code-skipping-from-start, or -csfs. This causes + code-skipping to begin from the start of a file even though there + is no starting marker comment, '#< diff --git a/perl-Perl-Tidy.spec b/perl-Perl-Tidy.spec index ba1321f..acb2b66 100644 --- a/perl-Perl-Tidy.spec +++ b/perl-Perl-Tidy.spec @@ -18,10 +18,10 @@ %define cpan_name Perl-Tidy Name: perl-Perl-Tidy -Version: 20250616.0.0 +Version: 20250711.0.0 Release: 0 -# 20250616 -> normalize -> 20250616.0.0 -%define cpan_version 20250616 +# 20250711 -> normalize -> 20250711.0.0 +%define cpan_version 20250711 #Upstream: GPL-1.0-or-later License: GPL-2.0-or-later Summary: Indent and reformat perl scripts -- 2.51.1 From 71b1c41c0f2ff8c3515d9f92cb8c8e19b6de55c73b4f9cb55ca288692d4e980e Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Tue, 12 Aug 2025 18:16:30 +0200 Subject: [PATCH 7/9] Add Gitea build results --- README.md | 12 ++++++++++++ perl-Perl-Tidy.spec | 1 + 2 files changed, 13 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..eacb4e9 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ + +## Build Results + +Current state of perl in openSUSE:Factory is + +![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-Perl-Tidy/standard) + +The current state of perl in the devel project build (devel:languages:perl) + +![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-Perl-Tidy) + + diff --git a/perl-Perl-Tidy.spec b/perl-Perl-Tidy.spec index acb2b66..08d0dbf 100644 --- a/perl-Perl-Tidy.spec +++ b/perl-Perl-Tidy.spec @@ -28,6 +28,7 @@ Summary: Indent and reformat perl scripts URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/S/SH/SHANCOCK/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml +Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros -- 2.51.1 From 874ec01727b2f6ede8605c21421fcbb0451879b141e572c74bd1ff267513f91f Mon Sep 17 00:00:00 2001 From: "Tina Mueller (cpanmirror)" Date: Wed, 8 Oct 2025 12:46:25 +0000 Subject: [PATCH 8/9] Automatic update to v20250912.0.0 (20250912) --- Perl-Tidy-20250711.tar.gz | 3 --- Perl-Tidy-20250912.tar.gz | 3 +++ perl-Perl-Tidy.changes | 39 +++++++++++++++++++++++++++++++++++++++ perl-Perl-Tidy.spec | 10 +++++----- 4 files changed, 47 insertions(+), 8 deletions(-) delete mode 100644 Perl-Tidy-20250711.tar.gz create mode 100644 Perl-Tidy-20250912.tar.gz diff --git a/Perl-Tidy-20250711.tar.gz b/Perl-Tidy-20250711.tar.gz deleted file mode 100644 index 6e3913c..0000000 --- a/Perl-Tidy-20250711.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:347aa90bcefbde2b590daf48d387ef1fd9b7a73a996b040269f11ab6fb8ba448 -size 1202227 diff --git a/Perl-Tidy-20250912.tar.gz b/Perl-Tidy-20250912.tar.gz new file mode 100644 index 0000000..30dc6a7 --- /dev/null +++ b/Perl-Tidy-20250912.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b48ee48835fbceab2fde0f1c59c5a539f046e3bb236fa34d8b60871fd79cf0a4 +size 1212139 diff --git a/perl-Perl-Tidy.changes b/perl-Perl-Tidy.changes index 937f7b5..cef9c05 100644 --- a/perl-Perl-Tidy.changes +++ b/perl-Perl-Tidy.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Wed Oct 8 12:46:25 UTC 2025 - Tina Müller + +- updated to 20250912.0.0 (20250912) + see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md + + ## 2025 09 12 + - Fix git #191, where a new check to escape whitespace in a qw() quote + in perl-5.43.2 caused Perl::Tidy to emit unwanted warning messages. + - A new output field for the --dump-block-summary command gives + the number of lines of comments and pod in a block. For subs and + anonymous subs, the existence of header comments is also indicated. + - Added --dump-nested-ternaries, --warn-nested-ternaries, and + --nested-ternary-maximum-depth=n. These can be used to locate + nested ternary statements in a script. + - For the --line-up-parentheses option, a line length tolerance was + adjusted by 1 character to help keep table formatting unchanged when + adding and deleting trailing commas. This can occasionally change + formatting of some small lists when formatted with -lp. + - In hash key lists which have side comments after sub blocks, + long lines which were previously broken before a comma may now + be broken after a previous '=>'. This change was made to + fix a very rare stability problem. For example: + OLD: + '+' => sub { $turtle->turn( $changes->{"dtheta"} ); } + , # Turn clockwise + NEW: + '+' => + sub { $turtle->turn( $changes->{"dtheta"} ); }, # Turn clockwise + - Fixed undefined variable reference when --dump-block-summary was + run with --dump-block-types='package'. The dump was okay, but + an error message like the following was emitted: + Use of uninitialized value $seqno in hash element ... + - The parameter --integer-range-check no longer accepts a 0 value, which + allowed integer range checks to be skipped. This option was included + temporarily when new range-checking code was added to provide a + workaround in case problems arose with the new logic. No problems have + been encountered, so this has been removed. + ------------------------------------------------------------------- Sat Jul 12 05:36:54 UTC 2025 - Tina Müller diff --git a/perl-Perl-Tidy.spec b/perl-Perl-Tidy.spec index 08d0dbf..8ca63ff 100644 --- a/perl-Perl-Tidy.spec +++ b/perl-Perl-Tidy.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Perl-Tidy # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,10 +18,10 @@ %define cpan_name Perl-Tidy Name: perl-Perl-Tidy -Version: 20250711.0.0 +Version: 20250912.0.0 Release: 0 -# 20250711 -> normalize -> 20250711.0.0 -%define cpan_version 20250711 +# 20250912 -> normalize -> 20250912.0.0 +%define cpan_version 20250912 #Upstream: GPL-1.0-or-later License: GPL-2.0-or-later Summary: Indent and reformat perl scripts @@ -83,7 +83,7 @@ make test %perl_gen_filelist %files -f %{name}.files -%doc BUGS.md CHANGES.md docs examples pm2pl README.md +%doc BUGS.md CHANGES.md docs examples pm2pl README.md SECURITY.md %license COPYING %changelog -- 2.51.1 From 94d58cc78a8ba446785a3bdd4f657b043445e9b31be175b5f44693e01cf6fbf1 Mon Sep 17 00:00:00 2001 From: cpanmirror Date: Fri, 9 Jan 2026 05:48:14 +0000 Subject: [PATCH 9/9] Automatic update to Perl-Tidy-20260109.tar.gz --- Perl-Tidy-20250912.tar.gz | 3 -- Perl-Tidy-20260109.tar.gz | 3 ++ perl-Perl-Tidy.changes | 58 +++++++++++++++++++++++++++++++++++++++ perl-Perl-Tidy.spec | 8 +++--- 4 files changed, 65 insertions(+), 7 deletions(-) delete mode 100644 Perl-Tidy-20250912.tar.gz create mode 100644 Perl-Tidy-20260109.tar.gz diff --git a/Perl-Tidy-20250912.tar.gz b/Perl-Tidy-20250912.tar.gz deleted file mode 100644 index 30dc6a7..0000000 --- a/Perl-Tidy-20250912.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b48ee48835fbceab2fde0f1c59c5a539f046e3bb236fa34d8b60871fd79cf0a4 -size 1212139 diff --git a/Perl-Tidy-20260109.tar.gz b/Perl-Tidy-20260109.tar.gz new file mode 100644 index 0000000..9121e04 --- /dev/null +++ b/Perl-Tidy-20260109.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76404514505ba0c768a394d4f28ea0691c8899b049258aa545b7042265e14811 +size 1231052 diff --git a/perl-Perl-Tidy.changes b/perl-Perl-Tidy.changes index cef9c05..49ee0a1 100644 --- a/perl-Perl-Tidy.changes +++ b/perl-Perl-Tidy.changes @@ -1,3 +1,61 @@ +------------------------------------------------------------------- +Fri Jan 9 05:48:13 UTC 2026 - Tina Müller + +- updated to 20260109.0.0 (20260109) + see /usr/share/doc/packages/perl-Perl-Tidy/CHANGES.md + + ## 2026 01 09 + - A new parameter --break-at-old-trailing-loops, or -botl, keeps + existing line breaks at these trailing loop control keywords: + 'for', 'foreach', 'while', 'until'. + This is the default. For example, given the following two input lines: + FindExt::scan_ext("../$_") + foreach qw(cpan dist ext); + The new default keeps two lines. The previous version flattened the + statement, since it fits on a single line: + FindExt::scan_ext("../$_") foreach qw(cpan dist ext); + Use -nbotl to deactivate this new option. + - A related new parameter --break-at-old-trailing-conditionals, or -botc + keeps existing line breaks at trailing conditional control keywords: + 'if', 'unless'. + This is the default. The capability was previously handled by + parameter --break-at-old-logical-breakpoints, or -bol, which was also + true by default, but which also also controls logical breakpoints, + such as '&&'. This change simplifies the input. + Use -nbotc to deactivate this option. + - A new switch --blanks-before-opening-comments, -bboc, has been added + for issue git #192. This is on by default and allows perltidy to insert + a blank line before full-line comments which start at a new indentation + level. Use the negated form to prevent such blank lines, -nbboc + or --noblanks-before-opening-comments + - A new parameter --dump-keyword-usage, or -dku, can be used to dump a + list of the the perl builtin keywords used in a file. A companion flag + --dump-keyword-usage-list=s can be used to give a specific list of + keywords or user functions to be included in the list. + - When the -html option is used with the default --pod2html setting, + perltidy will look for a pod-to-html formatter in this order: + Pod::Simple::XHTML, Pod::Simple::HTML, and Pod::Html. A preferred + formatter can be selected with --use-pod-formatter=s. Previously + the only option was Pod::Html, and it can still be selected with + --use-pod-formatter="Pod::Html". The reason for this update is + that this older formatter has limitations, and requires the + creation of a temporary file for data transfer. This update also + allows formatting of pod text containing non-ascii characters. + - When perltidy is run with the -html option, and pod is rendered to html + with Pod::Html, the pod2html option 'backlink' could not be set in + in previous versions due to a programming error. This has been fixed. + This setting can now be made by giving perltidy the flag '--podbacklink'. + - The default for --timeout-in-seconds is reduced from 10 to 5 seconds. + A default value of 10 seemed excessive. It can be changed with -tos=n. + - The option --delete-weld-interfering-commas, or -dwic, has been + made much more accurate. It now makes fewer unnecessary comma deletions. + - This version does more extensive checking of all string input parameters + and will exit early on an error. The intention is to catch input errors + as early as possible. + - Fixed issue with --dump-mixed-call-parens. A trailing statement modifier + such as the following 'if' was incorrectly being counted as having parens: + return $class if ($old_quote - $new_quote) == 0; + ------------------------------------------------------------------- Wed Oct 8 12:46:25 UTC 2025 - Tina Müller diff --git a/perl-Perl-Tidy.spec b/perl-Perl-Tidy.spec index 8ca63ff..f6b6fae 100644 --- a/perl-Perl-Tidy.spec +++ b/perl-Perl-Tidy.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Perl-Tidy # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,10 +18,10 @@ %define cpan_name Perl-Tidy Name: perl-Perl-Tidy -Version: 20250912.0.0 +Version: 20260109.0.0 Release: 0 -# 20250912 -> normalize -> 20250912.0.0 -%define cpan_version 20250912 +# 20260109 -> normalize -> 20260109.0.0 +%define cpan_version 20260109 #Upstream: GPL-1.0-or-later License: GPL-2.0-or-later Summary: Indent and reformat perl scripts -- 2.51.1