reviewdog是一款开源的自动化代码审查工具。基于Go语言编写,遵守MIT开源协议。无论任何编程语言,都可与其代码分析工具集成。可以通过与任何linter工具集成,将评审注释发布到代码托管服务。在发现需要审查的补丁时将其作为评论发布。 reviewdog还支持在本地环境中运行,通过 diff 过滤 lint 工具的输出。

安装:

# Install the latest version. (Install it into ./bin/ by default).
$ curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s

# Specify installation directory ($(go env GOPATH)/bin/) and version.
$ curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b $(go env GOPATH)/bin [vX.Y.Z]

# In alpine linux (as it does not come with curl by default)
$ wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s [vX.Y.Z]

https://github.com/reviewdog/reviewdog

[repo owner=”reviewdog” name=”reviewdog”]