[Koha-bugs] [Bug 30002] Add project-level perltidyrc

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 15 14:41:32 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30002

--- Comment #41 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
It is not very clear what we exactly need to change now (or even why).
A simple example.

IIRC we needed to do this (no space after if and before parenthesis, but spaces
around the condition):
if( $a ) {
But perltidy changes this to if ($a) {
Space after if, and no spaces around one condition.

But hey, things change for
if( $a && $b ) {
This should be now: if ( $a && $b ) {
Spaces around multiple conditions.

Similar thing for function calls:
Instead of test( 1 ) we now need test(1)
But test( 1, 2 ) is fine.

These are indeed stupid examples, but probably the things that we type most of
the time.

We should imo not fail patches for occurrences of if( $a ) or test( 1 ), since
that was our style until this report..

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list