Reputation: 1405
Regarding XML doc comments in C#-code there are two schools of thought:
Since programmers are lazy, many use tools like GhostDoc or Resharper to automatically generate XML doc comments. The intention of these tools was to provide a basic comment, which can be easily extended by the programmer. However, reality shows that many generated comments remain unchanged. Therefore they add no value to the code in terms of clarity or maintainability. Unchanged generated XML doc comments are just noise. In a way, they are a form of a DRY principle violation.
In my team, we realize that uselessness of these "noise-comments". However we don't want to go all the "no comments at all" way either. An idea that came up was to generate stubs like this for all public members:
/// <summary>
/// TODO
/// </summary>
The build (we use TFS2013) should break, if someone checks in code with the TODO comments untouched.
My questions are:
Upvotes: 1
Views: 256
Reputation: 273824
There already is a built-in provision, though not ideal:
Upvotes: 1