-
Notifications
You must be signed in to change notification settings - Fork 234
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
shfmt and shellcheck kerl and bash completion scripts #463
shfmt and shellcheck kerl and bash completion scripts #463
Conversation
Best seen if ignoring whitespace changes...
@jadeallenx, I'm adding you as a reviewer with at least one CI ✅ for the builds... |
@@ -52,6 +52,8 @@ and is repeatable in any way, should be tested, to guarantee backwards compatibl | |||
- try not to introduce lines longer than 100 characters | |||
- write small functions whenever possible, and use descriptive names for functions and variables | |||
- comment tricky or non-obvious decisions made to explain their rationale | |||
- the tool is linted with `shellcheck` and formatted with `shfmt`: make sure you run these locally | |||
to avoid CI issues (their options are listed in `lint.yml`) |
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.
whitespace issue?
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.
Lemme check. I think it's just GitHub acting up 😄
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.
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.
In any case, since I got your approval, I'll go ahead and squash-merge to push more goodies. Feel free to reply to this and I'll act on it if there's something to change 😄
Thanks.
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.
Nothing to change, just wanted to make sure you wanted the text that way
Description
We add
shfmt
to CI, while formatting the bash completion, tool scripts and test files. We also runshellcheck
on those and hopefully properly fix the issues. Many commits were issued to potentially ease review. The formatting ones and "just" the result ofshfmt
on the updated scripts, but will still be part of my self-review.Motivation
This is basically a quality-of-life improvement, to have consistent formatting and (further) linting.