-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add make format
command
#568
Conversation
3909172
to
37403e5
Compare
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.
One question about the shebang and shell arguments, and the rest of the comments are more "thinking out loud".
#!/bin/bash | ||
#!/bin/sh | ||
|
||
set -euo pipefail | ||
set -e |
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.
What was the motivation for these changes?
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.
Just because I took it from https://github.com/mozilla/jira-bugzilla-integration/blob/main/bin/lint.sh
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.
Well, initially I was going to suggest keeping this the way it is and migrating JBI to "bash strict mode".
But turns out there are some gotchas with that approach as well.
So, maybe -euo pipefail
is "safer", if not too safe, but this could also be fine as is, since I'm less convinced about the safety that these flags provide.
lint.sh
taken from https://github.com/mozilla/jira-bugzilla-integration/blob/main/bin/lint.sh