Restructure test projects for faster CI #5397
Annotations
11 warnings and 1 notice
|
Analyze (csharp):
Libraries/Opc.Ua.Server/FileSystem/FileSystemNodeId.cs#L233
'string.IndexOf(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'Opc.Ua.Server.FileSystem.FileSystemNodeId.ConstructIdForComponent(Opc.Ua.NodeState, ushort)' with a call to 'string.IndexOf(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
|
Analyze (csharp):
Libraries/Opc.Ua.Client/Roles/RoleManagementClient.cs#L496
Change return type of method 'ReadStructureArray' from 'System.Collections.Generic.IReadOnlyList<T>' to 'System.Collections.Generic.List<T>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
|
|
Analyze (csharp):
Libraries/Opc.Ua.Client/Roles/RoleManagementClient.cs#L530
Change return type of method 'ReadStringArray' from 'System.Collections.Generic.IReadOnlyList<string>' to 'System.Collections.Generic.List<string>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
|
|
Analyze (csharp):
Libraries/Opc.Ua.Client/AliasNames/PubSub/AliasNamePubSubRefreshStrategy.cs#L164
'string.IndexOf(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'Opc.Ua.Client.AliasNames.PubSub.AliasNamePubSubRefreshStrategy.StripNamespacePrefix(string?)' with a call to 'string.IndexOf(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
|
Analyze (csharp):
Libraries/Opc.Ua.Client/AliasNames/AliasNameResolverOptions.cs#L69
The enum member 'AutoOnLastChangePolling' has the same constant value '1' as member 'AutoOnLastChange' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1069)
|
|
Analyze (csharp):
Libraries/Opc.Ua.Server/RoleBasedUserManagement/RoleManager.cs#L563
Do not use Enumerable methods on indexable collections. Instead use the collection directly. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1826)
|
|
Analyze (csharp):
Libraries/Opc.Ua.Server/RoleBasedUserManagement/IdentityRuleValidator.cs#L316
'string.Replace(string, string)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'Opc.Ua.Server.IdentityRuleValidator.NormaliseThumbprint(string?)' with a call to 'string.Replace(string, string, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
|
Analyze (csharp):
Libraries/Opc.Ua.Server/FileSystem/FileSystemNodeId.cs#L233
'string.IndexOf(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'Opc.Ua.Server.FileSystem.FileSystemNodeId.ConstructIdForComponent(Opc.Ua.NodeState, ushort)' with a call to 'string.IndexOf(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
|
Analyze (csharp):
Libraries/Opc.Ua.Lds.Server/LdsServer.cs#L55
'LdsServer' contains field 'm_lock' that is of IDisposable type 'SemaphoreSlim', but it is never disposed. Change the Dispose method on 'LdsServer' to call Close or Dispose on this field. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2213)
|
|
Analyze (csharp):
Libraries/Opc.Ua.Lds.Server/MulticastDiscovery.cs#L263
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
|
Analyze (csharp)
Cannot build an overlay database because build-mode is set to "undefined" instead of "none". Falling back to creating a normal full database instead.
|
|
Analyze (csharp)
NOTICE: windows-2025 requests are being redirected to windows-2025-vs2026 by June 15, 2026
|