We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c11756 commit 84e0d79Copy full SHA for 84e0d79
.github/workflows/sub_lint.yml
@@ -586,7 +586,11 @@ jobs:
586
if [ ${{ env.logdir }}cpplint.log ]
587
then
588
echo "::add-matcher::${{ runner.workspace }}/FreeCAD/.github/problemMatcher/cpplint.json"
589
- cat ${{ env.logdir }}cpplint.log
+
590
+ # Only show lint on changed lines:
591
+ git diff -U0 origin/${{ github.event.pull_request.base.ref }} | grep -E '^\+\s' | sed 's/^+//' > changed_lines.txt
592
+ grep -Ff changed_lines.txt ${{ env.logdir }}cpplint.log || true
593
594
echo "::remove-matcher owner=cpplint::"
595
cpplintErrors=$(grep -nIHE "\[[0-9]\]$" ${{ env.logdir }}cpplint.log | wc -l ) || true
596
fi
0 commit comments