Skip to content

Commit

Permalink
chore: CA1816 Call GC.SuppressFinalize correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee committed Sep 8, 2023
1 parent 32a90da commit c5ddfa8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -770,10 +770,6 @@ dotnet_diagnostic.CA1813.severity = suggestion
# CA1815: Override equals and operator equals on value types
dotnet_diagnostic.CA1815.severity = suggestion

# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1816
# CA1816: Call GC.SuppressFinalize correctly
dotnet_diagnostic.CA1816.severity = suggestion

# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1819
# CA1819: Properties should not return arrays
dotnet_diagnostic.CA1819.severity = suggestion
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Sbom.Api/Output/Telemetry/TimingRecorder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.Sbom.Api.Output.Telemetry;
/// <summary>
/// Records the elapsed time for a given event.
/// </summary>
public class TimingRecorder : IDisposable
public sealed class TimingRecorder : IDisposable
{
private readonly string eventName;
private readonly Stopwatch stopWatch;
Expand Down

0 comments on commit c5ddfa8

Please sign in to comment.