reviewdog posts review comments to code hosts such as GitHub and GitLab by piping linter or analyzer output through diff-aware reporters. It also runs locally to show only new findings against a patch.
Overview
reviewdog is a command-line tool that connects static analysis and linter tools to pull-request workflows on major code hosting services. It reads tool output from standard input, parses formats including Vim-style errorformat, checkstyle XML, SARIF, and its own Reviewdog Diagnostic Format, then reports only diagnostics that fall within the changed lines of a review diff.
Reporters target GitHub Checks, pull-request review comments, annotations, GitLab merge-request discussions, Bitbucket Code Insights, Gerrit change review, and a default local mode for editor or shell use. Filter modes control whether results are limited to added lines, whole changed files, or the full project. Configuration can live in a .reviewdog.yml file so the same runner definitions work in CI and on a developer machine.
The tool ships with many predefined errorformat profiles for common languages and linters, and contributors can extend that catalog. RDFormat and diff-based input enable multiline comments, severities, rule links, and code suggestions where the reporter supports them.
Install options named in the documentation include Homebrew and Linuxbrew, Scoop on Windows, go install, nightly builds, and a GitHub Action setup action. Documented CI integrations cover GitHub Actions, Travis CI, Circle CI, GitLab CI, Bitbucket Pipelines, Jenkins, and generic local runs.
Key features
- Linter output to PR comments
- Diff-filtered diagnostics
- Multiple reporter backends
- errorformat and predefined -f profiles
- SARIF and checkstyle input
- RDFormat with code suggestions
- .reviewdog.yml project config
- Local and CI execution
Use cases
- GitHub PR review from ESLint
- GitLab MR discussion comments
- Local lint filtered by git diff
- SARIF results on pull requests
- Bitbucket pipeline code insights
Does the same job as
reviewdog doesn't name these products itself, but its own description shows it does the same job.