1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-22 19:38: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;
#pragma warning disable CA1812
internal sealed class HexToColorConverter : ValueConverter<Color>
{
/// <inheritdoc />

View File

@ -3,6 +3,8 @@ using VpSharp.Extensions;
namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class IntToBoolConverter : ValueConverter<bool>
{
/// <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>
where T : struct, Enum

View File

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

View File

@ -3,6 +3,8 @@ using VpSharp.Internal.Attributes;
namespace VpSharp.Internal.ValueConverters;
#pragma warning disable CA1812
internal sealed class StringToEnumConverter<T> : ValueConverter<T>
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>
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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