Enable SA1413 except in Cores and satellite .NET projects

"Use trailing comma in multi-line initializers"
This commit is contained in:
YoshiRulz 2025-03-29 05:53:59 +10:00
parent ba12785fe2
commit 8cfb0599e5
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
5 changed files with 5 additions and 5 deletions

View File

@ -604,7 +604,7 @@ dotnet_diagnostic.SA1407.severity = silent
# Conditional expressions should declare precedence
dotnet_diagnostic.SA1408.severity = silent
# Use trailing comma in multi-line initializers
dotnet_diagnostic.SA1413.severity = silent
dotnet_diagnostic.SA1413.severity = warning
## StyleCop layout rules

View File

@ -6,7 +6,7 @@
<Import Project="$(ProjectDir)../../Common.props" />
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoWarn>$(NoWarn);MEN018</NoWarn>
<NoWarn>$(NoWarn);MEN018;SA1413</NoWarn>
<Nullable>disable</Nullable>
</PropertyGroup>
<ItemGroup>

View File

@ -22,7 +22,7 @@
</PropertyGroup>
<PropertyGroup>
<NoWarn>$(NoWarn);BHI1300;IDE0005;SA1514;SA1614;SA1616</NoWarn>
<NoWarn>$(NoWarn);BHI1300;IDE0005;SA1413;SA1514;SA1614;SA1616</NoWarn>
<Nullable>disable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

View File

@ -4,7 +4,7 @@
</PropertyGroup>
<Import Project="../LibCommon.props" />
<PropertyGroup>
<NoWarn>$(NoWarn);MA0060;SA1514</NoWarn> <!-- MA0060 is for implicitly discarded Stream.Read return value and should really be fixed; SA1514 is a harmless lint rule -->
<NoWarn>$(NoWarn);MA0060;SA1413;SA1514</NoWarn> <!-- MA0060 is for implicitly discarded Stream.Read return value and should really be fixed; SA1413 and SA1514 are harmless lint rules -->
<Nullable>disable</Nullable>
</PropertyGroup>
</Project>

View File

@ -5,7 +5,7 @@
<Import Project="../MainSlnCommon.props" />
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>$(NoWarn);BHI1104;CA1806;CA1825;CA2214;MA0060;MA0084;MA0090;MA0140;MEN018;RCS1215;RS0030;SA1100;SA1120;SA1129;SA1137;SA1205;SA1208;SA1400;SA1514;SA1517</NoWarn>
<NoWarn>$(NoWarn);BHI1104;CA1806;CA1825;CA2214;MA0060;MA0084;MA0090;MA0140;MEN018;RCS1215;RS0030;SA1100;SA1120;SA1129;SA1137;SA1205;SA1208;SA1400;SA1413;SA1514;SA1517</NoWarn>
<Nullable>disable</Nullable>
</PropertyGroup>
<ItemGroup>