[riot-notifications] [RIOT-OS/RIOT] dist/tools/codespell: annotate errors in Github Action (#15751)

Martine Lenders notifications at github.com
Wed Jan 13 16:43:22 CET 2021


@miri64 commented on this pull request.



> +            INTERACTIVE_CALL="CODESPELL_INTERACTIVE=1"
+            INTERACTIVE_CALL="${INTERACTIVE_CALL} BASE_BRANCH=${BASE_BRANCH}"
+            INTERACTIVE_CALL="${INTERACTIVE_CALL} ./${REL_SCRIPT_PATH}"
+
+            ANNOTATION="There is a typo: ${ERROR}\n"
+            ANNOTATION="${ANNOTATION}\nIf this is a false positive,"
+            ANNOTATION="${ANNOTATION} add it to ${IGNORED_WORDS}."
+            ANNOTATION="${ANNOTATION}\n\nYou can fix this interactively by"
+            ANNOTATION="${ANNOTATION} calling\n\n"
+            ANNOTATION="${ANNOTATION}     ${INTERACTIVE_CALL}"
+            github_annotate_error "${FILENAME}" "${LINENUM}" "${ANNOTATION}"
+        done
+    else
+        printf "%sThere are typos in the following files:%s\n\n" "${CERROR}" "${CRESET}"
+        printf "%s\n" "${ERRORS}"
+        printf "If those are false positives, add them to %s\n" "${RIOTTOOLS}/codespell/ignored_words.txt"

Done btw :-)

-- 
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/15751#discussion_r556617020
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210113/615ddd32/attachment.htm>


More information about the notifications mailing list