<November 2022>

On this page...



Member of...

ASP Insiders

MVP Visual Developer ASP/ASP.NET

Enter CodeZone

Blog Categories



Deutsche Resourcen


Sign In

#  Thursday, December 28, 2006

Work progressed much faster than I thought, so I can present you today with the next iteration of CCCP, the Code Comment Checking Policy for VSTS / TFS. What is new and improved over yesterday's release:

  • VB.NET code comment verification enabled
  • Code comment statistics tracking implemented, off by default
  • Reference.* excluded (Web Services auto-generated files)
  • Visibility special-casing of class type removed, CodeCommentCheckingVisibility honored
  • Refactoring of CheckCodeComments, CreateInstance added for cleaner construction
  • Unit testing automated and initial tests added
  • Use String.Compare instead of == where potentially case sensitive or culture dependent

This equates to: the policy itself is feature-complete! It now sports the following functionality:

  • Code comment verification for C# and VB.NET using a real parser engine
  • Options to enable verification based on elements (methods, ...) and visibility (public, ...) - note that C# and VB.NET is auto-detected, no need to enable or configure this

Not included is "double-clicking policy violation automatically positions cursor on offending element" (I'd need to take a dependency on VS, and quite frankly have no idea how to implement this using VS' object model). Remaining on the todo list is the MSBuild task for calculating code comment coverage, but this will take a while because firstly I am not really that firm with writing MSBuild tasks, and secondly I will have to spend more quality time with IIS7 in the near future.

Without further ado, here are the goods:

Further information:

Thursday, December 28, 2006 10:48:48 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [5]


Thursday, December 28, 2006 3:16:50 PM (W. Europe Standard Time, UTC+01:00)
Can I just overwrite the cccppol.dll that I downloaded yesterday?
Thursday, December 28, 2006 3:51:25 PM (W. Europe Standard Time, UTC+01:00)
Yes (that's what I did for testing all the time), but it might happen that it appears twice in the list of add-able checkin policies.
Thursday, December 28, 2006 3:53:50 PM (W. Europe Standard Time, UTC+01:00)
Cool. Thanks Chris!

What did you do if the policy shows up twice?

Do I need to disable and re-enable the policy on the team projects that it is already enabled on?
Thursday, December 28, 2006 5:12:30 PM (W. Europe Standard Time, UTC+01:00)
The policy class itself hasn't changed from the serialization point of view, so it is binary compatible with the old version in that respect. The new policy assembly should be picked up immediately, you could test that by running it against a VB.NET project (VB.NET wasn't supported in the first version).
Friday, December 29, 2006 6:44:14 PM (W. Europe Standard Time, UTC+01:00)
Very cool work. And thanks for releasing the source...

Happy New Year,
Comments are closed.

© Copyright 2022 Christoph Wille

newtelligence dasBlog 2.3.9074.18820
Subscribe to this weblog's RSS feed with SharpReader, Radio Userland, NewsGator or any other aggregator listening on port 5335 by clicking this button.   RSS 2.0|Atom 1.0  Send mail to the author(s)

Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.