Skip to content

Commit 3c36a5f

Browse files
committed
disable and comment naming rule violation checks
1 parent c14a7ed commit 3c36a5f

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

com.unity.multiplayer.mlapi/Editor/MLAPIProfilerModule.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ internal static class MLAPIProfilerModule
1717
private const string k_OperationModuleName = "MLAPI Operations";
1818
private const string k_MessageModuleName = "MLAPI Messages";
1919

20+
#pragma warning disable IDE1006 // disable naming rule violation check
2021
/// <summary>
2122
/// This needs to be in synced with the internal dynamic module structure to provide our own counters
2223
/// </summary>
@@ -46,6 +47,7 @@ private class MLAPIModules
4647
// Note: These fields are named this way for internal serialization
4748
public List<MLAPIProfilerModuleData> Modules;
4849
}
50+
#pragma warning restore IDE1006 // restore naming rule violation check
4951

5052
private static List<MLAPIProfilerCounter> CreateRPCCounters() => new List<MLAPIProfilerCounter>()
5153
{

com.unity.multiplayer.mlapi/Runtime/Core/NetworkBehaviour.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace MLAPI
2525
/// </summary>
2626
public abstract class NetworkBehaviour : MonoBehaviour
2727
{
28-
#pragma warning disable IDE1006
28+
#pragma warning disable IDE1006 // disable naming rule violation check
2929
[Browsable(false)]
3030
[EditorBrowsable(EditorBrowsableState.Never)]
3131
#if UNITY_2020_2_OR_NEWER
@@ -35,15 +35,15 @@ internal enum __NExec
3535
[Obsolete("Please do not use, will no longer be exposed in the future versions (framework internal)")]
3636
public enum __NExec
3737
#endif
38-
#pragma warning restore IDE1006
38+
#pragma warning restore IDE1006 // restore naming rule violation check
3939
{
4040
None = 0,
4141
Server = 1,
4242
Client = 2
4343
}
4444

4545
#pragma warning disable 414
46-
#pragma warning disable IDE1006
46+
#pragma warning disable IDE1006 // disable naming rule violation check
4747
[NonSerialized]
4848
[Browsable(false)]
4949
[EditorBrowsable(EditorBrowsableState.Never)]
@@ -56,9 +56,9 @@ public enum __NExec
5656
public __NExec __nexec = __NExec.None;
5757
#endif
5858
#pragma warning restore 414
59-
#pragma warning restore IDE1006
59+
#pragma warning restore IDE1006 // restore naming rule violation check
6060

61-
#pragma warning disable IDE1006
61+
#pragma warning disable IDE1006 // disable naming rule violation check
6262
[Browsable(false)]
6363
[EditorBrowsable(EditorBrowsableState.Never)]
6464
#if UNITY_2020_2_OR_NEWER
@@ -68,7 +68,7 @@ internal NetworkSerializer __beginSendServerRpc(ServerRpcParams serverRpcParams,
6868
[Obsolete("Please do not use, will no longer be exposed in the future versions (framework internal)")]
6969
public NetworkSerializer __beginSendServerRpc(ServerRpcParams serverRpcParams, RpcDelivery rpcDelivery)
7070
#endif
71-
#pragma warning restore IDE1006
71+
#pragma warning restore IDE1006 // restore naming rule violation check
7272
{
7373
PooledNetworkWriter writer;
7474

@@ -103,7 +103,7 @@ public NetworkSerializer __beginSendServerRpc(ServerRpcParams serverRpcParams, R
103103
return writer.Serializer;
104104
}
105105

106-
#pragma warning disable IDE1006
106+
#pragma warning disable IDE1006 // disable naming rule violation check
107107
[Browsable(false)]
108108
[EditorBrowsable(EditorBrowsableState.Never)]
109109
#if UNITY_2020_2_OR_NEWER
@@ -113,7 +113,7 @@ internal void __endSendServerRpc(NetworkSerializer serializer, ServerRpcParams s
113113
[Obsolete("Please do not use, will no longer be exposed in the future versions (framework internal)")]
114114
public void __endSendServerRpc(NetworkSerializer serializer, ServerRpcParams serverRpcParams, RpcDelivery rpcDelivery)
115115
#endif
116-
#pragma warning restore IDE1006
116+
#pragma warning restore IDE1006 // restore naming rule violation check
117117
{
118118
if (serializer == null)
119119
{
@@ -131,7 +131,7 @@ public void __endSendServerRpc(NetworkSerializer serializer, ServerRpcParams ser
131131
}
132132
}
133133

134-
#pragma warning disable IDE1006
134+
#pragma warning disable IDE1006 // disable naming rule violation check
135135
[Browsable(false)]
136136
[EditorBrowsable(EditorBrowsableState.Never)]
137137
#if UNITY_2020_2_OR_NEWER
@@ -141,7 +141,7 @@ internal NetworkSerializer __beginSendClientRpc(ClientRpcParams clientRpcParams,
141141
[Obsolete("Please do not use, will no longer be exposed in the future versions (framework internal)")]
142142
public NetworkSerializer __beginSendClientRpc(ClientRpcParams clientRpcParams, RpcDelivery rpcDelivery)
143143
#endif
144-
#pragma warning restore IDE1006
144+
#pragma warning restore IDE1006 // restore naming rule violation check
145145
{
146146
PooledNetworkWriter writer;
147147

@@ -208,7 +208,7 @@ public NetworkSerializer __beginSendClientRpc(ClientRpcParams clientRpcParams, R
208208
return writer.Serializer;
209209
}
210210

211-
#pragma warning disable IDE1006
211+
#pragma warning disable IDE1006 // disable naming rule violation check
212212
[Browsable(false)]
213213
[EditorBrowsable(EditorBrowsableState.Never)]
214214
#if UNITY_2020_2_OR_NEWER
@@ -218,7 +218,7 @@ internal void __endSendClientRpc(NetworkSerializer serializer, ClientRpcParams c
218218
[Obsolete("Please do not use, will no longer be exposed in the future versions (framework internal)")]
219219
public void __endSendClientRpc(NetworkSerializer serializer, ClientRpcParams clientRpcParams, RpcDelivery rpcDelivery)
220220
#endif
221-
#pragma warning restore IDE1006
221+
#pragma warning restore IDE1006 // restore naming rule violation check
222222
{
223223
if (serializer == null)
224224
{

com.unity.multiplayer.mlapi/Runtime/Core/NetworkManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace MLAPI
3131
[AddComponentMenu("MLAPI/NetworkManager", -100)]
3232
public class NetworkManager : MonoBehaviour, INetworkUpdateSystem, IProfilableTransportProvider
3333
{
34-
#pragma warning disable IDE1006
34+
#pragma warning disable IDE1006 // disable naming rule violation check
3535
[Browsable(false)]
3636
[EditorBrowsable(EditorBrowsableState.Never)]
3737
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
@@ -42,7 +42,7 @@ public class NetworkManager : MonoBehaviour, INetworkUpdateSystem, IProfilableTr
4242
[Obsolete("Please do not use, will no longer be exposed in the future versions (framework internal)")]
4343
public static readonly Dictionary<uint, Action<NetworkBehaviour, NetworkSerializer, __RpcParams>> __ntable = new Dictionary<uint, Action<NetworkBehaviour, NetworkSerializer, __RpcParams>>();
4444
#endif
45-
#pragma warning restore IDE1006
45+
#pragma warning restore IDE1006 // restore naming rule violation check
4646

4747
#if DEVELOPMENT_BUILD || UNITY_EDITOR
4848
private static ProfilerMarker s_EventTick = new ProfilerMarker($"{nameof(NetworkManager)}.EventTick");

com.unity.multiplayer.mlapi/Runtime/Messaging/RpcParams.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ public struct ClientRpcParams
3838
public ClientRpcReceiveParams Receive;
3939
}
4040

41-
#pragma warning disable IDE1006
41+
#pragma warning disable IDE1006 // disable naming rule violation check
4242
#if UNITY_2020_2_OR_NEWER
4343
// RuntimeAccessModifiersILPP will make this `public`
4444
internal struct __RpcParams
4545
#else
4646
[Obsolete("Please do not use, will no longer be exposed in the future versions (framework internal)")]
4747
public struct __RpcParams
4848
#endif
49-
#pragma warning restore IDE1006
49+
#pragma warning restore IDE1006 // restore naming rule violation check
5050
{
5151
public ServerRpcParams Server;
5252
public ClientRpcParams Client;

com.unity.multiplayer.mlapi/Runtime/Transports/NetworkTransport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public TransportChannel[] MLAPI_CHANNELS
8585
/// <summary>
8686
/// The channels the MLAPI will use when sending internal messages.
8787
/// </summary>
88-
#pragma warning disable IDE1006
88+
#pragma warning disable IDE1006 // disable naming rule violation check
8989
private readonly TransportChannel[] MLAPI_INTERNAL_CHANNELS =
90-
#pragma warning restore IDE1006
90+
#pragma warning restore IDE1006 // restore naming rule violation check
9191
{
9292
new TransportChannel(NetworkChannel.Internal, NetworkDelivery.ReliableFragmentedSequenced),
9393
new TransportChannel(NetworkChannel.ReliableRpc, NetworkDelivery.ReliableSequenced),

0 commit comments

Comments
 (0)