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
Copy file name to clipboardExpand all lines: src/PolylineAlgorithm/Extensions/PolylineDecoderExtensions.cs
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ public static class PolylineDecoderExtensions {
30
30
/// <exception cref="ArgumentNullException">
31
31
/// Thrown when <paramref name="decoder"/> or <paramref name="polyline"/> is <see langword="null"/>.
32
32
/// </exception>
33
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1062:Validate arguments of public methods",Justification="Null is verified before use via ExceptionGuard.ThrowArgumentNull, which is annotated [DoesNotReturn]. CA1062 does not recognise custom [DoesNotReturn] helpers as null guards.")]
@@ -58,6 +59,7 @@ public static IEnumerable<TValue> Decode<TValue>(this IPolylineDecoder<string, T
58
59
/// <exception cref="ArgumentNullException">
59
60
/// Thrown when <paramref name="decoder"/> is <see langword="null"/>.
60
61
/// </exception>
62
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1062:Validate arguments of public methods",Justification="Null is verified before use via ExceptionGuard.ThrowArgumentNull, which is annotated [DoesNotReturn]. CA1062 does not recognise custom [DoesNotReturn] helpers as null guards.")]
@@ -83,6 +85,7 @@ public static IEnumerable<TValue> Decode<TValue>(this IPolylineDecoder<string, T
83
85
/// <exception cref="ArgumentNullException">
84
86
/// Thrown when <paramref name="decoder"/> or <paramref name="polyline"/> is <see langword="null"/>.
85
87
/// </exception>
88
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1062:Validate arguments of public methods",Justification="Null is verified before use via ExceptionGuard.ThrowArgumentNull, which is annotated [DoesNotReturn]. CA1062 does not recognise custom [DoesNotReturn] helpers as null guards.")]
Copy file name to clipboardExpand all lines: src/PolylineAlgorithm/Extensions/PolylineEncoderExtensions.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ public static class PolylineEncoderExtensions {
36
36
/// </exception>
37
37
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1002:Do not expose generic lists",Justification="We need a list as we do need to marshal it as span.")]
38
38
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","MA0016:Prefer using collection abstraction instead of implementation",Justification="We need a list as we do need to marshal it as span.")]
39
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1062:Validate arguments of public methods",Justification="Null is verified before use via ExceptionGuard.ThrowArgumentNull, which is annotated [DoesNotReturn]. CA1062 does not recognise custom [DoesNotReturn] helpers as null guards.")]
@@ -70,6 +71,7 @@ public static TPolyline Encode<TCoordinate, TPolyline>(this IPolylineEncoder<TCo
70
71
/// <exception cref="ArgumentNullException">
71
72
/// Thrown when <paramref name="encoder"/> or <paramref name="coordinates"/> is <see langword="null"/>.
72
73
/// </exception>
74
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1062:Validate arguments of public methods",Justification="Null is verified before use via ExceptionGuard.ThrowArgumentNull, which is annotated [DoesNotReturn]. CA1062 does not recognise custom [DoesNotReturn] helpers as null guards.")]
Copy file name to clipboardExpand all lines: src/PolylineAlgorithm/FormatterBuilder.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ private FormatterBuilder() { }
40
40
/// Creates a new <see cref="FormatterBuilder{TCoordinate, TPolyline}"/> instance.
41
41
/// </summary>
42
42
/// <returns>A fresh builder with no rules and no polyline delegates.</returns>
43
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1000:Do not declare static members on generic types",Justification="Factory method on a generic builder intentionally lives on the type so callers write FormatterBuilder<T, U>.Create() without needing a separate non-generic factory class.")]
Copy file name to clipboardExpand all lines: src/PolylineAlgorithm/PolylineDecoder.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ public class PolylineDecoder<TPolyline, TCoordinate> : IPolylineDecoder<TPolylin
38
38
/// <exception cref="ArgumentNullException">
39
39
/// Thrown when <paramref name="options"/> is <see langword="null"/>.
40
40
/// </exception>
41
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1062:Validate arguments of public methods",Justification="Null is verified before use via ExceptionGuard.ThrowArgumentNull, which is annotated [DoesNotReturn]. CA1062 does not recognise custom [DoesNotReturn] helpers as null guards.")]
Copy file name to clipboardExpand all lines: src/PolylineAlgorithm/PolylineEncoder.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ public class PolylineEncoder<TCoordinate, TPolyline> : IPolylineEncoder<TCoordin
40
40
/// <exception cref="ArgumentNullException">
41
41
/// Thrown when <paramref name="options"/> is <see langword="null"/>.
42
42
/// </exception>
43
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1062:Validate arguments of public methods",Justification="Null is verified before use via ExceptionGuard.ThrowArgumentNull, which is annotated [DoesNotReturn]. CA1062 does not recognise custom [DoesNotReturn] helpers as null guards.")]
0 commit comments