mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-09 16:55:41 +00:00
Bump the dependencies group with 11 updates (#1808)
* Bump the dependencies group with 11 updates Bumps coverlet.collector from 6.0.4 to 10.0.1 Bumps coverlet.msbuild from 6.0.4 to 10.0.1 Bumps GitHubActionsTestLogger from 3.0.1 to 3.0.4 Bumps Meziantou.Analyzer from 3.0.18 to 3.0.114 Bumps Microsoft.Bcl.Cryptography from 10.0.3 to 10.0.9 Bumps Microsoft.Extensions.Logging.Console from 10.0.3 to 10.0.9 Bumps MSTest from 4.1.0 to 4.2.3 Bumps PolySharp from 1.15.0 to 1.16.0 Bumps SonarAnalyzer.CSharp from 10.20.0.135146 to 10.27.0.140913 Bumps System.Formats.Asn1 from 10.0.3 to 10.0.9 Bumps Testcontainers from 4.10.0 to 4.12.0 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Robert Hague <rh@johnstreetcapital.com>
This commit is contained in:
@@ -620,12 +620,21 @@ dotnet_diagnostic.MA0112.severity = warning
|
||||
# MA0165: Make interpolated string
|
||||
dotnet_diagnostic.MA0165.severity = none
|
||||
|
||||
# MA0173 - Use LazyInitializer.EnsureInitialize
|
||||
dotnet_diagnostic.MA0173.severity = none
|
||||
|
||||
# MA0182: Avoid unused internal types
|
||||
dotnet_diagnostic.MA0182.severity = none
|
||||
|
||||
# MA0184: Do not use interpolated string without parameters
|
||||
dotnet_diagnostic.MA0184.severity = none
|
||||
|
||||
# MA0190 - Use partial property instead of partial method for GeneratedRegex
|
||||
dotnet_diagnostic.MA0190.severity = none
|
||||
|
||||
# MA0192 - Use HasFlag instead of bitwise checks
|
||||
dotnet_diagnostic.MA0192.severity = none
|
||||
|
||||
#### MSTest rules ####
|
||||
|
||||
# MSTEST0015: Test method should not be ignored
|
||||
|
||||
+12
-12
@@ -6,22 +6,22 @@
|
||||
<ItemGroup>
|
||||
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
|
||||
<PackageVersion Include="BouncyCastle.Cryptography" Version="2.6.2" />
|
||||
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
|
||||
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
|
||||
<PackageVersion Include="GitHubActionsTestLogger" Version="3.0.1" />
|
||||
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.18" />
|
||||
<PackageVersion Include="coverlet.collector" Version="10.0.1" />
|
||||
<PackageVersion Include="coverlet.msbuild" Version="10.0.1" />
|
||||
<PackageVersion Include="GitHubActionsTestLogger" Version="3.0.4" />
|
||||
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.114" />
|
||||
<!-- Should stay on LTS .NET releases. -->
|
||||
<PackageVersion Include="Microsoft.Bcl.Cryptography" Version="10.0.3" />
|
||||
<PackageVersion Include="Microsoft.Bcl.Cryptography" Version="10.0.9" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.3" />
|
||||
<PackageVersion Include="MSTest" Version="4.1.0" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.9" />
|
||||
<PackageVersion Include="MSTest" Version="4.2.3" />
|
||||
<PackageVersion Include="Moq" Version="4.20.72" />
|
||||
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.9.50" />
|
||||
<PackageVersion Include="PolySharp" Version="1.15.0" />
|
||||
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.20.0.135146" />
|
||||
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.10.85" />
|
||||
<PackageVersion Include="PolySharp" Version="1.16.0" />
|
||||
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.27.0.140913" />
|
||||
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
|
||||
<!-- Should stay on LTS .NET releases. -->
|
||||
<PackageVersion Include="System.Formats.Asn1" Version="10.0.3" />
|
||||
<PackageVersion Include="Testcontainers" Version="4.10.0" />
|
||||
<PackageVersion Include="System.Formats.Asn1" Version="10.0.9" />
|
||||
<PackageVersion Include="Testcontainers" Version="4.12.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@@ -8,6 +8,8 @@ using System.Threading.Tasks;
|
||||
using Renci.SshNet.Common;
|
||||
using Renci.SshNet.Messages.Transport;
|
||||
|
||||
#pragma warning disable MA0204 // Remove unnecessary partial modifier; not true for all targets
|
||||
|
||||
namespace Renci.SshNet.Abstractions
|
||||
{
|
||||
internal static partial class SocketAbstraction
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace Renci.SshNet.Connection
|
||||
/// </item>
|
||||
/// </list>
|
||||
/// </remarks>
|
||||
#pragma warning disable MA0204 // Remove unnecessary partial modifier; not true for all targets
|
||||
internal sealed partial class HttpConnector : ProxyConnector
|
||||
{
|
||||
private const string HttpResponsePattern = @"HTTP/(?<version>\d[.]\d) (?<statusCode>\d{3}) (?<reasonPhrase>.+)$";
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace Renci.SshNet.Connection
|
||||
/// <remarks>
|
||||
/// https://tools.ietf.org/html/rfc4253#section-4.2.
|
||||
/// </remarks>
|
||||
#pragma warning disable MA0204 // Remove unnecessary partial modifier; not true for all targets
|
||||
internal sealed partial class ProtocolVersionExchange : IProtocolVersionExchange
|
||||
{
|
||||
private const byte Null = 0x00;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Renci.SshNet
|
||||
/// <summary>
|
||||
/// Provides functionality for local port forwarding.
|
||||
/// </summary>
|
||||
public partial class ForwardedPortLocal : ForwardedPort
|
||||
public class ForwardedPortLocal : ForwardedPort
|
||||
{
|
||||
private ForwardedPortStatus _status;
|
||||
private bool _isDisposed;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Renci.SshNet
|
||||
/// <summary>
|
||||
/// Factory for creating new services.
|
||||
/// </summary>
|
||||
internal partial interface IServiceFactory
|
||||
internal interface IServiceFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates an <see cref="IClientAuthentication"/>.
|
||||
|
||||
@@ -7,6 +7,8 @@ using System.Xml;
|
||||
|
||||
using Renci.SshNet.Common;
|
||||
|
||||
#pragma warning disable MA0204 // Remove unnecessary partial modifier; not true for all targets
|
||||
|
||||
namespace Renci.SshNet.NetConf
|
||||
{
|
||||
internal sealed partial class NetConfSession : SubsystemSession, INetConfSession
|
||||
@@ -129,7 +131,7 @@ namespace Renci.SshNet.NetConf
|
||||
{
|
||||
_ = _data.Append(chunk);
|
||||
|
||||
if (!chunk.Contains(Prompt))
|
||||
if (!chunk.Contains(Prompt, StringComparison.Ordinal))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -194,7 +196,7 @@ namespace Renci.SshNet.NetConf
|
||||
{
|
||||
_ = _data.Append(chunk);
|
||||
|
||||
if (!chunk.Contains(Prompt))
|
||||
if (!chunk.Contains(Prompt, StringComparison.Ordinal))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Renci.SshNet
|
||||
throw new SshException("Invalid passphrase.");
|
||||
}
|
||||
|
||||
if (keyType.Contains("rsa"))
|
||||
if (keyType.Contains("rsa", StringComparison.Ordinal))
|
||||
{
|
||||
var exponent = ReadBigIntWithBits(keyReader);
|
||||
var d = ReadBigIntWithBits(keyReader);
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace Renci.SshNet
|
||||
/// </list>
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
#pragma warning disable MA0204 // Remove unnecessary partial modifier; not true for all targets
|
||||
public partial class ScpClient : BaseClient
|
||||
{
|
||||
private const string FileInfoPattern = @"C(?<mode>\d{4}) (?<length>\d+) (?<filename>.+)";
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Renci.SshNet
|
||||
/// <summary>
|
||||
/// Basic factory for creating new services.
|
||||
/// </summary>
|
||||
internal sealed partial class ServiceFactory : IServiceFactory
|
||||
internal sealed class ServiceFactory : IServiceFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the number of times an authentication attempt with any given <see cref="IAuthenticationMethod"/>
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Renci.SshNet.IntegrationTests.OldIntegrationTests
|
||||
/// Provides SCP client functionality.
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public partial class ScpClientTest : IntegrationTestBase
|
||||
public class ScpClientTest : IntegrationTestBase
|
||||
{
|
||||
[TestMethod]
|
||||
[TestCategory("Scp")]
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Renci.SshNet.Tests.Classes
|
||||
/// Provides functionality for local port forwarding
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public partial class ForwardedPortLocalTest : TestBase
|
||||
public class ForwardedPortLocalTest : TestBase
|
||||
{
|
||||
[TestMethod]
|
||||
public void ConstructorShouldThrowArgumentNullExceptionWhenBoundHostIsNull()
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Renci.SshNet.Tests.Classes
|
||||
/// Provides functionality for remote port forwarding
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public partial class ForwardedPortRemoteTest : TestBase
|
||||
public class ForwardedPortRemoteTest : TestBase
|
||||
{
|
||||
[TestMethod]
|
||||
public void Start_NotAddedToClient()
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Renci.SshNet.Tests.Classes
|
||||
/// Provides functionality to perform keyboard interactive authentication.
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public partial class KeyboardInteractiveAuthenticationMethodTest : TestBase
|
||||
public class KeyboardInteractiveAuthenticationMethodTest : TestBase
|
||||
{
|
||||
[TestMethod]
|
||||
public void Keyboard_Test_Pass_Null()
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Renci.SshNet.Tests.Classes
|
||||
/// Provides functionality to perform password authentication.
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public partial class PasswordAuthenticationMethodTest : TestBase
|
||||
public class PasswordAuthenticationMethodTest : TestBase
|
||||
{
|
||||
[TestMethod]
|
||||
public void Password_Test_Pass_Null_Username()
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Renci.SshNet.Tests.Classes
|
||||
/// Provides SCP client functionality.
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public partial class ScpClientTest : TestBase
|
||||
public class ScpClientTest : TestBase
|
||||
{
|
||||
private Random _random;
|
||||
|
||||
|
||||
@@ -287,7 +287,7 @@ namespace Renci.SshNet.Tests.Classes.Security
|
||||
"PD7/nXcyxnY3zALlPQTxb19EVx5lz58BS96gg=";
|
||||
|
||||
char[] chars = goodCertString.ToCharArray();
|
||||
chars[^10] = 'a';
|
||||
chars[chars.Length - 10] = 'a';
|
||||
string badCertString = new string(chars);
|
||||
|
||||
Assert.IsTrue(VerifySignature(goodCertString));
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Renci.SshNet.Tests.Classes
|
||||
/// Provides functionality to connect and interact with SSH server.
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public partial class SessionTest : TestBase
|
||||
public class SessionTest : TestBase
|
||||
{
|
||||
private Mock<IServiceFactory> _serviceFactoryMock;
|
||||
private Mock<ISocketFactory> _socketFactoryMock;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Renci.SshNet.Tests.Classes
|
||||
/// Represents SSH command that can be executed.
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public partial class SshCommandTest : TestBase
|
||||
public class SshCommandTest : TestBase
|
||||
{
|
||||
[TestMethod]
|
||||
public void Test_Execute_SingleCommand_Without_Connecting()
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Renci.SshNet.Tests.Classes
|
||||
{
|
||||
class SubsystemSession_Connect_NeverConnected
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Renci.SshNet.Tests.Classes
|
||||
{
|
||||
class SubsystemSession_SendData_Disconnected
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user