Spdk/scripts
Karol Latecki a12229dbbb scripts/check_format: add bash styling check
Add Bash styling checks using shellcheck:
https://github.com/koalaman/shellcheck

Shellcheck can be used in check_format just like astyle
and pep8 to improve our bash scripts quality by checking
for syntax errors.
It could also allow us to enforce (at least to some
extent) consistent coding style - using $() instead of
backticks for command calls, string quoting, etc.

Shellcheck maintains it's own wiki with error descriptions:
https://github.com/koalaman/shellcheck/wiki/
To check for specific error go to, for example:
https://github.com/koalaman/shellcheck/wiki/SC2006
Each wiki entry includes an example of problematic code, an
example of suggested correct code and a rationale.

Currently all of the found problems are excluded in check_format.sh
and will be fixed incrementally.

Change-Id: Ib1d6f628e101e0e2b2d56956b679942630a73f95
Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463172
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Seth Howell <seth.howell@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-08-08 21:27:40 +00:00
..
ceph scripts: replace backticsk with dollar-parenthesis syntax 2019-07-05 12:06:10 +00:00
perf test/vhost: Export default VM_IMAGE from common.sh 2019-07-03 04:15:18 +00:00
rpc iscsi: Remove cpumask from portals 2019-08-08 05:35:01 +00:00
spdkcli iscsi: Remove cpumask from portals 2019-08-08 05:35:01 +00:00
vagrant scripts/vagrant: Add possibility to create vm image with devstack 2019-07-24 17:50:48 +00:00
check_format.sh scripts/check_format: add bash styling check 2019-08-08 21:27:40 +00:00
common.sh scripts/common.sh: use PCI blacklist and whitelist 2019-02-11 13:29:38 +00:00
config_converter.py iscsi: Remove cpumask from portals 2019-08-08 05:35:01 +00:00
detect_cc.sh build: Make detect_cc.sh handle --cross-prefix 2019-07-26 16:22:27 +00:00
eofnl scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
fio.py scripts/fio.py: add argparse for command line parameters 2019-06-03 04:34:10 +00:00
gdb_macros.py scripts: Use range instead of xrange 2019-02-13 22:54:15 +00:00
gen_ftl.sh bdev/ftl: Add json config generation 2019-04-01 23:59:39 +00:00
gen_nvme.sh scripts: replace backticsk with dollar-parenthesis syntax 2019-07-05 12:06:10 +00:00
gen_rbd.sh test/bdev: add Ceph RBD bdev to bdev tests 2018-02-26 11:12:35 -05:00
genconfig.py scripts:Fix Python errors in checking scripts 2019-02-12 18:37:09 +00:00
histogram.py histograms: add script for parsing histogram data 2019-01-24 14:14:32 +00:00
pkgdep.sh scripts/pkgdep.sh: add shellcheck installation. 2019-08-08 21:27:40 +00:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh scripts: replace backticsk with dollar-parenthesis syntax 2019-07-05 12:06:10 +00:00
qat_setup.sh test: adjust scripts for 01.org qat driver 2018-11-15 20:08:16 +00:00
rpc_http_proxy.py scripts, test: fix python overindent issues 2019-04-04 03:59:12 +00:00
rpc.py iscsi: Remove cpumask from portals 2019-08-08 05:35:01 +00:00
setup.sh Revert "test/setup: check open files limit" 2019-07-29 04:00:21 +00:00
spdkcli.py spdkcli: handle BrokenPipeError 2019-07-22 03:41:00 +00:00