Skip to content

Commit 07afbdd

Browse files
committed
Add analyzer config
1 parent b9bf0c6 commit 07afbdd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.editorconfig

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ roslynator_enum_has_flag_style = method
3838
roslynator_object_creation_type_style = explicit
3939
roslynator_use_var_instead_of_implicit_object_creation = false
4040
csharp_style_namespace_declarations = file_scoped:error
41+
dotnet_public_api_analyzer.require_api_files = true # Disable the requirement for projects to have a PublicAPI.Shipped.txt file
4142

4243
# Csharp styles
4344
csharp_new_line_before_members_in_object_initializers = false

.globalconfig

+5
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,8 @@ dotnet_diagnostic.s2479.severity = none # Replace control character at <offset>
188188
dotnet_diagnostic.ca1848.severity = none # Use the LoggerMessage delegates
189189
dotnet_diagnostic.ca1416.severity = none # Validate platform compatibility
190190
dotnet_diagnostic.ma0049.severity = none # Type name should not match containing namespace
191+
dotnet_diagnostic.ma0007.severity = none # Add a comma after the last value
192+
dotnet_diagnostic.ss019.severity = none # Switch is missing a default label. Include this to provide fallback behaviour for any missing cases, including when the upstream API adds them later on.
193+
dotnet_diagnostic.xunit1026.severity = none # Theory methods should use all of their parameters
194+
dotnet_diagnostic.ca1032.severity = none # Implement constructors for exception
195+

0 commit comments

Comments
 (0)