Show individual file history in code analytics

Problem to solve

As a developer, I want to understand areas of risk in my code. In order to do this, we should be able to allow users to drill into individual files in my repo to understand the current state of that file's change history.

One dimension I'm interested in is the number of individuals who have changed this file - I'm especially interested in files that are being changed frequently by lots of contributors (refactoring opportunity?), or ones that have been sitting dormant for a while with few contributors (possible knowledge silo, esp. if that developer leaves).

Proposal

image

  • Add a new analytics page called Code Analytics, under the new Analytics sidebar item in projects.
  • I'd like to be able to click on a file and see some information about the file and the contributors that have contributed to that file, including:
    • LOC/commits
    • Number of contributors
    • Main contributor (and % of the file they contributed)

Links / references

Edited by Jeremy Watson (ex-GitLab)