Skip to content

Commit 2bee0b1

Browse files
committed
fix:Checkstyle check test
1 parent 8a82ac0 commit 2bee0b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/scripts/checkstyle-pr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ echo "🚀 执行 Checkstyle 扫描(生成完整报告)..."
7979
FILES_LIST=$(echo "$CHANGED_FILES" | tr '\n' ',' | sed 's/,$//')
8080

8181
set +e
82-
mvn checkstyle:checkstyle \
82+
mvn checkstyle:check \
8383
-Dcheckstyle.includes="$FILES_LIST" \
8484
-Dcheckstyle.excludes="**/test/**/*.java" \
8585
-Dcheckstyle.violationSeverity=warning
8686
MVN_EXIT=$?
8787
set -e
8888

89-
REPORT_FILE="target/checkstyle-result.xml"
89+
REPORT_FILE="base/target/checkstyle-result.xml"
9090
if [ ! -f "$REPORT_FILE" ]; then
9191
echo "❌ 未生成 Checkstyle 报告,请检查 Maven 配置。"
9292
exit 0

0 commit comments

Comments
 (0)