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
Issue #11637: Resolve shellcheck SC2016 #12841
Conversation
@nrmancuso @romani Solving this issue bought new warnings in picture (
New type of warning has shown up. We will have to initialize the highlighted properties for this warning to go away as per https://www.shellcheck.net/wiki/SC2016 Edit 1: Can we make use of the uppercase scenario here as in the documentation (https://www.shellcheck.net/wiki/SC2154): |
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.
@shubh220922 these look like system/maven properties that we do not want to expand, we can suppress each individually with comment explaining why.
edit: please make comment like we do not want to expand properties in this command
@nrmancuso Done. Suppressions have been made at respective places. But, what is wrong with making a permanent suppression in |
While these all look like places that we do not want bash to expand a variable, there is no guarantee about future usages :) |
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 am good as CI passes
Fixing CI. @nrmancuso what kind of an error is this in CI: https://dev.azure.com/romanivanovjr/romanivanovjr/_build/results?buildId=13538&view=logs&j=e663805c-ee13-5a24-f979-d725e0346c8e&t=40ff6e43-c5d7-5753-f947-23012624b0c6&l=929 Potential Solution spotted at https://stackoverflow.com/questions/23260057/the-forked-vm-terminated-without-saying-properly-goodbye-vm-crash-or-system-exi It seems to be a plugin problem? Still fixing it. |
@shubh220922 failure in azure is not related to your changes. The failing job is |
@nrmancuso alright. But wouldn't merging this PR create |
@shubh220922 it is probably just a random failure, we will have someone with access restart this job before we merge :) |
Related to #11637.
Doc link: https://www.shellcheck.net/wiki/SC2016
Also important: https://www.shellcheck.net/wiki/SC2154