-
Notifications
You must be signed in to change notification settings - Fork 117
Change line length to 120 chars #100
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
Comments
I'm really not keen to add too many configuration options, it undermines the point of the project. If the current wrap length really isn't suitable then perhaps we should reconsider it across the board and all move to 120 chars. |
Are there options? We, as a team (Spring Cloud Core), want to use this (and are currently using it) and have a line length > 90. |
Currently pretty much nothing is configurable with the formatter. That was an intentional decision because I want to bring consistency to all the projects that use it. If we start adding flags for various options it undermines the point a little. Line wrapping seems to be a contentious issue. I took the lead from https://github.com/spring-projects/spring-framework/wiki/Code-Style#line-wrapping and kept the limit small. I personally quite like the smaller line length, but I'm not against changing it we can somehow manage to reach agreement that 120 is better than the current size. |
I doubt there will ever be consensus. I guess we can always fork. |
I'd rather add an option than fork. I'm just not sure where it can go. We've got a copyright header year that is configurable so I guess it could go next to that. It'll be a bit clunky. |
Rather than make the limit totally configurable I'd be tempted to just support |
Yeah, that would probably be fine |
I've spend a couple of days on this (https://github.com/philwebb/spring-javaformat/tree/gh-100). It turns out making the length change is easy, adding build plugin configuration isn't too bad but getting the IDE's to find that value is very difficult. We've discussed line length again on the Boot call and we think the best option is just to make 120 the default (if it means more people will adopt the formatter). We'll probably keep javadoc at 90. |
Hi people! \(^^)/ Working with prettier for a decade and his popularity is so huge in Front End => nobody has ever complained about having this option configurable in my teams... I really really really suggest to reconsider your opinion on not making this option editable for spring projects... It's just opinions... let people free : ) Thank you! Thank you! Thank you! |
@nasreddineskandrani I really would have liked to made this one specific thing an option, but after a couple of days trying it just ended up consuming too much time. It's hard to find enough hours in the day to do all the things :( |
From my participation in the open source world, i see often "help wanted" or "Accepting PRs" tags in github issues. Which means if someone is open to do it he can open a PR so you'll out source the job and you can then only review the work as core members which is less time consuming and interesting at the same time. If it's a matter of availibility your side: Thank's again for the quick answer. |
@nasreddineskandrani Sure, feel free to open another issue (since the 120 change is done) and I'll tag it. |
Uh oh!
There was an error while loading. Please reload this page.
It would be nice to have an option to set line length, say to 120
The text was updated successfully, but these errors were encountered: