Proj0508: Order third-party licenses alphabetically
<ThirdPartyLicense>
nodes should be ordered alphabetically
within a single <ItemGroup>
in order to make it more
human readable. When ordering the third-party licenses based on
other criteria, consider grouping them in separate
<ItemGroup>
s.
The rule assumes data sorted based on the @Include
attribute applying
StringComparison.OrdinalIgnoreCase
.
Non-compliant
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ThirdPartyLicense Include="SonarAnalyzer.CSharp" Hash="ZOAgZmx18wSWq5KpOpWd2bB9123" />
<ThirdPartyLicense Include="SixLabors.ImageSharp" Hash="C3au3cYr2n3QFmhQ3SSmTQ" />
</ItemGroup>
</Project>
Compliant
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ThirdPartyLicense Include="SixLabors.ImageSharp" Hash="C3au3cYr2n3QFmhQ3SSmTQ" />
<ThirdPartyLicense Include="SonarAnalyzer.CSharp" Hash="ZOAgZmx18wSWq5KpOpWd2bB9123" />
</ItemGroup>
</Project>