We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65093a2 commit b3fc5f0Copy full SHA for b3fc5f0
1 file changed
scripts/lib/analyse.sh
@@ -8,12 +8,23 @@ build_config_args() {
8
fi
9
}
10
11
+build_analyse_path() {
12
+ local path
13
+ ANALYSE_PATH=""
14
+
15
+ for path in ${CHANGED_FILES}; do
16
+ if [[ -n "${ANALYSE_PATH}" ]]; then
17
+ ANALYSE_PATH+=","
18
+ fi
19
+ ANALYSE_PATH+="${path}"
20
+ done
21
+}
22
23
run_analyse() {
24
local report_type="$1"
25
local report_file="$2"
26
- # shellcheck disable=SC2086
- php "${PHPCCA_BIN}" analyse ${CHANGED_FILES} \
27
+ php "${PHPCCA_BIN}" analyse "${ANALYSE_PATH}" \
28
--report-type="${report_type}" \
29
--report-file="${report_file}" \
30
"${CONFIG_ARGS[@]}"
@@ -25,6 +36,7 @@ needs_markdown_report() {
36
37
run_all_analyses() {
38
build_config_args
39
+ build_analyse_path
40
41
export REPORT_PATH=""
42
export SARIF_PATH=""
0 commit comments