Skip to content

Commit

Permalink
apply CLSCompliantAttribute to fix warning CS300X
Browse files Browse the repository at this point in the history
  • Loading branch information
smdn committed Apr 3, 2024
1 parent 558db52 commit b89a4ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace Smdn.Net.EchonetLite.Protocol;
/// <summary>
/// トランザクションID(2B)
/// </summary>
[CLSCompliant(false)]
[JsonConverter(typeof(SingleUInt16JsonConverter))]
public ushort TID { get; }

Expand All @@ -50,6 +51,7 @@ namespace Smdn.Net.EchonetLite.Protocol;
/// <paramref name="edata"/>の型が<paramref name="ehd2"/>と矛盾しています。
/// または<paramref name="ehd2"/>に不正な値が指定されています。
/// </exception>
[CLSCompliant(false)]
public Frame(EHD1 ehd1, EHD2 ehd2, ushort tid, IEData edata)
{
if (edata is null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public static void Serialize(Frame frame, IBufferWriter<byte> buffer)
}
}

[CLSCompliant(false)]
public static void SerializeEchonetLiteFrameFormat1(
IBufferWriter<byte> buffer,
ushort tid,
Expand Down Expand Up @@ -97,6 +98,7 @@ public static void Serialize(Frame frame, IBufferWriter<byte> buffer)
}
}

[CLSCompliant(false)]
public static void SerializeEchonetLiteFrameFormat2(
IBufferWriter<byte> buffer,
ushort tid,
Expand Down
1 change: 0 additions & 1 deletion src/Smdn.Net.EchonetLite/Smdn.Net.EchonetLite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ SPDX-License-Identifier: MIT

<!-- disables code style/code analysis warnings configured by Smdn.MSBuild.ProjectAssets.Library -->
<PropertyGroup>
<NoWarn>CS3001;CS3003;CS3005;$(NoWarn)</NoWarn>
<NoWarn>SA1000;SA1001;SA1004;SA1005;SA1024;SA1106;SA1110;SA1113;SA1122;SA1137;SA1208;SA1210;$(NoWarn)</NoWarn>
<NoWarn>SA1309;SA1313;SA1316;SA1402;SA1413;SA1414;$(NoWarn)</NoWarn>
<NoWarn>SA1505;SA1507;SA1508;SA1513;SA1514;SA1614;SA1623;SA1629;SA1642;$(NoWarn)</NoWarn>
Expand Down

0 comments on commit b89a4ac

Please sign in to comment.