<2017 October>
SunMonTueWedThuFriSat
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

On this page...

Search

Links

Member of...


ASP Insiders

MVP Visual Developer ASP/ASP.NET

Enter CodeZone

Blog Categories

Microsoft

Blogroll

Deutsche Resourcen

Management

Sign In
 

#  Thursday, 28 December 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, 28 December 2006 10:48:48 (W. Europe Standard Time, UTC+01:00)  #    Comments [5]

 



Thursday, 28 December 2006 15:16:50 (W. Europe Standard Time, UTC+01:00)
Can I just overwrite the cccppol.dll that I downloaded yesterday?
Thursday, 28 December 2006 15:51:25 (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.
Chris
Thursday, 28 December 2006 15:53:50 (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, 28 December 2006 17:12:30 (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).
Chris
Friday, 29 December 2006 18:44:14 (W. Europe Standard Time, UTC+01:00)
Very cool work. And thanks for releasing the source...

Happy New Year,
Greg
Comments are closed.

© Copyright 2017 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.