Replies: 1 comment 4 replies
-
|
The issue is that formatting diagnostics and lint diagnostics behave differently with Lint diagnostics have precise line/column locations, so they produce proper annotations like Formatting diagnostics are whole-file — Biome just knows "this file's output differs from the input." There's no specific line to point to, so you get a single annotation at the top of the file saying "File content differs from formatting output." That's not a bug, it's a limitation of how formatting checks work. If your goal is getting inline PR annotations for lint issues, If you want actual PR review comments (not just annotations), you'd need something like You could split your CI into two steps: - run: npx biome check --reporter github # lint annotations (line-specific)
- run: npx biome format --check # formatting check (pass/fail only)That way lint issues show inline and formatting just fails the build without noisy file-level annotations. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Per the following, it is documented that
npx biome cishould be printing line-specific information for PRs in GitHub.However, I have never gotten this to work. Recent test: https://github.com/lgarron/permission.site/pull/2/changes
--reporter githubdoes print something, but it just printsFile content differs from formatting outputassociated with the top of a file, not actual failure locations.pull-requests: writepermission doesn't seem to make a difference.Also, https://github.com/marketplace/actions/run-biome-with-reviewdog is a non-starter because it uses its own hardcoded Biome instead of
@biomejs/biomefrom pinned project dependencies.Presumably I'm missing something, but I'm not sure where else to look.
Beta Was this translation helpful? Give feedback.
All reactions