Enable .NET analyzers for all projects (#1414)

* Enable .NET analyzers for all projects
* fix all new warnings, mostly security and perf
This commit is contained in:
Martin Regen
2021-06-05 07:58:38 +02:00
committed by GitHub
parent 8406716bf9
commit 9923141e70
14 changed files with 30 additions and 20 deletions
@@ -276,7 +276,7 @@ namespace Opc.Ua.Client.ComplexTypes
var typeSystem = await m_session.LoadDataTypeSystem().ConfigureAwait(false);
// sort dictionaries with import dependencies to the end of the list
var sortedTypeSystem = typeSystem.OrderBy(t => t.Value.TypeDictionary?.Import?.Count()).ToList();
var sortedTypeSystem = typeSystem.OrderBy(t => t.Value.TypeDictionary?.Import?.Length).ToList();
bool allTypesLoaded = true;