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

Line length #188

Open
rggjan opened this issue Jan 31, 2018 · 3 comments
Open

Line length #188

rggjan opened this issue Jan 31, 2018 · 3 comments

Comments

@rggjan
Copy link

rggjan commented Jan 31, 2018

Feature request
Make it possible to define a maximum line length, and automatically wrap lines which are too long, or combine short enough lines, similar to what clang-format does for objective-c and c++ code.

@adozenlines
Copy link

Combining lines under swift will mean the use of semi colons, is that something you really want to do?

@rggjan
Copy link
Author

rggjan commented Apr 2, 2018

No! I was talking about combining and splitting single lines without semicolon. For example changing this:

assert(age >= 0,
"A person's age can't be less than zero.")

To this:
assert(age >= 0, "A person's age can't be less than zero.")

Or the other was around, depending on preferred maximum line length.

@jasjuang
Copy link

+1, it will be great to have this feature!

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

No branches or pull requests

4 participants