diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2019-01-16 14:50:50 +0100 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2019-01-16 15:47:56 +0100 |
commit | 07a53dce9f09133b51b20c5c25228c6d79f808f8 (patch) | |
tree | 152d6bf05e7decfd50b5737ce95306f3449e5ad9 /test/lint | |
parent | 638e53b472c7f953148f3d24cdbf6ab373fb3fa5 (diff) |
Remove repeated suppression. Fix indentation.
Diffstat (limited to 'test/lint')
-rwxr-xr-x | test/lint/lint-shell.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/lint/lint-shell.sh b/test/lint/lint-shell.sh index cf8a37c3a1..fa94f82ffd 100755 --- a/test/lint/lint-shell.sh +++ b/test/lint/lint-shell.sh @@ -13,7 +13,7 @@ export LC_ALL=C # respectively. So export LC_ALL=C is set as required by lint-shell-locale.sh # but unset here in case of running in Travis. if [ "$TRAVIS" = "true" ]; then - unset LC_ALL + unset LC_ALL fi if ! command -v shellcheck > /dev/null; then @@ -38,8 +38,7 @@ disabled=( SC2116 # Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'. SC2148 # Tips depend on target shell and yours is unknown. Add a shebang. SC2162 # read without -r will mangle backslashes. - SC2166 # Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. - SC2166 # Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. + SC2166 # Prefer [ p ] {&&,||} [ q ] as [ p -{a,o} q ] is not well defined. SC2181 # Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. SC2206 # Quote to prevent word splitting, or split robustly with mapfile or read -a. SC2207 # Prefer mapfile or read -a to split command output (or quote to avoid splitting). |