Skip to content

feat(typechecking): SARIF output for pyrefly check#4208

Open
tobyh-canva wants to merge 4 commits into
facebook:mainfrom
tobyh-canva:feat/sarif
Open

feat(typechecking): SARIF output for pyrefly check#4208
tobyh-canva wants to merge 4 commits into
facebook:mainfrom
tobyh-canva:feat/sarif

Conversation

@tobyh-canva

Copy link
Copy Markdown
Collaborator

Summary

Adds support for pyrefly check --output-format=sarif.

The SARIF report is fairly simple and purely diagnostic for now - it does not provide any fixes, fingerprints, code flows, etc. Those would require a bit more work in other areas of Pyrefly.

This adds the serde-sarif crate as a dependency.

Resolves #4205.

Test Plan

  • New snapshot-based regression test for SARIF output under test/sarif, conducted by strut

@github-actions

This comment has been minimized.

@github-actions github-actions Bot added size/xl and removed size/xl labels Jul 19, 2026
@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(typechecking): support SARIF output format

1 participant