Hi,
Is it possible to get StyleCop to say that this is the correct way to use curly braces?
if (request.Query == string.Empty) {
return SearchResponse.Empty;
}
But not this
if (request.Query == string.Empty)
return SearchResponse.Empty;
Or this:
if (request.Query == string.Empty)
{
return SearchResponse.Empty;
}
I also want this behavior for if, else, else if, while, foreach and for. But not for class declarations or method declarations.