Skip to content

Commit b24b502

Browse files
committed
fix:code check test
1 parent 1128499 commit b24b502

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/scripts/checkstyle-pr.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ for module in "${!module_files[@]}"; do
9292
mvn checkstyle:check -X \
9393
-Dcheckstyle.config.location="$PROJECT_ROOT/checkstyle/huawei-checkstyle.xml" \
9494
-Dcheckstyle.violationSeverity=warning \
95+
-Dcheckstyle.outputFormat=xml \
9596
-Dcheckstyle.includes="**/SampleViolations.java,**/testCheckstyle.java" )
9697
mvn_exit=$?
9798
if [ $mvn_exit -ne 0 ]; then
@@ -112,6 +113,7 @@ for module in "${!module_files[@]}"; do
112113
set +e
113114
(cd "$module" && mvn checkstyle:checkstyle \
114115
-Dcheckstyle.config.location="$PROJECT_ROOT/checkstyle/huawei-checkstyle.xml" \
116+
-Dcheckstyle.outputFormat=html \
115117
-Dcheckstyle.violationSeverity=warning) > /dev/null 2>&1
116118
set -e
117119
echo ""

0 commit comments

Comments
 (0)