diff options
| author | practicalswift <[email protected]> | 2019-01-16 14:50:50 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2019-01-16 15:47:56 +0100 |
| commit | 07a53dce9f09133b51b20c5c25228c6d79f808f8 (patch) | |
| tree | 152d6bf05e7decfd50b5737ce95306f3449e5ad9 | |
| parent | Pin shellcheck version to v0.6.0 (diff) | |
| download | discoin-07a53dce9f09133b51b20c5c25228c6d79f808f8.tar.xz discoin-07a53dce9f09133b51b20c5c25228c6d79f808f8.zip | |
Remove repeated suppression. Fix indentation.
| -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 cf8a37c3a..fa94f82ff 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). |