[Pitch] SARIF Support for Swift Diagnostics

Hello Swift Forums! :waving_hand:

This is a pitch for introducing support in the Swift compiler for serializing Swift diagnostics to the Static Analysis Results Interchange Format (SARIF) v2.1.0, a standardized JSON-based format with a rich information model for representing static analysis results.

This will facilitate integration of Swift diagnostic output with a variety of language tools and enable comprehensive diagnostic tracking via result management systems for automated code quality workflows.

I would love to hear your feedback on this proposal.

11 Likes

@ecosystem-steering-group This pitch requires creation of sarif and swift-sarif repositories as explained in the Implementation Plan section. I need your sponsorship for creating these repositories.