It it possible to opt-out of the check for recommended references by using the CakeContribGuidelinesOmitRecommendedReference
setting
and setting it's Include
to the reference that should not be checked.
(Keep in mind, though, that it is not recommended to opt-out of this feature)
<ItemGroup>
<CakeContribGuidelinesOmitRecommendedReference Include="StyleCop.Analyzers" />
</ItemGroup>