代碼評審工具:ReviewBoard
Review Board起源于VMware的一些開發者。它基于Django,你可以把它安裝在自己的服務器上,工作流和Rietveld極為類似。令人高興的是它提 供了在diffs里進行語法彩色編碼,使得代碼閱讀變得簡便。此外,它還實現了基于Lucene的搜索來幫助管理較大的diffs組。
Review Board在審查補丁(Patch)方面表現完美。一個叫做“提交審查”的工具被用來和SCM系統進行連接(當前支持SVN、CVS、Perforce、Git和Mercurial等),可以允許你請求一個將被提交的修改的審查。用戶基礎頁面將這個過程描述如下:
- 你在本地檢出的代碼上做了些可怕的修改。
- 你通過公布diff、編寫描述和選擇一些審查者來創建一個審查請求。
- 你在審查請求中點擊“發布”并等待你的審查者看到它。
- 其他人看了你的審查請求,說道“這太可怕了,除非什么東西壞掉了。”
- 你根據他們的評論更新了你的代碼。
- 你公布了更新后的diff,以及對他們評論的解答以指明你修改了什么(或者你要說明為什么你不打算按照他們的建議修改代碼)。
- 大家看了你更新后的代碼,并請你繼續。
- 你將修改提交到倉庫中。
- 你在審查請求中點擊“設置為已提交”來從其他人的面板中移除你的審查請求。
Saving time, money, and sanity
-
Easily track your team's review requests
Your dashboard gives you an up-to-the-minute overview of all the review requests you care about. See at a glance what's on your plate for today and what you've already covered.
Filter down your dashboard by group, sort your review requests, and see what's left to review. You'll never miss a review request again.
-
Not your typical diff viewer
Your code is syntax-highlighted, for faster reading. We'll show you what function a line is in, what text has changed within a replaced line, and much more.
Need more context? Expand the code up to the nearest function or class, nearest code change, or by 20 lines at a time. You won't have to dig through your editor to read the rest of the code.
Moving some code around a file? Scrutinizing inserted/deleted lines is a pain. Instead, we'll show you if lines were moved without changing, and where they moved to.
Every revision of a diff is stored. Quickly see what changed between diffs, so you don't have to go through the whole diff each time.
-
Upload and review all kinds of files
Review Board isn't just about code. Drag-and-drop any file onto a review request, and your team can leave comments on it.
Upload screenshots of your feature, or log output showing a unit test run, or a PDF for a feature spec. Anything can be uploaded and reviewed.
-
Comment on anything
Whether it's lines in a diff, or a part of an image, reviewers can leave comments quickly and easily. The specific area being commented on appears right there in the review.
Comments can be added to code by clicking on a single line number, or clicking and dragging across multiple lines. You're not limited to one line, like other tools.
Click and drag any area of an image to comment right on that section. Useful for discussing UI changes!
-
Keep track of everything that needs fixing
When people comment on something, they can mark their comment as an open issue. All open issues are shown on the review request, and work as a handy to-do list for the developer.
Issues can be closed with just one click. Ah, the satisfaction of crossing items off lists.
-
All your history, in one place
Large codebases are riddled with mysteries. Why is this line here? What did that line fix?
With Review Board, your entire development history is in one place. Each change's review request shows the entire development discussion and each iteration of the change that people have reviewed.
A whole written history of your product.
-
Birds-eye view of the server
Administrators can check the health of the server and see how actively it's being used.
This is your one-stop shop for configuration, server stats, and your installed extensions. You can even get your hands dirty and browse through the entire Review Board database.