New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank lines around var/let #1461

Uncommon opened this Issue Apr 24, 2017 · 1 comment


None yet
2 participants

Uncommon commented Apr 24, 2017

I like to have blank lines separating groups of var/let statements from other kinds of statements.

I'm taking a stab at implementing this myself, so I'm looking for some feedback on whether I'm on the right track. The angle I'm looking at right now is looping through file.structure.dictionary.substructure to collect a list of lines that have var/let statements (SwiftDeclarationKind.var***), and then making sure they're all surrounded by blank lines appropriately. Does that sound like a good approach?


This comment has been minimized.

Show comment
Hide comment

marcelofabri Jul 15, 2017


Implemented in #1471.


marcelofabri commented Jul 15, 2017

Implemented in #1471.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment