Hi, I was configuring Resharper settings for my team and run onto a limitation which I couldn't figure out how to solve. We agreed to force braces for all if statements, even if single line, with one exception which is guard clauses. For example, the following line should not have a warning next to it regarding missing braces:
if (foo is null) return;
Unfortunately, we could not find a way to configure this. We thought about custom patterns, but it seems that those only allow us to add additional warnings, but not suppress existing ones. Furthermore, custom patterns do not seem to have any effect when added to the team-shared layer, only the 'This computer' layer.
Any ideas on how to solve this?