tools/format-cpp: make shellcheck happy again
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 26 Oct 2023 12:42:56 +0000 (08:42 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 30 Oct 2023 18:15:46 +0000 (14:15 -0400)
commitb11f8a1dbff55196757e66adb7c4a4fee0200bb6
tree66bb6c1be8a051ba1cb43ed46928229709d207be
parent7132b8384f798e2d9d00fee07bba3a56b4ace039
tools/format-cpp: make shellcheck happy again

This patch:

* Checks the `version` variable assignment directly to avoid relying on
  `$?`, therefore removing the `shellcheck disable` comment.

* Makes `formatter` an array to satisfy SC2086, therefore removing the
  `shellcheck disable` comment.

* Quotes `$(nproc)` to satisfy SC2068.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ib7c5fe530faad12704ee8b91ae55a6bfcb1aee5c
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11142
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
tools/format-cpp
This page took 0.023888 seconds and 4 git commands to generate.