Git the news here! Code quality doesn't count for much when it comes to pull requests

www.theregister.co.uk | 8/27/2019 | Staff
Caris (Posted by) Level 3
Click For Photo: https://regmedia.co.uk/2019/08/27/coder_shutterstock.jpg

Git, distributed version control software used by developers to manage source code, includes a command to issue what's known as a pull request, which provides developers with a way to share changes they've made to their copy of a project with the upstream version.

For example, were you to want to contribute to Kubernetes, you might create a local copy by forking the repository. You could then craft code that improves the project somehow, and then share your changes with those maintaining the official version of the project using a pull request.

Kubernetes - Maintainers - Pull - Request - Changes

The Kubernetes maintainers will then review your pull request and, if the changes or additions are deemed worthy, accept it, thereby incorporating your changes into the version the rest of the world uses.

You might expect that the acceptance rate for this particular form of code review – there are a variety of other tools to review code, like Gerrit – would be correlated with code quality. But academic research suggests otherwise.

Bit - Boffins - Tampere - University - Finland

Bit boffins from Tampere University in Finland recently looked at whether code quality issues – code smells, antipatterns and code style violations – affect the chance a pull request will be accepted by a project maintainer.

In a preprint paper titled, "Does Code Quality Affect Pull Request Acceptance? An empirical study,"...
(Excerpt) Read more at: www.theregister.co.uk
Wake Up To Breaking News!
Sign In or Register to comment.

Welcome to Long Room!

Where The World Finds Its News!