by Phil Wright
Microsoft has just released a tool that integrates into Visual Studio and is used to look at your C# source code and report style violations. This is great for any project manager that wants to become style enforcer. The intent is to provide compile time warnings/errors about C# code that violates its rules.
For example, you might want to enforce a rule that all source files have a header at the top containing a copyright notice along with the company name. You can configure the utility so that it produces either a warning or an error whenever this rule is violated. The current list of rules that it comes with can be turned on or off depending of which are applicable to you.
Personally I like the idea and I think it would be a great tool to use on a new project. Everyone of the team can sit down at the start and agree a set of style guidelines that can then be automatically enforced. But on existing projects I think it would be almost pointless, as the number of violations is going to be huge and the time needed to prettify your code not really be justifiable.
0 comments:
Post a Comment