Live data from Hacker News

Ask HN: What are the best tools for code reviews?

news.ycombinator.com

41–50 of 55 posts

Re: Ask HN: What are the best tools for code reviews?

#41
post #19
post #6

I'd really like a code review tool that is code aware. That is, it treats the diff as code instead of plain text. I'd like to be able to figure out where a method is called from, go to definition and so on. Basically the same stuff I can do in my editor, but without having to clone the branch.

Here you go poor fella https://www.jetbrains.com/upsource/

No plug-in for Xcode, so no thanks.

Re: Ask HN: What are the best tools for code reviews?

#42
At Sourcegraph we have integrations with GitHub (.com and Enterprise) pull requests and Phabricator diffs so that you get code intelligence on code you’re reviewing in your browser. That means doc and type hovers, jump to definition, and find references on the diff, just like you’d get in an editor. It’s in our enterprise offering; check out https://about.sourcegraph.com.

It runs off a server inside your company, but you can try it out on open-source code on GitHub with the Sourcegraph Chrome extension: https://chrome.google.com/webstore/detail/sourcegraph-for-gi....

Re: Ask HN: What are the best tools for code reviews?

#44

My personal best tool for a Git branch's code review is `git lfo`, where the alias expands to: git log --pretty=full --reverse --show-notes=* -p --abbrev-commit origin/master.. Coupled with a "good diff highlighter", i.e. `diff-highlight | less --tabs=4 -RFX`… I'm set. I've yet to see a tool that allows me to review all commits as well as code, as easily. I don't only review a branch as a whole, i.e. `git diff master…

Looks interesting. Could you share what do use git notes for? Comments about the review? (seems like a lightweight alternative to git appraise [0]).

[0]: https://github.com/google/git-appraise

Re: Ask HN: What are the best tools for code reviews?

#46
post #6

I'd really like a code review tool that is code aware. That is, it treats the diff as code instead of plain text. I'd like to be able to figure out where a method is called from, go to definition and so on. Basically the same stuff I can do in my editor, but without having to clone the branch.

GitHub has started adding support for this for some languages: https://help.github.com/articles/finding-changed-methods-and...

Re: Ask HN: What are the best tools for code reviews?

#47
post #36

Moved from gitlab to Gerrit . It was awkward in the starts but I like this more now. Functionality over pretty .

Can you elaborate? Which functionality?

1. In Gitlab, after you get +2, you can still commit changes and merge. Gerrit will make sure that you seek +2 again on the new set of commits. 2. Gerrit allows you to create draft comments on review and submit all comments in one shot after u reveiew them. 3. Require +2 rather then two +1 is a very interesting idea in Gerrit

Re: Ask HN: What are the best tools for code reviews?

#48

Gerrit: https://www.gerritcodereview.com . Hands-down.

We tried to introduce it at work 2-3 years ago. We never got over a pilot installation. It seems rather challenging to install/configure into an existing automatic build system, because gerrit wants to be its own git server(?), but the implementation/hooks are not compatible with "normal" git. Didn't work with that part, so don't remember the details. The UI did not feel very intuitive, might be quite a learning curve.

Re: Ask HN: What are the best tools for code reviews?

#49
Suprised that nobody mentioned bitbucket. First a word of warning. There are 2 Bitbuckets: The online tools hosted by Atlassian and the traditional license where install on your own server. The functionality is similar but not identical, they are 2 different implementations. Using the same name is just a marketing thing.

I have only used the installed version, not the hosted online version.

The basic PR structure is simple. Very much the same as in github.

In detail the implementation has several nasty defincies. They do not distinguish author and committer at all, which can lead to very misleading info on the screen if they are different

There are PR comments and line comments. Sometimes a file comment might be appropriate, but that does not exist.

The code viewer has limitations so I find myself using git difftool with meld or something like that in more difficult cases. Of course the difficult cases is where review and tool support would be needed most.

IMHO the biggest problem is that line comments are a one time thing lost in space afterwards. You need to know in which PR to look, actually even in which file version of the PR if the file has been updated during the review. There is no direct way to access previous review comments relating to certain code. Not sure if anybody else handles that better.

Re: Ask HN: What are the best tools for code reviews?

#50
The StackExchange network has a vibrant and active Code Review site at https://codereview.stackexchange.com/

The languages are wide and varied, the questions and answers are actively curated and moderated, the solutions range from the simple to the overtly complex. The support for code markdown is more than adequate, and of course, the StackExchange voting system helps bring the best questions and answers to the fore.

There's even an integrated chat system as part of the network, where mods, reviewers and questioners can collaborate and discuss issues.

Post reply on HN