Configuring Reviewdog for Multi-Language Monorepos
Route each linter to its directory, and cut the noise reviewers see.

Configuring Reviewdog for a multi-language monorepo is a routing problem. The effective setup connects each language’s analyzer to the right directory, preserves useful diagnostic detail, and publishes findings where reviewers can act on them. Useful feedback from that shared reporting layer requires path scope and diff filtering that exclude unrelated noise, plus CI permissions that allow reporting.
What Reviewdog actually does and does not do
Reviewdog accepts diagnostic output from an upstream tool, maps findings to the current diff, and publishes relevant results through a code-review interface. It supplies no detection logic of its own. Reviewdog’s README says the tool uses lint output and posts findings within the patches under review. Teams can therefore retain their trusted analyzers while standardizing how developers receive their results.
That separation governs the configuration work that follows. The upstream analyzer determines what gets checked, while Reviewdog controls how those findings are parsed, filtered, labeled, and delivered. Reporting severity can be configured, but that does not improve the underlying analysis. In a monorepo, this flexibility permits language-specific tooling and requires language-specific wiring.
Why a monorepo makes the wiring problem non-trivial
A Go backend, TypeScript frontend, Python ML service, and shared protobuf schemas introduce different diagnostic formats and directory boundaries into one repository. They also introduce different owners and review standards. Without path-aware execution, a small Python change can trigger frontend lint output that has nothing to do with the work under review. Repeated irrelevant comments train reviewers to disregard the reporting layer.
Directory structure provides the first useful routing map. Logical roots such as backend/, frontend/, and ml-service/ let CI run the analyzers for those paths without checking the whole repository for every change. Risk boundaries can be narrower than language boundaries, however, because a payments service may need stricter review than a marketing site. Even with a shared publication layer, teams still need separate analyzer configurations and reporting policies for each service.
How the.reviewdog.yml configuration file structures multi-runner setups
The .reviewdog.yml file replaces scattered CLI options with a versioned collection of named runners. Each runner requires a cmd and can specify a named format, an errorformat list, a display-name override, and a reporting level. The supported levels are info, warning, and error.
A basic multi-language configuration has a top-level runner mapping with entries such as go-vet, ts-eslint, and py-ruff. Each entry pairs its analyzer command with the parser for that command’s output. Names become labels on review comments, so language-and-tool names preserve context when several analyzers report on one pull request. Reviewdog’s README also describes using the same configured commands in CI, locally, and through editor integration.
Execution scope remains a separate configuration choice. A single reviewdog -conf=.reviewdog.yml invocation can run multiple configured tools, while service-local files can restrict configuration ownership to individual subtrees. A root file can also run just the tools needed for a change by selecting runners.
Choosing the right input format for each language's linter
RDFormat carries more diagnostic detail than the other formats described here. Its rdjson and rdjsonl forms support severity, multiline ranges, rule codes with URLs, and code suggestions. When those details are available from the analyzer, preserving them gives reviewers more than a line number and message. For TypeScript, eslint-formatter-rdjson enables eslint -f rdjson . | reviewdog -f=rdjson -reporter=github-pr-review.
The practical choice then depends on existing parser support. Where a predefined format already matches the tool, it avoids maintaining custom parsing code. Available names are discoverable through reviewdog -list, and include govet, golint, and sbt. A Go vet runner can therefore pair its command with format set to govet, while a TypeScript runner can use rdjson when structured ESLint output is available.
If no suitable named format exists, RDFormat is appropriate when the tool supports it or a converter is available. Security scanners have another structured route through SARIF 2.1.0, which Reviewdog accepts from tools such as Semgrep, Checkov, and Bandit. Custom or unusual text output can fall back to errorformat, using a pattern such as %f:%l:%c: %m. The README’s interactive playground helps refine those patterns.
Formatters need a different path to actionable feedback. Reviewdog accepts unified diffs from tools such as gofmt or eslint --fix and can publish suggestions from them. For git diff output, the documented options are -f=diff -f.diff.strip=1. Tool-generated diffs use -f.diff.strip=0, so the path interpretation must match the producer.
Scoping runners to path boundaries so findings reach the right team
The canonical subdirectory pattern changes into the language root before invoking Reviewdog. The linter and reporting process then operate with paths relative to that subtree. Reviewdog’s workflow example demonstrates this by entering ./_testdata/ before piping lint findings into the reporter. This working-directory choice is part of the wiring.
For the reference layout, the repository contains backend/, frontend/, and ml-service/, with payments code beneath backend/payments/. When each service owns its configuration, the files sit at backend/.reviewdog.yml, frontend/.reviewdog.yml, and ml-service/.reviewdog.yml. Each team can then change its runner definitions without editing a shared root file. The same directory layout can also use a root configuration that names which runners to run.
CI path triggers constrain which jobs start. A backend change activates the backend job, while frontend and ML changes activate their respective jobs. This prevents unrelated analyzer runs before diff filtering becomes relevant. Although several small configuration files require maintenance, a root file avoids that noise equally well when CI selects only the relevant runners.
Diff-filter modes as the precision control for what gets annotated
Path scoping chooses which analyzers run, while diff filtering chooses which findings they publish. The default added mode reports findings on added or modified lines. It is the appropriate starting point for routine monorepo pull requests because unchanged lint debt does not become review noise. This keeps annotation scope close to the proposed change.
The diff_context mode widens reporting to the surrounding diff context. It is useful when an analyzer locates a relevant finding on nearby unchanged code, such as an import. The file mode goes further by reporting findings anywhere in a touched file. That wider scope fits security-sensitive services where a change to a file should lead to a check of the whole file.
The nofilter mode reports findings regardless of the diff. Its useful role is an initial debt assessment or a one-off audit. Separate CI jobs can use different -filter-mode values in the same repository. Routine backend work can use added while payments review uses file, so only the services that need the wider checks get them.
Handling reporter selection and token security for forked PRs and agent-authored branches
The github-pr-review reporter publishes inline review comments and supports suggestions from RDFormat or diff input. It requires a GITHUB_TOKEN with write access. github-annotations and github-pr-annotations publish GitHub Actions annotations. Those annotation reporters work with the default token in most configurations.
A configuration that depends on write-enabled review comments cannot assume those permissions exist. Reporter selection must reflect that restriction rather than treating missing comments as an analyzer failure.
Teams must also decide whether to trust agent-authored branches. CI execution on agent pushes cannot simply be assumed, and Reviewdog feedback becomes available only if that execution is permitted. The practical default is github-annotations for forked and agent-authored pull requests, reserving github-pr-review for controlled internal branches. That fallback addresses publication permissions, but it does not replace the decision to allow the workflow to run.
Assembling the CI workflow: parallelism, fail-on-error, and the feedback loop back to coding agents
Language-specific CI jobs can run concurrently once their path conditions are met. A pull request touching Go and TypeScript therefore receives independent feedback from both jobs without requiring sequential execution. Each job enters its service directory, invokes the selected runner, and applies its reporting policy. Checks for the whole repository run apart from these conditions for each service.
Merge gating needs an explicit severity policy. The -fail-level option replaces the deprecated -fail-on-error flag, and -fail-level=any returns a non-zero result for any reported finding. That setting does not distinguish warnings from errors. When warnings should be advisory, -fail-level=error sets the threshold so that only errors block a merge through a required CI status check.
Structured feedback also supports an agent correction loop. An agent can read findings attached to its changed lines, make a corrective commit, and return the revised diff for human review. Humans retain the merge decision. Composal or similar browser-agent validators can complement this loop by checking critical user journeys, because passing lint and passing end-to-end validation establish different things.
A reference configuration for a Go, TypeScript, and Python monorepo
The reference arrangement uses the same backend/, frontend/, and ml-service/ roots, but centralizes runner definitions in the repository’s .reviewdog.yml. Its top-level runner mapping has separate entries for Go, TypeScript, and Python. CI enters each service directory and invokes the shared configuration through -conf=../.reviewdog.yml, selecting only the relevant runner through -runners.
For Go, the golangci-lint entry pairs the analyzer command with Reviewdog’s predefined golangci-lint format. The job runs from backend/ when backend/** changes and selects that entry with -runners=golangci-lint. Routine review uses -filter-mode=added. A payments-specific job uses the same path-aware pattern with -filter-mode=file for backend/payments/.
For TypeScript, the ts-eslint entry sets cmd to eslint -f rdjson . and format to rdjson. The required formatter is eslint-formatter-rdjson. Its CI job enters frontend/, responds to frontend/** changes, and selects -runners=ts-eslint. Biome also has the command biome check --reporter=rdjson, which keeps the same structured-input pattern and directory policy.
For Python, the py-ruff entry runs Ruff from ml-service/ and uses an errorformat matching the chosen output. The example pattern %f:%l:%c: %m applies when diagnostics have that file, line, column, and message structure. Parser and output must agree exactly. The CI job responds to ml-service/** changes and selects only the Python runner.
All service jobs obtain their reporter choice from an environment variable, keeping the runner definitions branch-agnostic. Controlled internal branches use github-pr-review, while forked and agent-authored pull requests use github-annotations. At the repository root, actionlint and detect-secrets run on every pull request regardless of service paths. These cross-cutting checks can use file or nofilter where their review scope warrants it.
What Reviewdog cannot do and where to draw the boundary
A correctly routed diagnostic still has the limits of its analyzer. Reviewdog cannot make weak detection better, reason across services, or prove that a user journey works. A shared protobuf change can compile cleanly for a Go producer and TypeScript consumer while breaking their wire-format agreement. Path-scoped lint findings do not establish compatibility across that boundary.
The maintenance cost is real but bounded. Teams must maintain analyzer configurations, path triggers, and any format converters as their repository changes. The alternative is a reporting layer whose unrelated findings steadily erode reviewer attention.
Reviewdog gives fast, diff-scoped feedback before human review, while end-to-end validation checks critical flows after the combined change. Engineers and product leaders retain the release decision. When a team knows what each layer proves, it can judge the whole change without taking a clean lint report as proof that the product works.


