-
Notifications
You must be signed in to change notification settings - Fork 12
Passing options to shellcheck #12
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
Conversation
|
@lox can we get this in, please? |
| fi | ||
|
|
||
| # Read in the options to pass to shellcheck | ||
| mapfile -t options<<<"$(plugin_read_list OPTIONS)" |
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.
I'm mildly concerned that this pattern comes with a bash 4.x+ requirement.
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.
If I'm not mistaken, does this mean I can't run the shellcheck plugin anymore via bksr on my Mac? (bash 3.2)
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.
Sorry, I didn't realise mapfile was 4.x+. This has been merged already but if this is an issue you should be able to change it back to options=( $(plugin_read_list OPTIONS) ), which ironically wouldn't pass SC2207.
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.
I wish MacOS wasn’t so behind the times 😢
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.
Fixed in #15.
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.
Also updated the Shellcheck wiki 😅https://github.com/koalaman/shellcheck/wiki/SC2207
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.
🙏🏼
|
Thanks for the ping @joscha. Let's just ship this. |
|
Behold: https://github.com/buildkite-plugins/shellcheck-buildkite-plugin/releases/tag/v1.1.0 Thanks very much @durkode, sorry it took us so long. 🙇🏼♂️ |
This PR enables options to be passed to the shellcheck docker image, usage as such:
When making a release from this, please update the Readme to reflect this.