1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-23 00:48:47 +00:00

Suppress CA1812 for value converters

This commit is contained in:
Oliver Booth 2022-11-30 02:27:19 +00:00
parent bb39b2eb62
commit 0549184c60
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
13 changed files with 28 additions and 2 deletions

View File

@ -3,6 +3,8 @@ using System.Globalization;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class HexToColorConverter : ValueConverter<Color> internal sealed class HexToColorConverter : ValueConverter<Color>
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -3,6 +3,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class IntToBoolConverter : ValueConverter<bool> internal sealed class IntToBoolConverter : ValueConverter<bool>
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -1,4 +1,6 @@
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class IntToEnumConverter<T> : ValueConverter<T> internal sealed class IntToEnumConverter<T> : ValueConverter<T>
where T : struct, Enum where T : struct, Enum

View File

@ -3,6 +3,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class MillisecondToTimeSpanConverter : ValueConverter<TimeSpan> internal sealed class MillisecondToTimeSpanConverter : ValueConverter<TimeSpan>
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -3,6 +3,8 @@ using VpSharp.Internal.Attributes;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class StringToEnumConverter<T> : ValueConverter<T> internal sealed class StringToEnumConverter<T> : ValueConverter<T>
where T : struct, Enum where T : struct, Enum
{ {

View File

@ -1,4 +1,6 @@
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class UriConverter : ValueConverter<Uri> internal sealed class UriConverter : ValueConverter<Uri>
{ {

View File

@ -4,6 +4,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class Vector2Converter : ValueConverter<Vector2> internal sealed class Vector2Converter : ValueConverter<Vector2>
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -4,6 +4,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class Vector3Converter : ValueConverter<Vector3> internal sealed class Vector3Converter : ValueConverter<Vector3>
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -3,6 +3,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class Vector3ToColorConverter : ValueConverter<ColorF> internal sealed class Vector3ToColorConverter : ValueConverter<ColorF>
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -3,6 +3,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class Vector3dConverter : ValueConverter<Vector3d> internal sealed class Vector3dConverter : ValueConverter<Vector3d>
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -3,6 +3,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class Vector4ToColorConverter : ValueConverter<ColorF> internal sealed class Vector4ToColorConverter : ValueConverter<ColorF>
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -4,6 +4,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class Vector4ToVector3Converter : ValueConverter<Vector3> internal sealed class Vector4ToVector3Converter : ValueConverter<Vector3>
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -3,6 +3,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters; namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class VectorToNthComponentConverter : ValueConverter<float> internal sealed class VectorToNthComponentConverter : ValueConverter<float>
{ {
private readonly int _componentNumber; private readonly int _componentNumber;