This repository has been archived by the owner. It is now read-only.
Detective git takes a look at your repo and shows the hotspots and possible bugs.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
views
.eslintrc
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
analyzer.js
api.js
gulpfile.js
package.json
screenshot.png
server.js

README.md

detectivegit

⚠️ This repository is no longer maintained by Lukas Martinelli.

Detective git takes a look at your repository and shows you where your hotspots and possible bugs are.

🌐 Check the demo at detectivegit.lukasmartinelli.ch

Screenshot of Flinter

How it works

Hotspots

Detecting hotspots is just some bash hackery:

git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -n 10'

Bug prediction

Using igrigorik/bugspots to guess where bugs might occur (based on Google's bug prediction heuristic).

bugspots .

Docker

In order to run detectivegit you need git, cpd and bugspots. Because these tools require a complex stack consisting of Node, Ruby and Java we need Docker to ensure a working environment.

Build image.

docker build -t lukasmartinelli/detectivegit

Run image.

docker run --rm -p 3000:3000 -t lukasmartinelli/detectivegit

Develop with image.

docker run --rm -v $(pwd):/usr/src/app -p 3000:3000 -t lukasmartinelli/detectivegit