Skip to content

Conversation

promag
Copy link
Contributor

@promag promag commented Jan 14, 2019

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

@laanwj
Copy link
Member

laanwj commented Jan 14, 2019

Thanks. utACK 98584ff548e267a1dc1d5240e560c623c5287424, let's merge if it fixes travis.

BTW, a similar thing was already done before in 908a559.

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
Copy link
Contributor Author

promag commented Jan 14, 2019

@practicalswift ping.

@practicalswift
Copy link
Contributor

practicalswift commented Jan 14, 2019

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.

@promag
Copy link
Contributor Author

promag commented Jan 14, 2019

@practicalswift what's the problem of showing the version? Then it's easier to compare between green and red builds.

@practicalswift
Copy link
Contributor

practicalswift commented Jan 14, 2019

@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 :-)

@promag
Copy link
Contributor Author

promag commented Jan 14, 2019

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

Oh ty! will remove that.

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 promag force-pushed the 2019-01-shellcheck branch from 98584ff to f652f85 Compare January 14, 2019 15:22
@promag
Copy link
Contributor Author

promag commented Jan 14, 2019

Done.

@practicalswift
Copy link
Contributor

utACK f652f85

pull bot pushed a commit to jaschadub/bitcoin that referenced this pull request Jan 14, 2019
f652f85 qa: Ignore shellcheck warning SC2236 (João Barbosa)

Pull request description:

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

Tree-SHA512: 7b0dfbce55e5da4efb927e251257993cdf67cd1c90f8490d99fa75bf6e233bbee79ea1c59d28774994c59862c5eac061313aa154833284950fc844bda60a54e9
@laanwj laanwj merged commit f652f85 into bitcoin:master Jan 14, 2019
@promag promag deleted the 2019-01-shellcheck branch January 14, 2019 15:26
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 26, 2021
f652f85 qa: Ignore shellcheck warning SC2236 (João Barbosa)

Pull request description:

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

Tree-SHA512: 7b0dfbce55e5da4efb927e251257993cdf67cd1c90f8490d99fa75bf6e233bbee79ea1c59d28774994c59862c5eac061313aa154833284950fc844bda60a54e9
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 28, 2021
f652f85 qa: Ignore shellcheck warning SC2236 (João Barbosa)

Pull request description:

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

Tree-SHA512: 7b0dfbce55e5da4efb927e251257993cdf67cd1c90f8490d99fa75bf6e233bbee79ea1c59d28774994c59862c5eac061313aa154833284950fc844bda60a54e9
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants