- Extend SarifResult with level property, and allow rule configuration
- Create SarifReportingConfiguration which allow configuring rules with a default priority, severity and an enable-toggle
- Support for setting the level property[1] of a result.
If unset, it defaults to "warning", which is the result of an empty default configuration on rules[2]
[1]: https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317648
[2]: https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317855
Should this include Remark for diagnostics like: https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/DiagnosticFrontendKinds.td#L55
If not, I think the comments should explain how to map remarks to one of these levels.