Skip to content

Commit 35bb29e

Browse files
committed
fix:code check test
1 parent a5d543b commit 35bb29e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/scripts/checkstyle-pr.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ for module in "${!module_files[@]}"; do
8585
set +e
8686
(cd "$module" && \
8787
echo " Current directory: $(pwd)" && \
88-
echo " Config file path: ../checkstyle/huawei-checkstyle.xml" && \
89-
ls -l ../checkstyle/huawei-checkstyle.xml && \
88+
echo " Config file path: ../codecheck/codecheck.xml" && \
89+
ls -l $(pwd)/codecheck/codecheck.xml && \
9090
mvn checkstyle:check \
91-
-Dcheckstyle.config.location=/codecheck/codecheck.xml \
91+
-Dcheckstyle.config.location=$(pwd)/codecheck/codecheck.xml \
9292
-Dcheckstyle.includes="$file_list" \
9393
-Dcheckstyle.violationSeverity=warning)
9494
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)