Fix warnings #1212
Annotations
11 warnings
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build:
src/Services/NodeTelemetryStore.cs#L22
Possible null reference argument for parameter 'key' in 'NodeTelemetry ConcurrentDictionary<string, NodeTelemetry>.AddOrUpdate(string key, Func<string, NodeTelemetry> addValueFactory, Func<string, NodeTelemetry, NodeTelemetry> updateValueFactory)'.
|
build:
src/Services/NodeTelemetryStore.cs#L22
Possible null reference return.
|
build:
src/Services/NodeTelemetryStore.cs#L22
Possible null reference return.
|
build:
src/Services/NodeTelemetryStore.cs#L28
Possible null reference argument for parameter 'key' in 'bool ConcurrentDictionary<string, bool>.AddOrUpdate(string key, Func<string, bool> addValueFactory, Func<string, bool, bool> updateValueFactory)'.
|
build:
src/Services/NodeSettingsStore.cs#L32
Possible null reference argument for parameter 'id' in 'NodeSettings NodeSettingsStore.Get(string id)'.
|
build:
src/Services/MqttCoordinator.cs#L327
Possible null reference assignment.
|
build:
src/Services/MqttCoordinator.cs#L315
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
build:
src/Services/DeviceTracker.cs#L28
Possible null reference argument for parameter 'key' in 'Device ConcurrentDictionary<string, Device>.GetOrAdd(string key, Func<string, Device> valueFactory)'.
|
build:
src/Services/DeviceTracker.cs#L30
Dereference of a possibly null reference.
|
build:
src/Services/DeviceTracker.cs#L43
Possible null reference argument for parameter 'key' in 'Node ConcurrentDictionary<string, Node>.this[string key]'.
|