Hi,
I ran into an issue which I believe is a false-positive for the csharpsquid:S2302 rule in SonarCloud
To me, it seems that the engine gets confused by the fact that the literal element is used to refer to a variable (hence the suggestion to use nameof()) but also as a text message for the user (in the form of the exceptions message parameter)
To solve this FP, we had to change the message so that it does not use the word element any more.