SonarCloud in GitHub doesn't recognise C# 12 primary constructors and this triggers various false negatives in validation rules.
One example is below, here Sonar interprets a class with primary constructor as an empty class - which is not empty. There are other issues, but it seems like SonarCloud is either not up to date or some configuration might be required?


Looks like C# 12 is not supported yet. On their website it states that ATM (Nov-2023):