Can't change the severity of a dotnet_naming_style #36312
Labels
Area-IDE
Bug
IDE-CodeStyle
Built-in analyzers, fixes, and refactorings
Resolution-Answered
The question has been answered
Milestone
Version Used:
Visual Studio v16.1.1
dotnet v 2.2.300
Steps to Reproduce:
Add this to the .editorconfig file:
dotnet_naming_style.private_field_style.capitalization = camel_case
dotnet_naming_style.private_field_style.required_prefix = _
dotnet_naming_style.private_field_style.severity = warning
Expected Behavior:
Private field name with no '_' at the beginning should trigger a warning,
Actual Behavior:
Private field name with no '_' at the beginning trigger an error,
The text was updated successfully, but these errors were encountered: