-
Notifications
You must be signed in to change notification settings - Fork 27
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
docs: add ADR to adopt ShellCheck #60
docs: add ADR to adopt ShellCheck #60
Conversation
260f864
to
f00881b
Compare
A side question: will this help us decide whether shell scripts use 2-space or 4-space indentation? |
Oh no, I've been using tabs 😬 ShellCheck avoids giving any formatting-related advice unfortunately. I've heard good things about shfmt for that, though. I'll give it a try, and might do another ADR if it's good to work with. |
I think having some help for developers who are more familiar with python than shell is a great addition to the tooling. +1 |
Additionally, this brings all existing shell scripts into compliance with ShellCheck. This implements part of an ADR, proposed here: openedx/.github#60
Additionally, this brings all existing shell scripts into compliance with ShellCheck. This implements part of an ADR, proposed here: openedx/.github#60
6e55c1a
to
b23a8e2
Compare
In order to keep this PR focused on the ADR, I created a draft PR to discuss the actual implementation of the workflow template and/or shared workflow: #64 |
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.
This mostly looks good but I had just one comment on the versioning expectations. Nothing blocking but I wanted to finish the conversation before approving this PR.
Co-authored-by: Feanil Patel <[email protected]>
Co-authored-by: Tim McCormack <[email protected]>
Co-authored-by: Tim McCormack <[email protected]>
Co-authored-by: Tim McCormack <[email protected]>
Additionally, this brings all existing shell scripts into compliance with ShellCheck. This implements part of an ADR, proposed here: openedx/.github#60
Additionally, this brings all existing shell scripts into compliance with ShellCheck. This implements part of an ADR, proposed here: openedx/.github#60
Link to rendered ADR
https://github.com/kdmccormick/openedx.github/blob/kdmccormick/shellcheck/docs/decisions/0001-shellcheck.rst
Related Changes
Draft .github PR to implement a shared workflow/template/action:
Draft edx-platform PR, with the ShellCheck workflow in action: