diff --git a/.github/workflows/check-system-print.yml b/.github/workflows/check-system-print.yml index 8dfa0760e..73697bc59 100644 --- a/.github/workflows/check-system-print.yml +++ b/.github/workflows/check-system-print.yml @@ -17,7 +17,7 @@ jobs: - name: Check using System.out.print run: | - COUNT=`grep -rE "System\.(out|err)\.print" --include=*.java src/main | tee ../system-prints.txt | wc -l || true` + COUNT=`grep -rEn "System\.(out|err)\.print" --include=*.java src/main | tee ../system-prints.txt | wc -l || true` echo count: $COUNT cat ../system-prints.txt cat ../system-prints.txt | reviewdog -efm="%f:%l" -name="Check using System.out/err.print" -reporter=github-pr-review -level=warning