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

José Alamos notifications at github.com
Wed Jan 13 10:57:44 CET 2021

@jia200x 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
+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)

ah yes, removing the `-e` flag doesn't show the error labels. That's a weird behavior, but it is what it is :man_shrugging: 

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210113/d0655136/attachment.htm>

More information about the notifications mailing list