You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Diagnostics configured via category or for all analyzers remain as warnings even when TreatWarningsAsErrors is true. They should instead be shown as errors in the error list and during command-line builds just like they do when each diagnostic is individually configured by ID to be a warning.
We don't want to configure these as errors because we don't want them to show that way in the IDE or block inner loop building/testing. We don't want to configure each diagnostic individually as a warning because that's a lot of lines. But we also want TreatWarningsAsErrors to turn these into errors during CI builds to prevent clutter from building up in the error list.
classC{voidM(){}}
root = true
[*.cs]dotnet_analyzer_diagnostic.category-CodeQuality.severity = warning
# This doesn't work eitherdotnet_analyzer_diagnostic.category.severity = warning
# Uncomment to see the warning start showing as an error in the Error List and in command line builds# dotnet_diagnostic.IDE0051.severity = warning
Version Used: 16.10.0
Diagnostics configured via category or for all analyzers remain as warnings even when TreatWarningsAsErrors is true. They should instead be shown as errors in the error list and during command-line builds just like they do when each diagnostic is individually configured by ID to be a warning.
We don't want to configure these as errors because we don't want them to show that way in the IDE or block inner loop building/testing. We don't want to configure each diagnostic individually as a warning because that's a lot of lines. But we also want TreatWarningsAsErrors to turn these into errors during CI builds to prevent clutter from building up in the error list.
The text was updated successfully, but these errors were encountered: