--space-function-paren
--want-trailing-commas='b'
+==> b1456.in <==
+ $resources->{$group_id} =
+ {
+ id => $group_id, ident => $group_ident,
+ firstname => $user->{firstname},
+ lastname => $user->{lastname},
+ email => $user->{email},
+ timezone_id => $user->{timezone_id},
+ name => $user->{firstname} .
+ " " .
+ $user->{lastname}, selected => '0'
+ };
+
+ $resources->{$group_id} =
+ {
+ id => $group_id, ident => $group_ident,
+ firstname => $user->{firstname},
+ lastname => $user->{lastname},
+ email => $user->{email},
+ timezone_id => $user->{timezone_id},
+ name => $user->{firstname} .
+ " " . $user->{lastname}, selected => '0',
+ };
+
+==> b1456.par <==
+--add-trailing-commas
+--break-after-all-operators
+--break-at-old-comma-breakpoints
+--delete-trailing-commas
+--indent-columns=5
+--keep-old-breakpoints-after='Z <<>> += : b = -- ] //= {'
+--maximum-line-length=71
+--short-concatenation-item-length=1
+--want-trailing-commas='h'
+
==> b146.in <==
# State 1
)
}
+==> b1456 <==
+ $resources->{$group_id} =
+ {
+ id => $group_id, ident => $group_ident,
+ firstname => $user->{firstname},
+ lastname => $user->{lastname},
+ email => $user->{email},
+ timezone_id => $user->{timezone_id},
+ name => $user->{firstname} .
+ " " . $user->{lastname}, selected => '0',
+ };
+
+ $resources->{$group_id} =
+ {
+ id => $group_id, ident => $group_ident,
+ firstname => $user->{firstname},
+ lastname => $user->{lastname},
+ email => $user->{email},
+ timezone_id => $user->{timezone_id},
+ name => $user->{firstname} .
+ " " . $user->{lastname}, selected => '0',
+ };
+
==> b146 <==
# State 1
=>(
q{$'},q{$$},
q{$#},q{$:},
- )
- ;## no critic ( RequireInterpolationOfMetachars, ProhibitQuotedWordLists )
+ );## no critic ( RequireInterpolationOfMetachars, ProhibitQuotedWordLists )
# State 2
Readonly::Array
=>(
q{$'},q{$$},
q{$#},q{$:},
- )
- ;## no critic ( RequireInterpolationOfMetachars, ProhibitQuotedWordLists )
+ );## no critic ( RequireInterpolationOfMetachars, ProhibitQuotedWordLists )
==> b183 <==
{
$match = 1;
}
+
+ # Patch for instability issue b1456: -boc can trick this test; so
+ # skip it when deleting commas to avoid possible instability
+ # with option 'h' in combination with -atc -dtc -boc;
+ elsif (
+ $trailing_comma_style eq 'h'
+
+ # this is a deletion (due to -dtc)
+ && !$if_add
+
+ # -atc is also set
+ && $rOpts_add_trailing_commas
+
+ # -boc is set and active
+ && $rOpts_break_at_old_comma_breakpoints
+ && !$rOpts_ignore_old_breakpoints
+ )
+ {
+ # ignore this test
+ }
+
else {
return;
}