-
Notifications
You must be signed in to change notification settings - Fork 31
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
Force annotations onto their own lines for block expressions and parameter clauses #12
Comments
Don't you think here
better construction will be set second annotation |
Yea, good catch, I'll fix the description |
Fix test formation glitches. Add test for class annotation.
Test for annotation are green. Maybe tommorrow, I will clean up tests. I think it will be quick. |
On making tests green, i ran into test for scala-ide#28. Maybe we should introduce configuration parameter ? |
Hmm, I think we should either keep it as is (force annotations onto their own line), or modify it so that it preserves newlines implicitly. I'm not a fan of more configuration parameters, because there are much more interesting problems to solve than thinking about how to format Scala code -- having one reasonable default is good enough IMO. |
@bambuchaAdm How's this feature looking? Scala 2.11 release is nearing, #4 and #12 are pretty useful features to try and include into a |
I would love to see this change in scalariform. Without this fix, we have some lines that exceed 160 columns! |
+1, this is very annoying, especially that it is not conforming the Scala Style Guide and thus makes the following statement in the documentation invalid: |
This issue was moved to scala-ide#185 |
Annotations for expressions in blocks and parameter clauses currently are placed on the same line:
Instead, it should be formatted as..
This would most likely only affect parameters that are already placed on their own line, so
something like this wouldn't be affected:
stays as..
Implementation details note: this needs to be implemented without breaking the
AlignParameters
featureSee here for similar issue on original branch: scala-ide#91
The text was updated successfully, but these errors were encountered: