-
Notifications
You must be signed in to change notification settings - Fork 43
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
Different bash function syntaxes are tolerated #32
Comments
Hmm, I think this is a little tricky because these are all distinct syntaxes, but with the same style. I'm not sure whether it is beautysh's place to be picky about syntax (which would make it a very opinionated formatter), rather than just style/form. Thoghts? :) |
Well actually tools like In case quoted above I think that honestly it is confusing to have inside the same Bash file option A, B or C mixed together... so I would love to have a tool that simply enforces one and only one of them (I would vote A)... Of course the best would be to have a config option to choose your preferred style... |
@f18m So wait, are you suggesting:
I'm all for 1, but I'm still not sold on 2. Which style do you think we should enforce of the ones you listed? |
I actually would be fine with both 1) and 2). Btw IMHO the best style for Bash function is A). It's also the longest to type but once you configure your editor to run beautysh and it's beautysh that does the reformatting work for you, then who cares what's longer to type :) PS: I'm working with the author of https://github.com/de-jcup/eclipse-bash-editor to integrate external reformatters like beautysh in that Eclipse plugin :) |
@f18m I just cut a new release (3.12) with all of the changes you've been making. If this eventually gets built I will add it to a 4.0 release :) |
@bemeurer great, I'm looking forward to test version 3.12 in my "production" :) Btw I just cleaned up a PR for this issue... maybe it can still be improved a little bit, but should be a good start... |
Hi,
I noticed that beautysh is not enforcing any specific style for the function declarations:
A)
is accepted as well as
B)
and as well as
C)
I think beautysh should stick with one and enforce it.
What do you think?
The text was updated successfully, but these errors were encountered: