From 5b388dd4dd3e69f9fb65fbf40cce0d5f330c726c Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Fri, 16 Dec 2022 05:14:40 -0800 Subject: [PATCH] Add script to run static analysis checks --- tests/check_static_analysis.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tests/check_static_analysis.sh diff --git a/tests/check_static_analysis.sh b/tests/check_static_analysis.sh new file mode 100755 index 0000000..2b1198f --- /dev/null +++ b/tests/check_static_analysis.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +cd "${SCRIPT_DIR}" + +# Run commands from the project root directory. +cd .. + +set -x + +vendor/bin/psalm --config="tests/psalm.xml"