Support reviewdog
takumin opened this issue · comments
Takumi Takahashi commented
Movivation
Integrating reviewdog with yamlfmt
will allow for easy and sound pull request review.
The reviewdog can receive error reports in errorformat, RDformat or Diff
format.
Currently it is possible to parse yamlfmt error messages with errorformat
, but diffs in dryrun
mode are difficult to parse with reviewdog.
Proposal
- yamlfmt
dryrun
mode, display messages inDiff
format. - yamlfmt
lint
mode, display messages inshellcheck
compatible format.
Example
You can easily integrate yamlfmt
and reviewdog
by simply setting the following in reviewdog.
runner:
yamlfmt-lint:
cmd: yamlfmt -lint .
format: shellcheck
yamlfmt-format:
cmd: yamlfmt -dry .
format: diff
Thanks to all of you for your great work.