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
Microsoft Visual Studio Professional 2022
Version 17.10.0 Preview 6.0
VisualStudio.17.Preview/17.10.0-pre.6.0+34825.169
Microsoft .NET Framework
Version 4.8.09037
Expected Behavior:
There should be an error indicating that a public modifier for void Method() is required
Actual Behavior:
There's no IDE0040 inspection. dotnet_style_require_accessibility_modifiers = always is behaving the same as dotnet_style_require_accessibility_modifiers = for_non_interface_members
Notes:
This code looks outdated, there's already a version of C# that supports modifiers on interface members:
Version Used:
Steps to Reproduce:
Set the option in editorconfig:
Compile the following code:
Diagnostic Id:
IDE0040 Add accessibility modifiers
Expected Behavior:
There should be an error indicating that a
public
modifier forvoid Method()
is requiredActual Behavior:
There's no IDE0040 inspection.
dotnet_style_require_accessibility_modifiers = always
is behaving the same asdotnet_style_require_accessibility_modifiers = for_non_interface_members
Notes:
This code looks outdated, there's already a version of C# that supports modifiers on interface members:
roslyn/src/Analyzers/CSharp/Analyzers/AddAccessibilityModifiers/CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs
Lines 56 to 65 in f618852
The text was updated successfully, but these errors were encountered: