diff --git a/.editorconfig b/.editorconfig index d9f4154a..f35e764d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -362,6 +362,32 @@ dotnet_diagnostic.IDE0061.severity = suggestion # local expression body dotnet_diagnostic.IDE0062.severity = suggestion # local to static dotnet_diagnostic.IDE0063.severity = error # simplify using +[build/**/*.cs] +dotnet_diagnostic.VSTHRD001.severity = none +dotnet_diagnostic.VSTHRD002.severity = none +dotnet_diagnostic.VSTHRD003.severity = none +dotnet_diagnostic.VSTHRD004.severity = none +dotnet_diagnostic.VSTHRD010.severity = none +dotnet_diagnostic.VSTHRD011.severity = none +dotnet_diagnostic.VSTHRD012.severity = none +dotnet_diagnostic.VSTHRD100.severity = none +dotnet_diagnostic.VSTHRD101.severity = none +dotnet_diagnostic.VSTHRD102.severity = none +dotnet_diagnostic.VSTHRD103.severity = none +dotnet_diagnostic.VSTHRD104.severity = none +dotnet_diagnostic.VSTHRD105.severity = none +dotnet_diagnostic.VSTHRD106.severity = none +dotnet_diagnostic.VSTHRD107.severity = none +dotnet_diagnostic.VSTHRD108.severity = none +dotnet_diagnostic.VSTHRD109.severity = none +dotnet_diagnostic.VSTHRD110.severity = none +dotnet_diagnostic.VSTHRD111.severity = none +dotnet_diagnostic.VSTHRD112.severity = none +dotnet_diagnostic.VSTHRD113.severity = none +dotnet_diagnostic.VSTHRD114.severity = none +dotnet_diagnostic.VSTHRD115.severity = none +dotnet_diagnostic.VSTHRD200.severity = none + [tests/**/*.cs] dotnet_diagnostic.CA1861.severity = suggestion dotnet_diagnostic.IDE0042.severity = suggestion diff --git a/src/SharpCompress/Common/Volume.Async.cs b/src/SharpCompress/Common/Volume.Async.cs index 7b37be71..3a07aece 100644 --- a/src/SharpCompress/Common/Volume.Async.cs +++ b/src/SharpCompress/Common/Volume.Async.cs @@ -9,7 +9,7 @@ public abstract partial class Volume { #if LEGACY_DOTNET _actualStream.Dispose(); - await Task.CompletedTask; + await Task.CompletedTask.ConfigureAwait(false); #else await _actualStream.DisposeAsync().ConfigureAwait(false); #endif diff --git a/src/SharpCompress/Compressors/Rar/UnpackV2017/Unpack.unpack50_async.cs b/src/SharpCompress/Compressors/Rar/UnpackV2017/Unpack.unpack50_async.cs index 59004430..03b61ed9 100644 --- a/src/SharpCompress/Compressors/Rar/UnpackV2017/Unpack.unpack50_async.cs +++ b/src/SharpCompress/Compressors/Rar/UnpackV2017/Unpack.unpack50_async.cs @@ -73,7 +73,7 @@ internal partial class Unpack if (((WriteBorder - UnpPtr) & MaxWinMask) < MAX_LZ_MATCH + 3 && WriteBorder != UnpPtr) { - await UnpWriteBufAsync(cancellationToken); + await UnpWriteBufAsync(cancellationToken).ConfigureAwait(false); if (WrittenFileSize > DestUnpSize) { return; @@ -215,7 +215,7 @@ internal partial class Unpack continue; } } - await UnpWriteBufAsync(cancellationToken); + await UnpWriteBufAsync(cancellationToken).ConfigureAwait(false); } private async Task ReadFilterAsync(