Skip to content
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

Closed
Uncommon opened this issue Apr 24, 2017 · 1 comment
Closed

Blank lines around var/let #1461

Uncommon opened this issue Apr 24, 2017 · 1 comment
Labels
rule-request Requests for a new rules.

Comments

@Uncommon
Copy link
Contributor

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?

@marcelofabri marcelofabri added the rule-request Requests for a new rules. label Apr 30, 2017
@marcelofabri
Copy link
Collaborator

Implemented in #1471.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule-request Requests for a new rules.
Projects
None yet
Development

No branches or pull requests

2 participants