-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Create documentation explaining CSharpier formatting decisions #785
Comments
I think you may have linked to this in the past? I remember reading it after someone shared a link and am pretty sure I completely spaced on responding. I've been trying to keep it in mind while looking at any new changes I'm making, so thank you if that was you!
I didn't really realize how inconsistent it could be at times until I started running into those issues with CSharpier. Following the way prettier formatted code did make it easier to build out CSharpier though, and I don't think anything major would need to change to start trying to follow the rectangle rule in most places. I don't suppose you know of a playground for google-java-format? I found one for rustfmt right away, but haven't found the java one. If nothing else, after building the rider plugin for csharpier I am set up to code java locally. |
Yeah, that was me. I didn't really expect a reply. It's not like google-java-format doesn't have its own issues, including some caused by that principle, but it's the only tool I know of that has a fairly consistent style that is also explained by principle -- I've found that useful for comprehension but of course it helps that I also like the resulting style. I'll add for the record, too, that none of this is meant as criticism and I still choose CSharpier. I just indexed the items that seemed to represent incidental (possibly unwanted) behaviour.
No, I've never come across a such. It's a self-contained jar file, however, so it's straightforward to run by hand, and there is https://plugins.jetbrains.com/plugin/8527-google-java-format. |
Discussed in https://github.com/belav/csharpier/discussions/778
Originally posted by andrewrondeau-optirtc December 27, 2022
Hi, apologies if this is a noob question!
Do you have any documentation that explicitly explains the style that CSharpier applies? (I like that it's opinionated, BTW.)
Even though I've run CSharpier on my codebase, I'd like to be able to read through a general description of the kinds of changes it makes to my code.
If I choose to integrate this into the workflow, it's a lot easier to explain it if I can point out specific style changes it will make, and changes it won't make.
The text was updated successfully, but these errors were encountered: