Skip to content

fix MSTEST0001

fix MSTEST0001 #187

Triggered via push October 25, 2025 08:38
Status Failure
Total duration 7m 34s
Artifacts

build.yml

on: push
Linux
1m 2s
Linux
Windows
3m 55s
Windows
Windows Integration Tests .NET Framework
7m 30s
Windows Integration Tests .NET Framework
Windows Integration Tests .NET
5m 28s
Windows Integration Tests .NET
Publish
0s
Publish
Fit to window
Zoom out
Zoom in

Annotations

39 errors
Linux
Process completed with exit code 1.
Linux: test/Renci.SshNet.Tests/Classes/OrderedDictionaryTest.cs#L291
Cast is redundant. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0004)
Linux: test/Renci.SshNet.Tests/Classes/OrderedDictionaryTest.cs#L189
Cast is redundant. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0004)
Linux: test/Renci.SshNet.Tests/Classes/OrderedDictionaryTest.cs#L188
Cast is redundant. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0004)
Linux: test/Renci.SshNet.Tests/Classes/OrderedDictionaryTest.cs#L31
Cast is redundant. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0004)
Linux: test/Renci.SshNet.Tests/Classes/OrderedDictionaryTest.cs#L291
Cast is redundant. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0004)
Linux: test/Renci.SshNet.Tests/Classes/OrderedDictionaryTest.cs#L189
Cast is redundant. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0004)
Linux: test/Renci.SshNet.Tests/Classes/OrderedDictionaryTest.cs#L188
Cast is redundant. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0004)
Linux: test/Renci.SshNet.Tests/Classes/OrderedDictionaryTest.cs#L31
Cast is redundant. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0004)
Windows: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/SftpClientTest.RenameFileAsync.cs#L16
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/SftpClientTest.RenameFile.cs#L16
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/SftpClientTest.Download.cs#L118
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/SftpFileTest.cs#L168
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows: test/Renci.SshNet.IntegrationTests/SshTests.cs#L79
Correct one of the identical expressions on both sides of operator '||'. (https://rules.sonarsource.com/csharp/RSPEC-1764)
Windows: test/Renci.SshNet.IntegrationTests/TestBase.cs#L56
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows: test/Renci.SshNet.Tests/Common/AsyncSocketListener.cs#L388
Private classes which are not derived in the current assembly should be marked as 'sealed'. (https://rules.sonarsource.com/csharp/RSPEC-3260)
Windows: test/Renci.SshNet.IntegrationTests/TestsFixtures/IntegrationTestBase.cs#L11
Remove the field '_logger' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)
Windows: test/Renci.SshNet.IntegrationTests/SshTests_TTYDisabled.cs#L10
Remove the field '_adminConnectionInfoFactory' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)
Windows: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/SftpClientTest.cs#L47
Private classes which are not derived in the current assembly should be marked as 'sealed'. (https://rules.sonarsource.com/csharp/RSPEC-3260)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L94
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L56
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L55
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L24
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L23
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/SshTests.cs#L79
Correct one of the identical expressions on both sides of operator '||'. (https://rules.sonarsource.com/csharp/RSPEC-1764)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/TestBase.cs#L56
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/TestsFixtures/IntegrationTestBase.cs#L11
Remove the field '_logger' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/SshTests_TTYDisabled.cs#L10
Remove the field '_adminConnectionInfoFactory' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)
Windows Integration Tests .NET: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/SftpClientTest.cs#L47
Private classes which are not derived in the current assembly should be marked as 'sealed'. (https://rules.sonarsource.com/csharp/RSPEC-3260)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L55
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L95
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L94
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L24
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/ScpClientTest.cs#L23
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/SshTests.cs#L79
Correct one of the identical expressions on both sides of operator '||'. (https://rules.sonarsource.com/csharp/RSPEC-1764)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/TestBase.cs#L56
'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/SshTests_TTYDisabled.cs#L10
Remove the field '_adminConnectionInfoFactory' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/TestsFixtures/IntegrationTestBase.cs#L11
Remove the field '_logger' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)
Windows Integration Tests .NET Framework: test/Renci.SshNet.IntegrationTests/OldIntegrationTests/SftpClientTest.cs#L47
Private classes which are not derived in the current assembly should be marked as 'sealed'. (https://rules.sonarsource.com/csharp/RSPEC-3260)