summaryrefslogtreecommitdiff
path: root/meta-phosphor/scripts
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2021-10-27 17:33:53 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-11-04 02:09:42 +0300
commit2ed00d8172126e4a2aa411957ffc6b20eb6c9256 (patch)
tree3d1567d1a3fa21d7abd77f114b863e1efe297e01 /meta-phosphor/scripts
parent521d8f69f9182a3d96e51b1df139c81302c026ef (diff)
downloadopenbmc-2ed00d8172126e4a2aa411957ffc6b20eb6c9256.tar.xz
repotest: add json linting
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I99dadfac3c2d324bb5ef6a5ab399ad35825b34d5
Diffstat (limited to 'meta-phosphor/scripts')
-rwxr-xr-xmeta-phosphor/scripts/run-repotest11
1 files changed, 10 insertions, 1 deletions
diff --git a/meta-phosphor/scripts/run-repotest b/meta-phosphor/scripts/run-repotest
index 8c47e536cf..c841b65289 100755
--- a/meta-phosphor/scripts/run-repotest
+++ b/meta-phosphor/scripts/run-repotest
@@ -188,7 +188,9 @@ meta-quanta/meta-q71l/recipes-phosphor/quanta-powerctrl/files/poweron.sh
meta-yadro/meta-nicole/recipes-phosphor/chassis/avsbus-control/avsbus-control.sh
"
-types=(shell)
+types=(json shell)
+# shellcheck disable=SC2034
+check_json="eslint --resolve-plugins-relative-to /usr/local/lib/node_modules"
# shellcheck disable=SC2034
check_shell="shellcheck -x"
@@ -215,12 +217,19 @@ for f in $non_bbfiles; do
file_type="shell"
;;
+ *JSON\ data*)
+ file_type="json"
+ ;;
+
*)
case $f in
*.sh)
file_type="shell"
;;
+ *.json)
+ file_type="json"
+ ;;
esac
esac