From 88818c1cc90f97273b735b06ec7dfa6dd4f2604e Mon Sep 17 00:00:00 2001 From: Jared Johnson Date: Tue, 27 Jan 2015 19:35:55 -0600 Subject: [PATCH] No tight square brackets or curly braces > Likewise, the parameter -sbt=n or --square-bracket-tightness=n controls the > space within square brackets, as illustrated below. > > $width = $col[ $j + $k ] - $col[ $j ]; # -sbt=0 > $width = $col[ $j + $k ] - $col[$j]; # -sbt=1 (default) > $width = $col[$j + $k] - $col[$j]; # -sbt=2 > Curly braces which do not contain code blocks are controlled by the > parameter -bt=n or --brace-tightness=n. > > $obj->{ $parsed_sql->{ 'table' }[0] }; # -bt=0 > $obj->{ $parsed_sql->{'table'}[0] }; # -bt=1 (default) > $obj->{$parsed_sql->{'table'}[0]}; # -bt=2 As with PR #201, I can't find any previous concensus on introducing this and for myself, I prefer the default. FTR I can't find anything else in .perltidyrc that I have any bones with :) --- .perltidyrc | 2 -- 1 file changed, 2 deletions(-) diff --git a/.perltidyrc b/.perltidyrc index 54db591..a2342eb 100644 --- a/.perltidyrc +++ b/.perltidyrc @@ -2,8 +2,6 @@ -i=4 # 4 space indentation (we used to use 2; in the future we'll use 4) -ci=2 # continuation indention --sbt=2 # tight square parens --bt=2 # tight curly braces -bbt=0 # open code block curly braces -lp # line up with parentheses