-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add effective severities custom property array to error log #68892
Add effective severities custom property array to error log #68892
Conversation
b606d46
to
cd75ba2
Compare
When parsing the example log with the Sarif SDK, I get the following error:
It looks like when adding the |
src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerDriver.cs
Outdated
Show resolved
Hide resolved
src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerDriver.cs
Outdated
Show resolved
Hide resolved
src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerDriver.cs
Outdated
Show resolved
Hide resolved
@dotnet/roslyn-compiler for reviews, thanks! |
Ping @dotnet/roslyn-compiler for reviews |
src/Compilers/CSharp/Test/CommandLine/SarifV2ErrorLoggerTests.cs
Outdated
Show resolved
Hide resolved
@jjonescz addressed feedback, kindly take another look. Thanks! |
Thanks @jjonescz! @dotnet/roslyn-compiler for second review |
PR will need to be rebased to merge to 17.8 |
Closes dotnet#67365 Add a new custom property array named `effectiveConfigurationLevels` to the `rule` section in sarif v2 error log output. If the severity of any analyzer diagnostic ID was configured via options (command line options, editorconfig, globalconfig, rulesets, etc.) for a part or whole of the compilation, we emit this array of effective severities.
Co-authored-by: Jan Jones <jan.jones.cz@gmail.com>
Co-authored-by: Rikki Gibson <rikkigibson@gmail.com>
883deba
to
ed2a2d0
Compare
Thanks, done. |
Closes #67365
Add a new custom property array namedAdd a neweffectiveConfigurationLevels
to therule
section in sarif v2 error log output.invocations
section withruleConfigurationOverrides
array, with an entry each for every rule ID severity override configured via options (command line options, editorconfig, globalconfig, rulesets, etc.) for a part or whole of the compilation. See #67365 (comment) for further detailsSample error log with this change: errorlog.log