Hi,
How to identify form titles and treenode link names in FxCop , because I have to check if both are identical, if not Fxcop should identify this.
Regards,
Kailash
Hi,
How to identify form titles and treenode link names in FxCop , because I have to check if both are identical, if not Fxcop should identify this.
Regards,
Kailash
Form titles must be same as the links provided in the NavBar control
vandero
Hi Kailash,
unless you force your developers to a very specific pattern for seting form titles (e.g. only via the designer) and also force them a very specific pattern for adding treenode link names (e.g. everybody has to use a specific helper method). This will be very difficult to detect in FxCop, as there are lots of ways these values can be set. Also FxCop doesn't do intra-method analysis. So if somebody writes their custom helper for setting this data and passes the argument to this method, FxCop cannot detect that this value ends up being on the treenode.
A more tracktable way (but probably also expensive to write) of enforcing this kind of standards would probably a runtime analysis tool.
Regards,
Jeffrey