Browse Source

[SL.Core] Update supressions

pull/1087/head
Jason Nelson 7 years ago
parent
commit
78ca048ff6
  1. 7
      src/SixLabors.Core/HashCode.cs
  2. 2
      src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.CommonFactoryMethods.cs

7
src/SixLabors.Core/HashCode.cs

@ -1,4 +1,4 @@
#pragma warning disable SA1636, SA1600, SA1503, SA1202, SA1101, SA1132, SA1309, SA1520, SA1108, SA1203, SA1028, SA1512
#pragma warning disable SA1636, SA1600, SA1503, SA1202, SA1101, SA1132, SA1309, SA1520, SA1108, SA1203, SA1028, SA1512, SA1308
// SOURCE: https://github.com/dotnet/corefx/blob/master/src/Common/src/CoreLib/System/HashCode.cs
@ -57,7 +57,9 @@ namespace System
// https://github.com/Cyan4973/xxHash
internal struct HashCode
{
#pragma warning disable SA1311 // Static readonly fields should begin with upper-case letter
private static readonly uint s_seed = GenerateGlobalSeed();
#pragma warning restore SA1311 // Static readonly fields should begin with upper-case letter
private const uint Prime1 = 2654435761U;
private const uint Prime2 = 2246822519U;
@ -415,6 +417,7 @@ namespace System
}
#pragma warning disable 0809
// Obsolete member 'memberA' overrides non-obsolete member 'memberB'.
// Disallowing GetHashCode and Equals is by design
@ -440,4 +443,4 @@ namespace System
}
#endif
#pragma warning restore SA1636, SA1600, SA1503, SA1202, SA1101, SA1132, SA1309, SA1520, SA1108, SA1203, SA1028, SA1512
#pragma warning restore SA1636, SA1600, SA1503, SA1202, SA1101, SA1132, SA1309, SA1520, SA1108, SA1203, SA1028, SA1512, SA1308

2
src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.CommonFactoryMethods.cs

@ -42,7 +42,6 @@ namespace SixLabors.Memory
DefaultNormalPoolBucketCount);
}
/// <summary>
/// For environments with very limited memory capabilities, only small buffers like image rows are pooled.
/// </summary>
@ -61,7 +60,6 @@ namespace SixLabors.Memory
return new ArrayPoolMemoryAllocator(1024 * 1024, 32 * 1024, 16, 24);
}
/// <summary>
/// For environments where memory capabilities are not an issue, the maximum amount of array requests are pooled which results in optimal throughput.
/// </summary>

Loading…
Cancel
Save