[SAOC 2024] Improving D Error Messages Weekly Update #1

Royal Simpson Pinto royalpinto007 at gmail.com
Mon Sep 23 04:25:58 UTC 2024


On Monday, 23 September 2024 at 04:17:32 UTC, Nicholas Wilson 
wrote:
>
> Silly question: What is SARIF?

Hi Nicholas,

SARIF stands for Static Analysis Results Interchange Format, 
which is a standard (in JSON format) used to report errors, 
warnings, and analysis results in a way that can be easily shared 
between tools, like IDEs and CI systems.

For my project, I’m working on adding SARIF support to the DMD 
compiler, possibly by providing an option or a compiler flag to 
output error messages in this format. I’m still clarifying the 
exact approach with my mentor, but the goal is to make D’s error 
reporting more versatile and compatible with other tools.

If you're curious, you can read more about SARIF here: [SARIF 
Standard on OASIS](https://www.oasis-open.org/committees/sarif/) 
and [SARIF support for code 
scanning](https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning).



More information about the Digitalmars-d mailing list