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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
In
caseexpressions, when there are longwhenstatements, sqlfmt put thethenstatements at the same indentation as thewhenstatements, which makes them harder to read.If we look at the dbt style guide (e.g. here and here), the
thenis more indented.To Reproduce
Expected behavior
Actual behavior
thenare 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