Tuesday, March 27, 2012

R4E Code Reviews for Eclipse


R4E, or Reviews 4 Eclipse, is an Eclipse incubation project that provides tooling for doing code reviews within the Eclipse IDE.  While it is an incubation project, it is already stable enough for everyday use.

R4E supports Mylyn integration and task creation (not sure if this allows for JIRA interaction).  Reviews of EMF models, using an EMF comparison tool were recently added.

Summary of how it works:

  • Configure source repository (currently SVN or Git) connection
  • Setup review tags for common review items
  • Developer:
    • Creates a review and specifies what needs to be reviewed
    • Commits code and links the revision to the review
  • Reviewer:
    • Opens the review and views the source code changes in a difference viewer
    • Annotates differences with comments, if necessary
    • Sends review back, or marks it as complete

All this is viewed from a tree viewer that has support for various filters and selectors.  The property view can be used to

Review data is stored in an XML file (EMF persisted model.)  To share this within a team, this file must be placed in a shared location, such as a network share or source repository; it wasn't clear how conflicts are managed when multiple users are performing reviews at the same time.

The tool looks promising, and would be worth a try on a small scale before introducing it to a team.  It would be good to see how well this can be used in conjunction with JIRA, which has its own life-cycle management that includes code reviews.


No comments:

Post a Comment