We can use --autofix option of Verible to provide change suggestions that can be easily applied on GitHub.
However, with errorformat which is currently used to pass information to Reviewdog, this is not possible.
The feature of autofix can be disabled by setting the suggest_fixes input to false.
I've confirmed that the same warnings will be raised but without change suggestions, as expected, here:
https://github.com/antmicro/gha-playground/pull/46
We can use
--autofix
option of Verible to provide change suggestions that can be easily applied on GitHub. However, witherrorformat
which is currently used to pass information to Reviewdog, this is not possible.Verible provides output in two formats:
This PR adds a script which merges the information from these two files to provide a JSON-based Reviewdog Diagnostic Format file.
The RDFormat file is then used as input to Reviewdog, which posts code review with change suggestions. Example results can be viewed here: https://github.com/antmicro/gha-playground/pull/47#discussion_r703638460
The feature of autofix can be disabled by setting the
suggest_fixes
input tofalse
. I've confirmed that the same warnings will be raised but without change suggestions, as expected, here: https://github.com/antmicro/gha-playground/pull/46