Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 12, 2026·2 min de lectura

reviewdog — Turn Lint Into PR Review Comments

reviewdog reads any linter output and posts precise PR comments or Checks, so teams can enforce quality without noisy, copy-pasted logs in reviews.

Listo para agents

Staging seguro para este activo

Este activo primero queda en staging. El prompt copiado pide inspeccionar los archivos staged antes de activar scripts, config MCP o config global.

Stage only · 29/100Política: staging
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Stage only
Confianza
Confianza: Established
Entrada
Asset
Comando de staging seguro
npx -y tokrepo@latest install e9ba168c-1bce-4dc4-be6a-a8d99a670061 --target codex

Primero deja archivos en staging; la activación requiere revisar el README y el plan staged.

Introducción

reviewdog reads any linter output and posts precise PR comments or Checks, so teams can enforce quality without noisy, copy-pasted logs in reviews.

  • Best for: repos that have multiple linters and want consistent, diff-scoped PR feedback
  • Works with: GitHub/GitLab CI, any linter output (checkstyle/eslint/golangci-lint, etc.)
  • Setup time: 10–20 minutes

Practical Notes

  • Quant gate: make CI fail when new issues appear (diff-only mode).
  • Tip: start with -reporter=local before wiring PR credentials.

Pattern: “diff-only” quality gate

When a repo has a backlog of existing issues, the fastest rollout is only comment on new problems introduced by the PR.

  1. Pick one linter and ensure it prints file/line/col.

  2. Pipe to reviewdog with diff filtering:

<your_linter_cmd> | reviewdog -f=golint -reporter=github-pr-review -filter-mode=diff_context
  1. Tighten gradually:
  • Start as github-pr-review (developer-friendly),
  • then switch to github-check (status checks) if you want a strict merge gate.

Pattern: unify many linters into one “review surface”

If your CI runs multiple tools (format, security, deps, etc.), keep the PR readable:

  • Use a consistent reporter (Checks or Review),
  • use consistent severity mapping,
  • keep messages short and actionable (first sentence: what to change).

Troubleshooting

  • If nothing posts: validate you’re running in a PR context and tokens are present.
  • If comments are too noisy: use diff filtering, or limit to changed paths only.

FAQ

Q: Do I have to use GitHub Actions? A: No. reviewdog can run in many CI systems; the key is having a PR diff context when you want PR comments.

Q: Can I run it locally? A: Yes. Use -reporter=local to validate parsing and formatting before wiring CI credentials.

Q: How do I avoid commenting on old issues? A: Use diff filtering (-filter-mode=diff_context) so only new issues are surfaced.

🙏

Fuente y agradecimientos

Source: https://github.com/reviewdog/reviewdog > License: MIT > GitHub stars: 9,286 · forks: 485

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados