[riot-notifications] [RIOT-OS/RIOT] dist/tools/vera++: annotate errors in Github Action (#15753)

Martine Lenders notifications at github.com
Tue Jan 12 19:24:59 CET 2021


@miri64 commented on this pull request.



>  echo "$FILES" | $VERA_CMD --profile riot \
-    --parameters $CURDIR/profiles/riot_params.txt -w
+    --parameters $CURDIR/profiles/riot_params.txt -w 2>&1 | ${LOG}
+# Uncomment when the script should error
+# RESULT=${PIPESTATUS[0]}
+
+if github_annotate_is_on; then
+    _annotate() {
+        FILENAME=$(echo "${line}" | cut -d: -f1)
+        LINENUM=$(echo "${line}" | cut -d: -f2)
+        DETAILS=$(echo "${line}" | cut -d: -f3- |
+                  sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
+
+        # parse if warning (errors don't have a label)

Ok. I added removing the `error:` label below. [Here is the run without the `-e` flag](https://github.com/RIOT-OS/RIOT/runs/1690123507) and [here it is with the `-e` flag](https://github.com/RIOT-OS/RIOT/pull/15753/checks?check_run_id=1690126292).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15753#discussion_r555983454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210112/d2f985d3/attachment.htm>


More information about the notifications mailing list