Update 'Severity' section in Option Format #38540
Labels
dotnet-fundamentals/svc
in-pr
This issue will be closed (fixed) by an active pull request.
📌 seQUESTered
Identifies that an issue has been imported into Quest.
⌚ Not Triaged
Not triaged
Type of issue
Outdated article
Description
See dotnet/roslyn#52991. Before dotnet/roslyn#69844 got merged, the
severity
specified inoption_name = option_value:severity
was only respected in the IDE live analysis, not on command line builds. The documentation correctly mentions this information.However, with the above change, the severity specified in
option_name = option_value:severity
will get respected on build as well. Note that to prevent any breaking changes, this functionality is not enabled by default, unless theAnalysisLevel
orAnalysisLevelStyle
is greater than or equals9.0
or set topreview
on .NET 8 SDK and also in the future when we release .NET 9 SDK and users migrate their project to net9 without setting anyAnalysisLevel
value - for net9 TFM we would defaultAnalysisLevel
to9.0
and hence this feature will get turned on by default.Page URL
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules?source=docs
Content source URL
https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/style-rules/language-rules.md
Document Version Independent Id
012968d3-07d2-5c37-fa3d-e3561eff8681
Article author
@gewarren
Metadata
Associated WorkItem - 206397
The text was updated successfully, but these errors were encountered: