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
  1. promag commented at 2:36 PM on January 14, 2019: member

    With shellcheck 0.6.0 the warning SC2236 - Use -n instead of ! -z is raised. This change adds that warning to the ignored list.

  2. 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)

  3. promag commented at 2:42 PM on January 14, 2019: member
  4. practicalswift commented at 3:13 PM on January 14, 2019: contributor

    Concept ACK, but please print the version only when shellcheck had something to say by adding:

    if [[ $? != 0 ]]; then
        echo
        shellcheck --version
    fi
    

    IMO 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.

  5. 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.

  6. practicalswift commented at 3:19 PM on January 14, 2019: contributor

    @promag Travis already prints the shellcheck version by default under "Build system information":

    shellcheck version
    0.6.0
    

    But more generally we should try to keep the signal to noise as high as possible :-)

  7. promag commented at 3:21 PM on January 14, 2019: member

    Travis already prints the shellcheck version by default under "Build system information":

    Oh ty! will remove that.

  8. 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.
    f652f85d0c
  9. promag force-pushed on Jan 14, 2019
  10. promag commented at 3:22 PM on January 14, 2019: member

    Done.

  11. practicalswift commented at 3:23 PM on January 14, 2019: contributor

    utACK f652f85d0c88629b4284f69b179362254307fb55

  12. pull[bot] referenced this in commit 035f349371 on Jan 14, 2019
  13. laanwj merged this on Jan 14, 2019
  14. laanwj closed this on Jan 14, 2019

  15. promag deleted the branch on Jan 14, 2019
  16. zkbot referenced this in commit 43ac2062f9 on Oct 28, 2020
  17. zkbot referenced this in commit 84a5830aaa on Nov 9, 2020
  18. PastaPastaPasta referenced this in commit d84c8be390 on Jun 26, 2021
  19. PastaPastaPasta referenced this in commit de60193469 on Jun 28, 2021
  20. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 00:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me