You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both leave empty lines from original format, but collapse them to a standard number of lines (ie. 0 empty lines remain 0, 7 or 6 or 1 empty lines all become eg 1 empty line)
Black goes even further and adds empty lines in some places (which I think you could consider doing eg around CTEs for readability)
No more than 2 consecutive blank lines of depth (0,0). In other words, we'll allow 2 blank lines in between statements (e.g., between a {{ config }} block and select, which seems popular)
No more than 1 consecutive blank line at any other depth.
(This is similar to Black, where there are 2 spaces between module-level classes/functions and 1 space between anything nested deeper than that. Right now we'll just enforce an upper bound, but in the future we can get more opinionated)
* feat: remove extra blank lines, close#249
* chore: bump primer refs
* feat: also remove extra newlines at start of files
* chore: bump primer refs again
The opinion of some formatters for other languages
Both leave empty lines from original format, but collapse them to a standard number of lines (ie. 0 empty lines remain 0, 7 or 6 or 1 empty lines all become eg 1 empty line)
Black goes even further and adds empty lines in some places (which I think you could consider doing eg around CTEs for readability)
Originally posted by @nfcampos in #230 (comment)
The text was updated successfully, but these errors were encountered: