Skip to content

Commit 99e2826

Browse files
committed
fix: local make sa
1 parent cb1b5cd commit 99e2826

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ sa:
8585
ifndef STATIC_ANALYSIS_CHECKER
8686
@printf "\e[1m\e[31m%s\e[0m\n" "Shellcheck not installed: Static analysis not performed!" && exit 1
8787
else
88-
@find . -name "*.sh" -not -path "./local/*" | xargs shellcheck -xC && printf "\e[1m\e[32m%s\e[0m\n" "ShellCheck: OK!"
88+
@find . -name "*.sh" -not -path "./local/*" -exec shellcheck -xC {} \; && printf "\e[1m\e[32m%s\e[0m\n" "ShellCheck: OK!"
8989
endif
9090

9191
lint:

src/runner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function runner::run_test() {
295295

296296
local test_execution_result=$(
297297
# shellcheck disable=SC2064
298-
trap "exit_code=\$?; runner::cleanup_on_exit \"$test_file\" \$exit_code" EXIT
298+
trap 'exit_code=$?; runner::cleanup_on_exit "$test_file" "$exit_code"' EXIT
299299
state::initialize_assertions_count
300300
if ! runner::run_set_up "$test_file"; then
301301
status=$?

tests/functional/doubles_test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
# shellcheck external-sources=false
3+
# shellcheck disable=SC1091
24

35
function test_mock_ps_when_executing_a_script() {
46
mock ps cat ./tests/functional/fixtures/doubles_ps_output

0 commit comments

Comments
 (0)