Skip to content

Commit cac1041

Browse files
committed
[StyleCleanUp] Use ArgumentOutOfRangeException throw helper (CA1512)
1 parent 2ded801 commit cac1041

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Microsoft.DotNet.Wpf/src/.editorconfig

-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ dotnet_diagnostic.CA1510.severity = suggestion
5353
# CA2211: Non-constant fields should not be visible
5454
dotnet_diagnostic.CA2211.severity = suggestion
5555

56-
# CA1512: Use ArgumentOutOfRangeException throw helper
57-
dotnet_diagnostic.CA1512.severity = suggestion
58-
5956
# CA1513: Use ObjectDisposedException throw helper
6057
dotnet_diagnostic.CA1513.severity = suggestion
6158

src/Microsoft.DotNet.Wpf/src/PresentationCore/GlobalSuppressions.cs

+3
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@
3232
[assembly: SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "Compat", Scope = "member", Target = "~M:System.Windows.Clipboard.IsCurrent(System.Windows.IDataObject)~System.Boolean")]
3333
[assembly: SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "Compat", Scope = "member", Target = "~M:System.Windows.DataObject.System#Runtime#InteropServices#ComTypes#IDataObject#EnumFormatEtc(System.Runtime.InteropServices.ComTypes.DATADIR)~System.Runtime.InteropServices.ComTypes.IEnumFORMATETC")]
3434
[assembly: SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "Compat", Scope = "member", Target = "~M:System.Windows.OleServicesContext.SetDispatcherThread")]
35+
36+
// TODO: Remove these when analyzer issue is fixed (https://github.com/dotnet/roslyn-analyzers/issues/7617)
37+
[assembly: SuppressMessage("Maintainability", "CA1512:Use ArgumentOutOfRangeException throw helper", Justification = "Analyzer bug: https://github.com/dotnet/roslyn-analyzers/issues/7617", Scope = "member", Target = "~M:System.Windows.Interop.D3DImage.TryLock(System.Windows.Duration)~System.Boolean")]

0 commit comments

Comments
 (0)