Skip to content

Commit

Permalink
Removed no longer necessary analyzer suppression pragmas.
Browse files Browse the repository at this point in the history
  • Loading branch information
colgreen committed Aug 6, 2024
1 parent b290d5b commit 42861e2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
22 changes: 10 additions & 12 deletions Redzen.Tests/IO/MemoryStreamFuzzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,22 @@

namespace Redzen.IO;

#pragma warning disable CA1861 // Avoid constant arrays as arguments

public class MemoryStreamFuzzer
{
readonly MemoryStream _strmA;
readonly MemoryBlockStream _strmB;
readonly IRandomSource _rng;
readonly DiscreteDistribution<double> _opDistribution = new(
[
0.688, // Write
0.05, // Write byte
0.05, // Change read/write head position.
0.05, // SetLength
0.05, // Seek
0.002, // Trim
0.01, // Read byte
0.1, // Read
]);
[
0.688, // Write
0.05, // Write byte
0.05, // Change read/write head position.
0.05, // SetLength
0.05, // Seek
0.002, // Trim
0.01, // Read byte
0.1, // Read
]);

#region Constructors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

namespace Redzen.Numerics.Distributions;

#pragma warning disable CA1861 // Avoid constant arrays as arguments

public class DiscreteDistributionTestsDouble
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

namespace Redzen.Numerics.Distributions;

#pragma warning disable CA1861 // Avoid constant arrays as arguments

public class DiscreteDistributionTestsSingle
{
[Fact]
Expand Down
2 changes: 0 additions & 2 deletions Redzen/Structures/KeyedCircularBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Redzen.Structures;

#pragma warning disable SA1414 // Tuple types in signatures should have element names

/// <summary>
/// A generic circular buffer of key-value pairs. The values are retrievable by their
/// key. Old key-value pairs are overwritten when the circular buffer runs out of
Expand Down

0 comments on commit 42861e2

Please sign in to comment.