在線代碼審查工具,Review Board 2.5.1 發布

jopen 9年前發布 | 4K 次閱讀 Review Board

代碼審查(Code Review)不但可以提高質量,而且還是一個知識共享和指導的極好的手段。不幸的是,準備工作的辛苦和工具支持的缺乏讓代碼審查很容易被延至“稍后再議”。Review Board的目標便是改變這一現狀,它所提供的應用程序可以支持代碼審查流程。

Review Board 2.5.1 發布,此版本是個 bug 修復版本:

新特性

  • The branch field of a review request is now populated when posting an existing commit for review. (Bug #3935)

    Patch by Anthony Hache.

可用性改進

  • The line numbers shown in the diff viewer no longer distract from the code. (Bug #3981)

    The line numbers are now lighter and aren’t shown as bold, helping to keep focus on the code itself.

    Patch by Edward Lau.

Bug 修復

  • Fixed the Summary column in the dashboard when using Python 2.6. (Bug #4005)

    The Summary column was being built using some logic that didn’t work on Python 2.6, resulting in broken summaries.

  • The review dialog’s footer field is no longer hidden if it has content.

    This could happen before if making some comments on a new review, adding a footer, and then deleting the comments. The footer would be invisible and thus uneditable.

  • Fixed the presentation of mode options when viewing image diffs.

    The default image diff mode wasn’t being highlighted when first viewing the image diff. They would also sometimes wrap when selected.

  • Fixed serialization of review replies for webhook payloads. (Bug #3999)

    The links in the payloads were previously incorrect for replies.

  • Fixed the standard authentication backend calling the wrong function when trying to create a user under specific circumstances.

    This wasn’t likely to cause problems in real usage, but could be an issue for anyone basing a new authentication backend off of the standard backend.

更多內容請看發行說明

在線代碼審查工具,Review Board 2.5.1 發布

一些應用程序的特性包括:

  • 詳細的審查請求將所有代碼審查所需要的信息都集合起來,包括代碼的修改和屏幕截圖

  • 一個支持將評論直接寫至對應的代碼行的diff查看器

  • 上下文討論

  • 一個匯總審查和被審查需求的面板

Review Board在審查補丁(Patch)方面表現完美。一個叫做“提交審查”的工具被用來和SCM系統進行連接(當前支持SVN、CVS、Perforce、 Git和Mercurial等),可以允許你請求一個將被提交的修改的審查。用戶基礎頁面將這個過程描述如下:

  1. 你在本地檢出的代碼上做了些可怕的修改。

  2. 你通過公布diff、編寫描述和選擇一些審查者來創建一個審查請求。

  3. 你在審查請求中點擊“發布”并等待你的審查者看到它。

  4. 其他人看了你的審查請求,說道“這太可怕了,除非什么東西壞掉了。”

  5. 你根據他們的評論更新了你的代碼。

  6. 你公布了更新后的diff,以及對他們評論的解答以指明你修改了什么(或者你要說明為什么你不打算按照他們的建議修改代碼)。

  7. 大家看了你更新后的代碼,并請你繼續。

  8. 你將修改提交到倉庫中。

  9. 你在審查請求中點擊“設置為已提交”來從其他人的面板中移除你的審查請求。

來自 InfoQ

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!