Skip to content

Commit

Permalink
Warn when not sealing classes
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinungf committed Oct 27, 2023
1 parent f26f9ab commit 8b03427
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,16 @@ dotnet_diagnostic.MA0015.severity = warning
dotnet_diagnostic.MA0047.severity = warning
# MA0048: File name must match type name
dotnet_diagnostic.MA0048.severity = warning
# MA0053: Make class sealed
dotnet_diagnostic.MA0053.severity = warning
MA0053.public_class_should_be_sealed = true
# MA0076: Do not use implicit culture-sensitive ToString in interpolated strings
dotnet_diagnostic.MA0076.severity = warning

# Disable MA0053 for types that have been publicly exposed in a previous version
[{AutoFilterOptions.cs,ColumnOptions.cs,RowOptions.cs,SpreadCheetahOptions.cs,WorksheetOptions.cs,WorksheetRowGenerator.cs}]
dotnet_diagnostic.MA0053.severity = none

[{*Test,*.Benchmark}/**.cs]
# MA0004: Use .ConfigureAwait(false)
dotnet_diagnostic.MA0004.severity = none
Expand All @@ -201,6 +208,8 @@ dotnet_diagnostic.MA0011.severity = none
dotnet_diagnostic.MA0025.severity = none
# MA0047: Declare types in namespaces
dotnet_diagnostic.MA0047.severity = none
# MA0053: Make class sealed
dotnet_diagnostic.MA0053.severity = none
# MA0075: Do not use implicit culture-sensitive ToString
dotnet_diagnostic.MA0075.severity = none
# MA0076: Do not use implicit culture-sensitive ToString in interpolated strings
Expand Down

0 comments on commit 8b03427

Please sign in to comment.