We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 146a324 commit 08e80fcCopy full SHA for 08e80fc
.github/workflows/iwyu.yml
@@ -63,6 +63,9 @@ jobs:
63
- name: count warnings
64
run: |
65
cd build
66
- COUNT=`grep -c "Warning:" iwyu.log`
67
- echo "include-what-you-use reported ${COUNT} warning(s)"
68
-
+ export WARNING_COUNT=`grep -c "include-what-you-use reported diagnostics:" iwyu.log`
+ echo "include-what-you-use reported ${WARNING_COUNT} warning(s)"
+ # Acceptable limit, to decrease over time down to 0
69
+ export WARNING_LIMIT=10
70
+ # FAIL the build if WARNING_COUNT >= WARNING_LIMIT
71
+ exit $(( WARNING_COUNT >= WARNING_LIMIT ? 1 : 0 ))
0 commit comments