-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Disable keep-padding option in shfmt #1810
Conversation
Has some serious bugs and not really needed Also fixed all files that need to be changed after this
if ${SCM_GIT_USE_GITSTATUS} && _command_exists gitstatus_query && gitstatus_query && [[ "${VCS_STATUS_RESULT}" == "ok-sync" ]]; then # use faster gitstatus | ||
SCM_GIT_GITSTATUS_RAN=true # use this in githelpers and below to choose gitstatus output | ||
if ${SCM_GIT_USE_GITSTATUS} && _command_exists gitstatus_query && gitstatus_query && [[ "${VCS_STATUS_RESULT}" == "ok-sync" ]]; then | ||
# we can use faster gitstatus | ||
# use this variable in githelpers and below to choose gitstatus output | ||
SCM_GIT_GITSTATUS_RAN=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this change related to the keep-padding setting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, as shfmt
did a pretty wierd formatting to the comment, so I preferred to change it entirely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I think the new formatting changes on the affected files are better now than before, and doesn't seem to be a big change in general, so I'm good with it.
Same. And it sounds like mvdan doesn't want to support this feature anymore anyways. |
Has some serious bugs and not really needed
Description
Disable the -kp option in shfmt by disabling it in our editorconfig
Also fixed all files that need to be changed after this
Motivation and Context
This was needed as -kp is buggy (mvdan/sh#652)
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.