scripts: Update check_format.sh shellcheck to ignore SC1117 warnings.
So, in an attempt to be a “good SPDK citizen,” when I noticed that check_format.sh suggested I install shellcheck, I did and re-ran my commit. Got bunches of errors like this on unmodified SPDK bash scripts: In scripts/ceph/start.sh line 58: echo -e "\tosd data = ${mnt_pt}" >> "$ceph_conf" ^-- SC1117: Backslash is literal in "\t". Prefer explicit escaping: "\\t". Adding SC1117 to the list of ignored warnings lets check_format run clean. ShellCheck is at version 0.5.0, Ubuntu at 19.04. Signed-off-by: James Bergsten <jamesx.bergsten@intel.com> Change-Id: I1705b3d15338a18a3fde3ae796a7c46bbf92b1cd Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/465448 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
40c959cbcc
commit
0eb4e6d5ed
@ -248,6 +248,10 @@ SC2097,SC2098,SC2103,SC2115,SC2116,SC2119,SC2120,SC2121,SC2124,SC2126,SC2128,\
|
||||
SC2129,SC2140,SC2142,SC2143,SC2145,SC2146,SC2148,SC2152,SC2153,SC2154,SC2155,\
|
||||
SC2162,SC2164,SC2165,SC2166,SC2167,SC2174,SC2178,SC2181,SC2191,SC2192,SC2195,\
|
||||
SC2199,SC2206,SC2207,SC2209,SC2214,SC2219,SC2220,SC2223,SC2230,SC2231,SC2235"
|
||||
# SPDK fails some error checks which have been deprecated in later versions of shellcheck.
|
||||
# We will not try to fix these error checks, but instead just leave the error types here
|
||||
# so that we can still run with older versions of shellcheck.
|
||||
SHCK_EXCLUDE="$SHCK_EXCLUDE,SC1117"
|
||||
|
||||
SHCK_FORMAT="diff"
|
||||
SHCK_APPLY=true
|
||||
|
Loading…
Reference in New Issue
Block a user