Naming Rules not picking up secondary rule in all cases.

Resharper keeps pointing out the events I have that are autogenerated by Visual Studio that are called something like "btnCancel_Click".

In order to make it stop mentioning them to me, I thought all I had to do was add a second naming rule of "lowerCamelCase", but it still highlights the code.

If I switch the order of the rules, so that lowerCamelCase is the first rule, then it works as expected - both lowerCamelCase and UpperCamelCase methods are acceptable, while ALL_CAPS ones aren't.  However, it then suggests lowerCamelCase as a correction.

Any idea why it isn't working correctly if I just add the lowerCamelCase rule in second place?

Thanks!

Please sign in to leave a comment.