Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,11 @@ dotnet_diagnostic.IDE0300.severity = none
# TODO: Discuss whether we want to start using this
dotnet_diagnostic.IDE0301.severity = none

# IDE0370: Remove unnecessary suppression
#
# This can lead to many false positives in different target frameworks.
dotnet_diagnostic.IDE0370.severity = suggestion

#### .NET Compiler Platform code style rules ####

### Language rules ###
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "10.0.100",
"rollForward": "latestFeature"
"rollForward": "latestMinor"
}
}
5 changes: 1 addition & 4 deletions src/Renci.SshNet/ForwardedPort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ protected virtual void StopPort(TimeSpan timeout)
RaiseClosing();

var session = Session;
if (session is not null)
{
session.ErrorOccured -= Session_ErrorOccurred;
}
session?.ErrorOccured -= Session_ErrorOccurred;
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/OrderedDictionary.netstandard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public bool Remove(TKey key, [MaybeNullWhen(false)] out TValue value)
}

AssertConsistency();
value = default!;
value = default;
return false;
}

Expand Down
6 changes: 4 additions & 2 deletions test/Renci.SshNet.Tests/Classes/AbstractionsTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using Renci.SshNet.Abstractions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using Renci.SshNet.Abstractions;

using System;
using System.Threading;
using System.Security.Cryptography;
Expand Down
Loading