With shellcheck 0.6.0 the warning SC2236 - Use -n instead of ! -z is raised. This change adds that warning to the ignored list.
qa: Ignore shellcheck warning SC2236 #15164
pull promag wants to merge 1 commits into bitcoin:master from promag:2019-01-shellcheck changing 1 files +2 −1-
promag commented at 2:36 PM on January 14, 2019: member
-
laanwj commented at 2:40 PM on January 14, 2019: member
Thanks. utACK 98584ff548e267a1dc1d5240e560c623c5287424, let's merge if it fixes travis.
BTW, a similar thing was already done before in 908a559f33.
To prevent this from happening over and over again it might make sense to change to a list of checks to include, instead of a list of checks to exclude. (not sure this is easy to do or would require manually going over the list)
-
promag commented at 2:42 PM on January 14, 2019: member
@practicalswift ping.
-
practicalswift commented at 3:13 PM on January 14, 2019: contributor
Concept ACK, but please print the version only when
shellcheckhad something to say by adding:if [[ $? != 0 ]]; then echo shellcheck --version fiIMO checks should be silent unless deviations are found. That improves the signal to noise in the output when running multiple checks.
The tweak @laanwj is suggestion can be done in a follow-up PR.
-
promag commented at 3:16 PM on January 14, 2019: member
@practicalswift what's the problem of showing the version? Then it's easier to compare between green and red builds.
-
practicalswift commented at 3:19 PM on January 14, 2019: contributor
@promag Travis already prints the
shellcheckversion by default under "Build system information":shellcheck version 0.6.0But more generally we should try to keep the signal to noise as high as possible :-)
-
promag commented at 3:21 PM on January 14, 2019: member
Travis already prints the
shellcheckversion by default under "Build system information":Oh ty! will remove that.
-
f652f85d0c
qa: Ignore shellcheck warning SC2236
With shellcheck 0.6.0 the warning `SC2236 - Use -n instead of ! -z` is raised. This change adds that warning to the ignored list.
- promag force-pushed on Jan 14, 2019
-
promag commented at 3:22 PM on January 14, 2019: member
Done.
-
practicalswift commented at 3:23 PM on January 14, 2019: contributor
utACK f652f85d0c88629b4284f69b179362254307fb55
- pull[bot] referenced this in commit 035f349371 on Jan 14, 2019
- laanwj merged this on Jan 14, 2019
- laanwj closed this on Jan 14, 2019
- promag deleted the branch on Jan 14, 2019
- zkbot referenced this in commit 43ac2062f9 on Oct 28, 2020
- zkbot referenced this in commit 84a5830aaa on Nov 9, 2020
- PastaPastaPasta referenced this in commit d84c8be390 on Jun 26, 2021
- PastaPastaPasta referenced this in commit de60193469 on Jun 28, 2021
- DrahtBot locked this on Dec 16, 2021