Hi,
I have two custom rules as below:
- Ensure all private field use underscore as prefix.
- Ensure UI control use corresponding prefix, for example txt for textbox, cbo for combobox, chk for checkbox and etc.
I was having test as below with "Exclude *.designer files" OFF:
- I dropped some UI controls on form and run CIR to analysis.
- CIR complaint my UI controls declaration in *.designer file not using underscore as prefix (since UI controls are declared as private by default)
I don't really want my UI control name to use under prefix. Instead, I want them to follow prefix as mentioned in 2nd custom rule.
Shall we have "Exclude *.designer files" OFF" tight to rule level instead of only global?
As you can see the above scenario, I want rule 1 to apply to all code file except *.designer.
On the other hand, I want rule 2 to apply to *.designer file as well.
Please advice. Thank you