Click here to Skip to main content
15,881,812 members
Articles / Programming Languages / C#
Article

Code Review Add-In

Rate me:
Please Sign up or sign in to vote.
4.75/5 (3 votes)
7 May 20072 min read 57.8K   927   45   8
Code Review Add-In helps the process of reviewing code and publishing the results as work items to the Team System Server for review by team members

Image 1

Introduction

The main purpose is to help the process of code reviewing. While you review the code, you can submit a new work item with a code snippet and a description of the code violation. It is simply done after configuring the Add-In to work with a team server and then mapping fields to a work item.

Background

As a team leader or a CTO, I had a lot of trouble reviewing code and managing tasks associated with it. Usually, the scenario was finding a code violation and then sending it by email or talking to the developer. A year ago, we started using Team System as a lifecycle application management tool. I love it! The tool introduces a new method of communication for all team members and all the roles in the development cycle. Basically, everything passes as a work item. This way I can send a new work item indicating a code violation to the developer in charge. This was a good solution. However, I also wanted something more automatic. The Code Review Add-In is an automated solution for code violation management.

Using the code

This is an add-in for Visual Studio 2005. In order to use it, you need Visual Studio 2005 and permissions to work with a Team System server. You do not need Team Explorer installed on the machine. After installation, you need to enable the Add-In in the add-in manager.

Image 2

Once the Add-In is enabled, you will see a new menu in the context menu.

Image 3

The first thing you need to do is set the Add-In to work with a team server. You can do that by clicking on the "settings" menu item. You need to add a team server (for example: http://team:8080), team project and work item types. Once it is ready, you need to select a default work item.

Image 4

The next step is to map the fields in the Add-In to the work item.

Image 5

This is it. You are set to use the Add-In. Mark the code you want to add to the work item and select "create work item" in the menu.

Image 6

Image 7

Fill in the fields and submit the item. I created some out of the box code review rules based on FXCop. You can define your own custom rules easily.

Image 8

Once you saved the rule, it will appear in the tree inside the "custom rules" node.

License

It is free to use, so enjoy it!

History

This is version 1.0.1

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Israel Israel
Guy Kolbis is a system architect and technology consultent.
Instrested in c#, asp.net, design patterns and tennis.
B.S in computer sience.
7 years experience in .net.

Comments and Discussions

 
Generallicense issues regarding code review add-in Pin
baai g10-May-11 5:36
baai g10-May-11 5:36 
GeneralReport samples for code reviews Pin
jayne@Agresso5-Sep-07 22:49
jayne@Agresso5-Sep-07 22:49 
GeneralRe: Report samples for code reviews Pin
Guy Kolbis6-Sep-07 0:26
Guy Kolbis6-Sep-07 0:26 
This is an excelent idea.
It is not implemented at the moment, however, the code review add in is a community project at the CodePlex.
you can find it:

http://www.codeplex.com/CodeReviewAddIn

You can download the source control and edit it as you like. When you are done, you can choose to upload it as a new version.
Regards Smile | :)

"to code or not to code?" this is the question..

kolbis

GeneralThanks! Pin
JBBBJBBB22-Jul-07 6:20
JBBBJBBB22-Jul-07 6:20 
GeneralRe: Thanks! Pin
Guy Kolbis13-Nov-07 7:16
Guy Kolbis13-Nov-07 7:16 
GeneralSource code missing Pin
TBermudez7-May-07 11:15
TBermudez7-May-07 11:15 
GeneralRe: Source code missing Pin
KiwiPiet7-May-07 13:39
KiwiPiet7-May-07 13:39 
GeneralRe: Source code missing Pin
Guy Kolbis7-May-07 18:21
Guy Kolbis7-May-07 18:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.