linter: disable ShellCheck for hg

Summary:
The ShellCheck linter:
- Conflict with hg check-code. ex. on "$()" vs "``".
- Over picky. ex. SC2148 should only run on scripts with `x` bit.

Therefore disable it for scm/hg.

Reviewed By: zertosh

Differential Revision: D6887739

fbshipit-source-id: 9447a4582ab5d2798a382d9dc715eb319d4255c0
This commit is contained in:
Jun Wu 2018-02-02 13:04:59 -08:00 committed by Saurabh Singh
parent 0584f5d23f
commit 7192afdd6b
2 changed files with 0 additions and 4 deletions

View File

@ -1,4 +1,3 @@
# shellcheck disable=SC2148
# In most cases, the mercurial repository can be read by the bundled hg, but
# that isn't always true because third-party extensions may change the store
# format, for example. In which case, the system hg installation is used.
@ -45,7 +44,6 @@ EOF
# Use the system hg command if the bundled hg can't read the repository with
# no warning nor error.
# shellcheck disable=SC2006
if [ -n "`hg id --cwd "$TESTDIR/.." 2>&1 >/dev/null`" ]; then
alias testrepohg=syshg
alias testrepohgenv=syshgenv

View File

@ -1,9 +1,7 @@
# shellcheck disable=SC2148
# Make the test use chg if possible
if [ -x "$RUNTESTDIR/../contrib/chg/chg" ] && [ -z "$CHGHG" ]; then
CHGHG="${HG:-hg}"
export CHGHG
# shellcheck disable=SC2139
alias hg="${CHG:-chg}"
fi