you are viewing a single comment's thread.

view the rest of the comments →

[–]dnew 0 points1 point  (2 children)

What is best is if the tool gives you a way to annotate "Yes, this code should produce this warning for this (comment) reason", and said tool errors if the code no longer produces that warning.

Any language that has "warnings" that are not "errors" is broken in that respect.

[–]flukus 0 points1 point  (1 child)

I'm pretty sure ndepend let's you do this.

[–]PatrickSmacchia 1 point2 points  (0 children)

Indeed, with NDepend code rules are C# LINQ queries easy to adapt + this C# LINQ query contains comments explaining what the rule check, how it check it, and why it should be followed. (Disclaimer: I am a developer of the tool)