Skip to content

Fix issues found by PVS-Studio static analyzer #7 #188

Fix issues found by PVS-Studio static analyzer #7

Fix issues found by PVS-Studio static analyzer #7 #188

Triggered via pull request November 27, 2023 13:08
Status Failure
Total duration 1m 0s
Artifacts

dotnet.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 20 warnings
build (ubuntu-latest, 8.0.x): Rtp/RtpClient.cs#L2304
'Socket' does not contain a definition for 'IsNullOrDisposed' and the best extension method overload 'IDisposedExtensions.IsNullOrDisposed(IDisposed)' requires a receiver of type 'Media.Common.IDisposed'
build (ubuntu-latest, 8.0.x): Rtp/RtpClient.cs#L2308
'Socket' does not contain a definition for 'IsNullOrDisposed' and the best extension method overload 'IDisposedExtensions.IsNullOrDisposed(IDisposed)' requires a receiver of type 'Media.Common.IDisposed'
build (ubuntu-latest, 8.0.x): Rtp/RtpClient.cs#L2304
'Socket' does not contain a definition for 'IsNullOrDisposed' and the best extension method overload 'IDisposedExtensions.IsNullOrDisposed(IDisposed)' requires a receiver of type 'Media.Common.IDisposed'
build (ubuntu-latest, 8.0.x): Rtp/RtpClient.cs#L2308
'Socket' does not contain a definition for 'IsNullOrDisposed' and the best extension method overload 'IDisposedExtensions.IsNullOrDisposed(IDisposed)' requires a receiver of type 'Media.Common.IDisposed'
build (ubuntu-latest, 8.0.x)
Process completed with exit code 1.
build (windows-latest, 8.0.x)
The job was canceled because "ubuntu-latest_8_0_x" failed.
build (windows-latest, 8.0.x)
The operation was canceled.
build (macos-latest, 8.0.x)
The job was canceled because "ubuntu-latest_8_0_x" failed.
build (macos-latest, 8.0.x): Rtp/RtpClient.cs#L2304
'Socket' does not contain a definition for 'IsNullOrDisposed' and the best extension method overload 'IDisposedExtensions.IsNullOrDisposed(IDisposed)' requires a receiver of type 'Media.Common.IDisposed'
build (macos-latest, 8.0.x): Rtp/RtpClient.cs#L2308
'Socket' does not contain a definition for 'IsNullOrDisposed' and the best extension method overload 'IDisposedExtensions.IsNullOrDisposed(IDisposed)' requires a receiver of type 'Media.Common.IDisposed'
build (macos-latest, 8.0.x): Rtp/RtpClient.cs#L2304
'Socket' does not contain a definition for 'IsNullOrDisposed' and the best extension method overload 'IDisposedExtensions.IsNullOrDisposed(IDisposed)' requires a receiver of type 'Media.Common.IDisposed'
build (macos-latest, 8.0.x): Rtp/RtpClient.cs#L2308
'Socket' does not contain a definition for 'IsNullOrDisposed' and the best extension method overload 'IDisposedExtensions.IsNullOrDisposed(IDisposed)' requires a receiver of type 'Media.Common.IDisposed'
build (macos-latest, 8.0.x)
The operation was canceled.
build (ubuntu-latest, 8.0.x): Common/Extensions/StreamExtensions.cs#L278
'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
build (ubuntu-latest, 8.0.x): Common/Extensions/StreamExtensions.cs#L235
'WebRequest.Create(Uri)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
build (ubuntu-latest, 8.0.x): Common/Classes/Machine.cs#L328
'AssemblyName.ProcessorArchitecture' is obsolete: 'AssemblyName members HashAlgorithm, ProcessorArchitecture, and VersionCompatibility are obsolete and not supported.' (https://aka.ms/dotnet-warnings/SYSLIB0037)
build (ubuntu-latest, 8.0.x): Common/Classes/Transport/TransportClient.cs#L131
The event 'TransportClient.OnDisconnect' is never used
build (ubuntu-latest, 8.0.x): Common/Classes/Transport/TransportClient.cs#L129
The event 'TransportClient.OnConnect' is never used
build (ubuntu-latest, 8.0.x): Common/Collections/Generic/PrecicseList.cs#L176
Field 'PrecisionIndexableList.LowerBound' is never assigned to, and will always have its default value 0
build (ubuntu-latest, 8.0.x): Common/Interfaces/Inputs.cs#L154
Field 'Keyword.Structure' is never assigned to, and will always have its default value null
build (ubuntu-latest, 8.0.x): Common/Collections/Generic/PrecicseList.cs#L46
Field 'PrecicseList.m_IsShared' is never assigned to, and will always have its default value false
build (ubuntu-latest, 8.0.x): Common/Collections/Generic/PrecicseList.cs#L176
Field 'PrecisionIndexableList.UpperBound' is never assigned to, and will always have its default value 0
build (ubuntu-latest, 8.0.x): Common/Extensions/ProcessExtensions.cs#L57
This call site is reachable on all platforms. 'Process.ProcessorAffinity' is only supported on: 'linux', 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
build (macos-latest, 8.0.x): Common/Classes/Machine.cs#L328
'AssemblyName.ProcessorArchitecture' is obsolete: 'AssemblyName members HashAlgorithm, ProcessorArchitecture, and VersionCompatibility are obsolete and not supported.' (https://aka.ms/dotnet-warnings/SYSLIB0037)
build (macos-latest, 8.0.x): Common/Extensions/StreamExtensions.cs#L278
'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
build (macos-latest, 8.0.x): Common/Extensions/StreamExtensions.cs#L235
'WebRequest.Create(Uri)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
build (macos-latest, 8.0.x): Common/Interfaces/Inputs.cs#L154
Field 'Keyword.Structure' is never assigned to, and will always have its default value null
build (macos-latest, 8.0.x): Common/Collections/Generic/PrecicseList.cs#L46
Field 'PrecicseList.m_IsShared' is never assigned to, and will always have its default value false
build (macos-latest, 8.0.x): Common/Collections/Generic/PrecicseList.cs#L176
Field 'PrecisionIndexableList.UpperBound' is never assigned to, and will always have its default value 0
build (macos-latest, 8.0.x): Common/Classes/Transport/TransportClient.cs#L131
The event 'TransportClient.OnDisconnect' is never used
build (macos-latest, 8.0.x): Common/Classes/Transport/TransportClient.cs#L129
The event 'TransportClient.OnConnect' is never used
build (macos-latest, 8.0.x): Common/Collections/Generic/PrecicseList.cs#L176
Field 'PrecisionIndexableList.LowerBound' is never assigned to, and will always have its default value 0
build (macos-latest, 8.0.x): Common/Extensions/SocketExtensions.cs#L936
This call site is reachable on all platforms. 'IOControlCode.KeepAliveValues' is supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)