Indentation of the then
statement in case
expressions
#303
Replies: 1 comment 3 replies
-
@f-tremblay Thanks for the feedback. This is the intended behavior, so I've moved this to a discussion. I think indented
|
Beta Was this translation helpful? Give feedback.
-
Describe the bug
In
case
expressions, when there are longwhen
statements, sqlfmt put thethen
statements at the same indentation as thewhen
statements, which makes them harder to read.If we look at the dbt style guide (e.g. here and here), the
then
is more indented.To Reproduce
Expected behavior
Actual behavior
then
are not indented properly (seeTo Reproduce
)Additional context
What is the output of
sqlfmt --version
?sqlfmt, version 0.13.0
Beta Was this translation helpful? Give feedback.
All reactions