static_code_analysis.sh: find all shell files (!1853)
This commit is contained in:
parent
b0ea7ad8a0
commit
0244ffbf53
|
@ -39,16 +39,8 @@ shellcheck_command="$command $rootfs_native/usr/bin/shellcheck"
|
||||||
flake8_command="$command $rootfs_native/usr/bin/python3 $rootfs_native/usr/bin/flake8"
|
flake8_command="$command $rootfs_native/usr/bin/python3 $rootfs_native/usr/bin/flake8"
|
||||||
|
|
||||||
# Shell: shellcheck
|
# Shell: shellcheck
|
||||||
sh_files="
|
find . -name '*.sh' |
|
||||||
./test/static_code_analysis.sh
|
while read -r file; do
|
||||||
./test/testcases_fast.sh
|
|
||||||
./helpers/envsetup.sh
|
|
||||||
./helpers/envkernel.sh
|
|
||||||
./.gitlab/setup-pmos-environment.sh
|
|
||||||
./.gitlab/shared-runner_test-pmbootstrap.sh
|
|
||||||
$(find . -name '*.trigger')
|
|
||||||
"
|
|
||||||
for file in ${sh_files}; do
|
|
||||||
echo "Test with shellcheck: $file"
|
echo "Test with shellcheck: $file"
|
||||||
cd "$DIR/../$(dirname "$file")"
|
cd "$DIR/../$(dirname "$file")"
|
||||||
$shellcheck_command -e SC1008 -x "$(basename "$file")"
|
$shellcheck_command -e SC1008 -x "$(basename "$file")"
|
||||||
|
|
Loading…
Reference in New Issue