[PATCH proxmox-perltidy] use more explicit --cuddled-blocks rather than --cuddled-else

Fiona Ebner
2026-03-27T13:22:51Z

The --cuddled-else flag is equivalent to --cuddled-blocks, but might
wrongly suggest that it only applies to else (and elsif). While those
are the most relevant ones for the Proxmox codebases, there are a few
other ones (see 'man perltidy'). Using --cuddled-blocks also better
suggests that the --cuddled-block-list option is a modifier that only
takes effect when --cuddled-blocks itself is present.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
src/perltidyrc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/perltidyrc b/src/perltidyrc
index 300cf81..4299f29 100644
--- a/src/perltidyrc
+++ b/src/perltidyrc
@@ -70,7 +70,7 @@
--maximum-consecutive-blank-lines=1 # hard-code the default

# Control structure formatting
---cuddled-else # avoid extra line for else
+--cuddled-blocks # avoid extra line for else, elsif, ...
--cuddled-block-list=sort,map,grep # also cuddle sort, map and grep over standard else/elsif/...

--keyword-group-blanks-inside
--
2.47.3