mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-01 19:21:39 +00:00
Make sure shellcheck and shellcheck bats are using the same configuration to run shellcheck Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
13 lines
300 B
Bash
Executable File
13 lines
300 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
# Author: Otavio Pontes
|
|
# Email: otavio.pontes@intel.com
|
|
|
|
@test "ANL001: Shellcheck on changed files" {
|
|
for i in $(git diff --name-only origin/master HEAD | grep -E "\.bats|\.bash"); do
|
|
echo checking "$i" >&3
|
|
|
|
"$BATS_TEST_DIRNAME"/../../scripts/shellcheck.bash "$i"
|
|
done
|
|
}
|