From 3d84a51970afd8ac2d8aa8c618487bff96619e52 Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Thu, 4 Jul 2024 19:35:08 +0200 Subject: [PATCH] Suppress warning about SA1500: Braces for multi-line statements --- src/ImageSharp/Formats/Heif/Av1/Av1LookupTables.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Heif/Av1/Av1LookupTables.cs b/src/ImageSharp/Formats/Heif/Av1/Av1LookupTables.cs index a7e9ab7998..2b9c911041 100644 --- a/src/ImageSharp/Formats/Heif/Av1/Av1LookupTables.cs +++ b/src/ImageSharp/Formats/Heif/Av1/Av1LookupTables.cs @@ -6,7 +6,8 @@ namespace SixLabors.ImageSharp.Formats.Heif.Av1; internal static class Av1LookupTables { // The Subsampled_Size table in the spec (Section 5.11.38. Get plane residual size function). - public static Av1BlockSize[,,] SubSampledSize = + [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1500:Braces for multi-line statements should not share line", Justification = "alignment should match the spec file definition")] + public static readonly Av1BlockSize[,,] SubSampledSize = { { { Av1BlockSize.Block4x4, Av1BlockSize.Block4x4 }, { Av1BlockSize.Block4x4, Av1BlockSize.Block4x4 } }, { { Av1BlockSize.Block4x8, Av1BlockSize.Block4x4 }, { Av1BlockSize.Invalid, Av1BlockSize.Block4x4 } },